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

Re: Problems to interpret an attribute value as an Xpath expression

From: Ray Cromwell <ray_cromwell@yahoo.com>
Date: Thu, 10 Jan 2002 05:33:46 -0800 (PST)
Message-ID: <20020110133346.73875.qmail@web11806.mail.yahoo.com>
To: Roman Huditsch <roman.huditsch@hico.com>, xsl-list@lists.mulberrytech.com, www-forms@w3.org

 I don't think it's possible within the spec IIRC.
Match expressions are supposed to be static and can't
be dynamically computed at runtime. Some xslt
processors may have extensions to support it however,
e.g. an 'evalxpath' extension function or a new xslt

  I solved the problem by pre-processing the DOM tree.
First I resolve most xpath references, fetch the value
from the instance, and annotate the DOM node
containing the ref with the value. Then, I pick up the
value in the transformer.

--- Roman Huditsch <roman.huditsch@hico.com> wrote:
> 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

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
Received on Thursday, 10 January 2002 08:33:47 UTC

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