[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

document() and position()

Subject: document() and position()
From: "Dirk Holstein" <dirk.holstein@xxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2000 21:46:43 +0200
dirk holstein
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.