xsl-list
[Top] [All Lists]

RE: [xsl] multiple input document question

2008-07-16 19:50:35
Ah, I was hoping that $id represents the name of only one element. No, you 
can't do this, unless you avail yourself of a Saxon extension that allows you 
to evaluate an XPath expression at runtime: 
http://www.saxonica.com/documentation/extensions/functions/evaluate.html

-----Original Message-----
From: Greg Fausak [mailto:lgfausak(_at_)gmail(_dot_)com]
Sent: Wednesday, July 16, 2008 7:23 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] multiple input document question

I am trying to allow the first document to supply a path to the second
document.  For example, all @menu elements from the first document have
an attribute @id.  That could be /complete/xpath/here.  So the concatenation
I'm looking for in that example is document('f1.xml')/complete/xpath/here, which
does work when the xpath is not a variable.



--~------------------------------------------------------------------
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>
--~--