Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] new bie question

From: "Michael Kay" <mike@------------>
To:
Date: 12/5/2006 2:57:00 AM
In 2.0:

select="document(document('index.xml')/protest/package/name/concat(.,
'.xml'))">

In 1.0:

<xsl:for-each select="document('index.xml')/protest/package/name">
  <xsl:for-each select="document(concat(., '.xml'))">

    ....


Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: chun ji [mailto:cji_work@xxxxxxxxx] 
> Sent: 04 December 2006 23:27
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] new bie question 
> 
> I have an index.xml file, which reads as: 
> "
> -<?xml version="1.0" encoding="ISO-8859-1" ?> 
> -<?xml-stylesheet href="rules.xsl" type="text/xsl"?> -<protest>
>     -<package>
>            -<name>billing</name>
>       -</package>
>      -<package>
>            -<name>timecard</name>
>       -</package>
> -</protest>
> ". 
> There is a group of child xml files that associated with each 
> "/protest/package/name", such as "billing.xml", "timecard.xml". 
> 
> Now I have soming in my XSL file that tries to open all these 
> CHILD xml files, " <xsl:for-each 
> select="document(document('index.xml')/protest/package/name)">
> .
> </xsl:for-each>
> "
> which fails, because I did not give ".xml" for each
> child xml.   
> 
> Does someone know the format to do it ? 
> 
> 
> thanks a lot 
> 
> 
> cji 
> 
> 
>  
> ______________________________________________________________
> ______________________
> Yahoo! Music Unlimited
> Access over 1 million songs.
> http://music.yahoo.com/unlimited


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent