[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] document() and position()
I have multiple xml files. The XML Stream I get gives me the path to the xml files and the name of each xml file. The output I generate doesn't need any of the xml file. An attribute in the root tag of every xml file decide if I need this file or not. The access to the xml files is something like this: <xsl:apply-templates select="document(/page/folder)/news[@show = 'true']" /> With this call I get only the xml files which have the 'show' attribute in the 'news' tag set to 'true'. But now I need to know the number of the actual file I read in the template I call. I tried something like this: <xsl:apply-templates select="document(/page/folder)/news[@show = 'true']"> <xsl:with-param name="index"><xsl:value-of select="position()" /></xsl:with-param> </xsl:apply-templates> But the index parameter is allways '1'. How can I get the position? Or is there any other way to get the number of the actual xml file? Thanks in advance... Dirk Holstein -------------------------------------------- web your vision doubleSlash Net-Business GmbH Muellerstr. 12/1 88045 Friedrichshafen Fon 07541 60 47-102 Fax 07541 60 47-111 www.doubleslash.de dirk.holstein@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|