Subject: RE: [xsl] How to include a single quote in a parameter string From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxx> Date: Tue, 30 Jul 2002 11:03:26 -0400 |
Thanks. I've got rid of the error by using: <xsl:param name="fjeestitle" select='"NRC Research Press: Revue du génie et de la science de l'environnement"' /> The original one is: <xsl:param name="fjeestitle" select="'NRC Research Press: Revue du génie et de la science de l'environnement'" /> I don't the difference between these two. I'm using xalan in ArborText EPIC. The error is: FATAL XSLT PROCESSING ERROR: String index out of range: 73 SAXException: String index out of range: 73 javax.xml.transform.TransformerException: String index out of range: 73 at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa ctoryImpl.java:872) at com.arbortext.compose.ATIComposer.finishConstructor(ATIComposer.java:189) at com.arbortext.compose.ATIComposer.<init>(ATIComposer.java:128) --------- java.lang.StringIndexOutOfBoundsException: String index out of range: 73 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa ctoryImpl.java:864) at com.arbortext.compose.ATIComposer.finishConstructor(ATIComposer.java:189) at com.arbortext.compose.ATIComposer.<init>(ATIComposer.java:128) --------- java.lang.StringIndexOutOfBoundsException: String index out of range: 73 at java.lang.String.substring(Unknown Source) at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:235) at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:139) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:144) at org.apache.xpath.XPath.<init>(XPath.java:198) at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.j ava:193) at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.jav a:573) at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.ja va:917) at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.ja va:1075) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes( XSLTElementProcessor.java:375) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes( XSLTElementProcessor.java:311) at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTempl ateElem.java:121) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler. java:631) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat or.java:1197) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne r.java:1862) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1238) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa ctoryImpl.java:864) at com.arbortext.compose.ATIComposer.finishConstructor(ATIComposer.java:189) at com.arbortext.compose.ATIComposer.<init>(ATIComposer.java:128) [50001] Stylesheet problem Stylesheet compile failure -----Original Message----- From: Thomas Bayer [mailto:bayer@xxxxxx] Sent: Tuesday, July 30, 2002 10:55 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: AW: [xsl] How to include a single quote in a parameter string Hi, try it without the é in the word génie. Perhaps you have a Problem with the encoding. What error message do you get and which encoding do you use? Thomas Orientation in Objects http://www.oio.de > -----Ursprüngliche Nachricht----- > Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Jiang, > Peiyun > Gesendet: Dienstag, 30. Juli 2002 16:42 > An: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Betreff: [xsl] How to include a single quote in a parameter string > > > I have the following in my stylesheet that gives me errors: > > <xsl:param name="fjeestitle" > select="'NRC Research Press: Revue du génie et de la science de > l'environnement'" /> > > Why is this not working? How to make it work? > > What I want is to have the string -- NRC Research Press: Revue du génie et > de la science de l'environnement -- in fjeestitle. > > Thanks. > > Peiyun Jiang > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to include a single q, David Carlisle | Thread | RE: [xsl] How to include a single q, Joseph Kesselman |
[xsl] lists again, Jan Zavoral | Date | Re: [xsl] How to include a single q, Jeni Tennison |
Month |