Subject: Re: [xsl] a quick question re: html entity From: Marco Guazzone <sguazt@xxxxxxxxxxx> Date: Thu, 6 Feb 2003 09:29:49 +0100 (CET) |
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, -------------------------------- Marco Guazzone Software Engineer Kerbero S.r.L. - Gruppo TC Viale Forlanini, 36 Garbagnate M.se (MI) 20024 - Italy mail: marco.guazzone@xxxxxxxxxxx www: http://www.kerbero.com Tel. +39 02 99514.247 Fax. +39 02 99514.399 -------------------------------- On Thu, 6 Feb 2003, Terence wrote: > Hi there everybody! > > how does one insert an into the result tree (I'm producing HTML)? > > for that matter, how does one insert non-xml standard(?) entities into a > result tree? > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] a quick question re: h, Terence | Thread | Re: [xsl] a quick question re: &nbs, Oleg Tkachenko |
Re: [xsl] Filtering XML with XSL, Charles White | Date | [xsl] Xsl problem with output of re, Susanne Kiese |
Month |