|
[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
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:model>
<xform:submitInfo id="SubmitInfo1"/>
<xform:instance>
<applicationform>
<applicant>
<gender>m</gender>
<name>Roman Huditsch</name>
......
</xform:instance>
<xform:model>
<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,
Roman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








