|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: getting the last value of a nodeset
Prasad Akella wrote:
hi, I would reiterate your question.....you want the value of the xpath expression /Exam/ExamMetaData/Title (not the last value...or segment of xpath statement....sorry being a bit pedantic)....the well known problem here is dynamically evaluating strings as XPATH statements......in other words you want to put your @nodeset attribute into a string variable...then use the string variable as input of a select statement.... I would suggest looking at; http://www.exslt.org/dyn/functions/evaluate/index.html note: most processors, and saxon has some equivelent eval type function for you to use the only thing to be slightly careful with is if you are using document() calls and extra namespaces (like xforms)..first make sure you are dynamically selecting properly with whatever processor function call, something like the following (with saxon namespace being prop declared) would be an example of doing this with saxon; <xsl:variable name="var" select="/rootelement/xforms:bind/@nodeset"/> <xsl:value-of select="saxon:evaluate($var)"/> note this is untested! gl, Jim Fuller
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








