|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT 2.0 matches function (Saxon)
Hi,
I'm having some difficulty in using matches() function with Saxon. Works beautifully with strings but not with variables. The element beforebreak in my xml input file contains a regexp: <beforebreak>[\.\?!]+</beforebreak> I try to use it for matching a string in a second file (in a variable $segmented_file: <xsl:variable name="before" select="beforebreak"/> <xsl:value-of select='matches($segmented_file//Raw, $before)'/> This gives me a runtime error. I tried concatenation of apostrophes around the value of beforebreak but to no avail. This however works: <xsl:value-of select='matches($segmented_file//Raw, "[\.\?!]+")'/> What am I doing wrong? Regards, Marcin
|
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
|

Cart








