This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to include a single quote in a parameter string


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&#x0027;environnement"' />

The original one is:
<xsl:param name="fjeestitle"
select="'NRC Research Press: Revue du génie et de la science de
l&#x0027;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@oio.de]
Sent: Tuesday, July 30, 2002 10:55 AM
To: xsl-list@lists.mulberrytech.com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]Im Auftrag von Jiang,
> Peiyun
> Gesendet: Dienstag, 30. Juli 2002 16:42
> An: 'xsl-list@lists.mulberrytech.com'
> 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&#x0027;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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]