[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problems to interpret an attribute value as an Xpath e

Subject: Problems to interpret an attribute value as an Xpath expression
From: "Roman Huditsch" <roman.huditsch@xxxxxxxx>
Date: Thu, 10 Jan 2002 13:22:49 +0100
problem xpath attribute .net
Hi alltogehther!
I have some basic problems, which I hope to be able to solve with your help. 
Basically what I want is to transform an xform document (not embedded in XHTML) into an html document with all the needed html form controls.
I know that it is not the intended way to display xform documents ;), but I have to do it like that in the meantime.
Lets say I have an xform document like the following: 

    <xform:submitInfo id="SubmitInfo1"/>
                    <name>Roman Huditsch</name>

    <xform:input ref="/applicationform/applicant[1]/name"/>
    <xform:input ref="/applicationform/applicant[2]/name"/>

I'd like to use the value of a ref attribute as an XPath expression in my stylesheet. I want the processor to jump to the specified node and get the value from there. 
I used a "normal" <xsl:value-of select="@ref"/> ,but the processor didn't interpret it as an XPath expression but as a string. 

Does anyone know a method to tell the processor to use a source document's attribute value as an XPath expression in the stylesheet?

Best regards,

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.