User Profile
Collapse
-
That didn't work, but "omit-xml-declaration="ye s"" did :) Thanks ever so much for your help! -
yes this part shouldn't be output in the xhtml should it? i thought you only need this at the top of xml documents not xhtml webpages?
Code:<?xml version="1.0" encoding="utf-8"?>
Leave a comment:
-
Perfect - I changed it to 'xhtml' and it now outputs self-closing tags. Thanks you :)
One slight problem that's occuring now though - in the XSL there are these lines:
Code:<!-- start the stylesheet --> <xsl:template match="/"> <xsl:apply-templates select="XML"/> </xsl:template> <!-- xml tempate --> <xsl:template match="XML">
Leave a comment:
-
XSLT - Turns <br/> into <br> ?
I'm new to XSLT, it what our old website developer used but he has now left our company. I have been given the task of making our site output as valid XHTML as I can get it. Currently in the .XSL files I write self-closing tags like <br/> but in the output XHTML they come out as <br> and therefore the page doesn't validate. This happens for other self-closing tags like <img src=""/> too.
I don't really...
No activity results to display
Show More
Leave a comment: