Subject: Re: [xsl] Variables and HTML From: "Nathan Young" <natyoung@xxxxxxxxx> Date: Fri, 11 Mar 2005 15:47:57 -0800 |
In 2.0 you can always replace this by
<xsl:value-of select="'<br>'"/>
<xsl:value-of select="translate('<br>','<>&',''"/>
Together with a character mao that maps back:
<xsl:output-character character=" string="<"/> <xsl:output-character character=" string=">"/> <xsl:output-character character=" string="&"/>
This works the same way except that now the information is stored in the result tree using a mechanism that is actually allowed by the specification of the datamodel (just three otherwise unused characters).
Of course the other problems with d-o-e remain, that this still only works if serialisation is tightly controlled by the XSLT engine and that in nine times out of ten it is only being used by mistake, when the stylesheet could have gone
<br/>
and used an element node directly.
David
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Nathan Young A: ncy1717 E: natyoung@xxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Variables and HTML, David Carlisle | Thread | Re: [xsl] Variables and HTML, Wendell Piez |
RE: [xsl] right padding with zeros, Michael Kay | Date | Re: [xsl] Variables and HTML, Wendell Piez |
Month |