Subject: Re: AW: [xsl] Xpath as variable - bis From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Mon, 03 Jan 2005 11:48:07 +0100 |
<xsl:variable name="mainXML_node" select="document('../XML/PM-EA-AA_IA_PA_TA.xml')"/> (...) <xsl:for-each-group select="concat($mainXML_node,$path)" group-by="@SAObjName"> (...)
<xsl:variable name="xpath"> <xsl:text>document('../XML/PM-EA-AA_IA_PA_TA.xml')</xsl:text> <xsl:value-of select="@XPath" /> </xsl:variable>
Cheers, Geert
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
-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] Xpath as variable - bis, michella | Thread | AW: AW: [xsl] Xpath as variable - b, michella |
AW: [xsl] Xpath as variable - bis, michella | Date | AW: AW: [xsl] Xpath as variable - b, michella |
Month |