AW: [xsl] Xpath as variable - bis

Subject: AW: [xsl] Xpath as variable - bis
From: <michella@xxxxxxx>
Date: Mon, 3 Jan 2005 11:39:48 +0100
Hello,

No, the /Classes/Clas... Found within the @Xpath attribute is simply a string.
The idea is to find a way to concatenate a root node and this xpath string,
then evaluate it. -> document(Xxx.xml)/Classes/Class/...
					        (     is a node       )(    is a string    )  --> (must be a
nodeset)

-----Urspr|ngliche Nachricht-----
Von: Geert Josten [mailto:Geert.Josten@xxxxxxxxxxx]
Gesendet: Montag, 3. Januar 2005 11:31
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re: [xsl] Xpath as variable - bis


> XPath="/Classes/Class/SADefinition[starts-with(@SAObjName,'app_') or
> starts-with(@SAObjName,'apx_') or starts-with(@SAObjName,'apt_')]"/>
> (...)

I suspect that the path '/Classes/..' is not evaluated with the external
document as context, but
the one passed from source of command-line. But I'm not a Saxon expert.

Have you tried relative paths?

Cheers,
Geert

Current Thread