xsl-list
[Top] [All Lists]

Re: Single quote once again (newby)

2005-04-20 03:47:53

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="&quot;'&quot;"
or
select='"&apos;"'

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>