Altova Mailing List Archives
>microsoft.public.xsl Archive Home
>Thread Prev - Re: Is this a bug?
Re: Is this a bug?
Date: 12/15/2005 2:13:00 AM
"Joe Fawcett" wrote: [snip] > But is the actual HTML faulty, i.e. no space between the characters, or is > it being rendered incorrectly? > Which processor are you transforming with and can you show a snippet of the > XSLT? Actually, I've just found my problem I think - the name space in my header was wrong. I had xmlns:HTML="http://www.w3.org/1999/xhtml", once the ":HTML" is removed it works fine. FWIW, I'm using MSXML 6.0 (6.00.3883.8). The full XML can be found at http://jebbo.home.texas.net/asc/a/a.xml And the XSL at http://jebbo.home.texas.net/asc/ds2-L.xsl To see what it looks like http://jebbo.home.texas.net/asc/asc.html However, those are too big to digest, so here's some relevant snippets: XSL: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml"> <xsl:output method="html"/> <xsl:param name="edition">x</xsl:param> <xsl:template match="/"> <html> ... <body> <xsl:apply-templates select="/TEI.2/text"/> </body> </html> </xsl:template> <xsl:template match="p"> <p> <a> <xsl:attribute name="id"> <xsl:value-of select="@id"/> </xsl:attribute> </a> <xsl:apply-templates/> </p> </xsl:template> Source XML: <p id="ad443" n="443"> <add hand="hand8"> Her [...] wiÃ° Ã†tla [...]. </add> </p> Result HTML (with wrong namespace): <p> <span style="color: green"> Her [...] wiÃ°Ã†tla [...] </span> </p> Result HTML (with correct namespace): <p> <span style="color: green"> Her [...] wiÃ° Ã†tla [...] </span> </p>