Subject: RE: Variable Substitution In A Select Statement
From: Raymond Lillibridge <RLillibridge@xxxxxxxxxxxx>
Date: Tue, 24 May 2011 17:20:22 +0000
|
David,
My XML input file is the resulting output from DIFFing two XML files. My
$FileA variable is the 'old' file of the two being diffed. I need to open
that file and then follow the "changed" xpath
(/book/level1[1]/level2[3]/section[5], for example) and then get that sections
@id value. So, saxon:evaluate() is perfect.
$Axpath_new is the xpath string "/book/level1[1]/level2[3]/section[5]" in the
example above.
You showed me how I can combine "doc(C:/aaa/bbb/zzz.xml)" with a variable,
that is converted to a node from a string. Valuable stuff, that. I really
appreciate your help!
Cheers,
Raymond Lillibridge
-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Tuesday, May 24, 2011 12:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: Raymond Lillibridge
Subject: Re: Variable Substitution In A Select Statement
On 24/05/2011 17:31, Raymond Lillibridge wrote:
> The $FileA variable references an external document ...
> n $Axpath.
yes my real question was where $Axpath is coming from, unless you have an
input file (other than the stylesheet) containing xpath expressions that need
evaluation, then evaluate() isn't normally needed.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England and
Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is powered
by MessageLabs.
________________________________________________________________________
|