[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
<file collection="ieee" name="ex/2003/x1055">
<element path="/article[position()=1]/bdy[position()=1]" exhaustivity="?"/>
<element path="/article[position()=1]/bdy[position()=1]/sec[position()=4]" exhaustivity="?"/>
I want to use the information in the name and path attribute to retrieve elements among a set of xml files. For that I'll use the document() function like this:
Apparantly this is not working as the variable $path is not a node set. Do you know a way to make this possible? I read about the exslt dynamic evaluation, but I weren't able to make it work. Is that the correct way of solving this problem?
Regards
Linde
_________________________________________________________________
Trangt om plassen? http://www.hotmail.com MSN Hotmail gir deg 250MB gratis lagringsplass
[xsl] storing XPath Expression in a variabel, and using it in a document function
Subject: [xsl] storing XPath Expression in a variabel, and using it in a document function From: Linde Løver <lindelover@xxxxxxxxxxx> Date: Wed, 21 Jun 2006 13:11:24 +0200 |
Hi! This is a snippet from my xml source file:
<file collection="ieee" name="ex/2003/x1055">
<element path="/article[position()=1]/bdy[position()=1]" exhaustivity="?"/>
<element path="/article[position()=1]/bdy[position()=1]/sec[position()=4]" exhaustivity="?"/>
I want to use the information in the name and path attribute to retrieve elements among a set of xml files. For that I'll use the document() function like this:
<xsl:variable name="document" select="@name')"/> <xsl:variable name="path" select="@path"/> <xsl:variable name="docPath" select="concat('xml/', $name, '.xml')"/> <xsl:apply-templates select="document($docPath)/$path">
Apparantly this is not working as the variable $path is not a node set. Do you know a way to make this possible? I read about the exslt dynamic evaluation, but I weren't able to make it work. Is that the correct way of solving this problem?
Regards
Linde
_________________________________________________________________
Trangt om plassen? http://www.hotmail.com MSN Hotmail gir deg 250MB gratis lagringsplass
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Converting CSV to XML without, Pantvaidya, Vishwaji | Thread | Re: [xsl] storing XPath Expression , Mukul Gandhi |
Re: [xsl] Transforming multiple XML, David Carlisle | Date | [xsl] XSLT arguments in PHP 5, Martynas Jusevicius |
Month |
Keywords