|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Escaping Curly Braces in Regex
rowan@xxxxxxxxxxxxxxxxxxxxx wrote:
That attribute regex allows an attribute value template I think so {} is supposed to have an XPath expression inside. You would need to double the curly braces or you can define a variable e.g. <xsl:variable name="pattern1" select="'^\s*\{([^\}]+)\}\s*$'"/> and then use that <xsl:analyze-string select="." regex="{$pattern1}"/> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






