xsl-list
[Top] [All Lists]

RE: [xsl] Variable Substitution In A Select Statement

2011-05-24 12:20:45
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(_at_)nag(_dot_)co(_dot_)uk] 
Sent: Tuesday, May 24, 2011 12:35 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Raymond Lillibridge
Subject: Re: [xsl] 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. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>