[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Tokenizing and special characters
Subject: RE: [xsl] Tokenizing and special characters From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 13 Dec 2004 15:01:50 -0000 |
"+" is a special character in a regex, so it needs to be written as "\+" if you want to match literal "+" characters. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: michella@xxxxxxx [mailto:michella@xxxxxxx] > Sent: 13 December 2004 14:34 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Tokenizing and special characters > > Hello, > > My XML Data contains in several text fields the following sequence > "+++", which should indicate me I have to insert a newline. > > To achieve this, I use the following tokenize function : > > <xsl:for-each > select="tokenize(SAProperty[@SAPrpName='Description']/@SAPrpVa > lue,'+++') > [string(.)]"> > <fo:block> > <xsl:value-of select="."/> > </fo:block> > </xsl:for-each> > > Here is the error message I get : > > net.sf.saxon.type.RegexTranslator$RegexSyntaxException: Error at > character 0 in regular expression: expected end of string > Failed to compile stylesheet. 1 error detected. > > (The error points to this part of code) > > Any help would be greatful :-) > > Regards > > Lawrence Michel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Tokenizing and special ch, David Carlisle | Thread | [xsl] Using Saxon with Java, Colin Toal |
[xsl] RE: Merging an imported xsd s, Michael Kay | Date | Re: [xsl] Understanding XSLT Questi, Mulberry Technologie |
Month |
Keywords