xsl-list
[Top] [All Lists]

AW: Xpath as variable - bis

2005-01-03 03:39:48

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(_dot_)Josten(_at_)daidalos(_dot_)nl] 
Gesendet: Montag, 3. Januar 2005 11:31
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>