This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
path quesion
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: path quesion
- From: Stephen Kirkham <skirkham at escrow dot com>
- Date: Thu, 29 Jun 2000 10:01:47 -0700
- Reply-To: xsl-list at mulberrytech dot com
I am processing 2 XML files within a single xsl file. From one file
I retreive a path value e.g. 'customer/age', from an element , this value
is placed in a variable. I then want to look for the 'customer/age'
element in the 2nd xml file, e.g.
variable $var contain the sting 'customer/age'
attempt to use this in a path expression for the second document
<xsl:value-of select="document('data.xml')/$var" />
I get the following error
org.apache.xalan.xslt.XSLProcessorException: pattern =
'document('data.xml')/data/$id'
thankful for any help
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list