Subject: Re: [xsl] xslt regex escaping From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 17 Aug 2004 12:44:10 +0100 |
> Question. Is it possible to escape both quotes (single and double) > in a analyze-string regex attribute? you don't need to escape quotes at all as far as the regexp is concerned, so the string used as the regexp just needs a ' and " of course to get the them into the attribute you need to use xml quoting on one of them (the one you use to delimit the attribute) that's for the regex attribute which is an AVT If you are using the regex with an Xpath function shuch as tokenize you need to get teh regex into an Xpath string in which case you need to use one quote (eg ") to surround the select="" attribute and teh other quote (eg ') to surround the string argument in which case you can use " to get a " into the string and the new xpath2 feature '' to get a ' into the string. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. 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] xslt regex escaping, David . Pawson | Thread | RE: [xsl] xslt regex escaping, Ragulf Pickaxe |
[xsl] xslt regex escaping, David . Pawson | Date | RE: [xsl] xslt regex escaping, Ragulf Pickaxe |
Month |