Subject: Re: [xsl] Single quote once again (newby) From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 20 Apr 2005 11:47:53 +0100 |
There is an entry in the faq on this, but you have several options, firstly you could go <xsl:with-param name="replace">'</xsl:with-param> which makes a result tree fragment rather than a node set but if you value your time rather than your computer's time, probably that is the way to go. If you want to genearte a string with a ' in it in XPath1 then you have to delimit it with " ie you want the XPath expression "'" Then you need to put that XPath expression in an XML attribute, you have two choices (always) for putting stuff in an attribute, delimit the attribute with " and quote any " in the attribute value or delimit with ' and quote any ' in the attribute value select=""'"" or select='"'"' 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Single quote once again (newb, João Amílcar Pereira | Thread | Re: [xsl] Single quote once again (, David Carlisle |
[xsl] Single quote once again (newb, João Amílcar Pereira | Date | Re: [xsl] Single quote once again (, David Carlisle |
Month |