path quesion

Subject: path quesion
From: Stephen Kirkham <skirkham@xxxxxxxxxx>
Date: Thu, 29 Jun 2000 10:01:47 -0700
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 =

thankful for any help

 XSL-List info and archive:

Current Thread
  • path quesion
    • Stephen Kirkham - Thu, 29 Jun 2000 10:01:47 -0700 <=
      • <Possible follow-ups>
      • Kay Michael - Fri, 30 Jun 2000 10:19:44 +0100