Subject: Re: [xsl] a quick question re: html entity From: Terence <tk.lists@xxxxxxxxxxx> Date: Fri, 07 Feb 2003 16:46:44 +1100 |
The solution and the alternatives you provided were most helpful to say the least. Thanks :)Hi, my advice is to use a numerical entity; so for " " you could just write " ". An alternative, if you prefer to write it in a symbolic way you can: 1) add <!ENTITY > declaration in the DTD of your sheet 2) you can create a named template like this: <xsl:template name="ent:nbsp"> <xsl:text> </xsl:text> 3) AVOID THIS: use xsl:text with 'disable-output-escaping="yes"' attribute and do this: <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text> but this way is NOT THE RIGHT ONE. THINK TWICE BEFORE USING disable-output-escaping :)) Hope this helps! Regards,
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] a quick question re: &nbs, Marco Guazzone | Thread | Re: [xsl] a quick question re: &nbs, Terence Kearns |
Re: [xsl] pcl output, Charles White | Date | RE: [xsl] Is this a sorting bug in , Roger Glover |
Month |