W3C home > Mailing lists > Public > www-forms@w3.org > January 2002

Problems to interpret an attribute value as an Xpath expression

From: Roman Huditsch <roman.huditsch@hico.com>
Date: Thu, 10 Jan 2002 13:22:49 +0100
Message-ID: <0C79A363CB0321418927D0CB1AD0403C08A874@hicoetsrv000006.hico.local>
To: <xsl-list@lists.mulberrytech.com>, <www-forms@w3.org>
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,
Received on Thursday, 10 January 2002 07:27:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:42 UTC