This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
determining position of a document included using document function
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 13 Feb 2002 13:42:43 +0100
- Subject: [xsl] determining position of a document included using document function
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
If I'm using document() to make a number of simple includes, like
<xsl:template match="file">
<xsl:param name="doc" select="document(@href)">
<xsl:for-each select="$doc">
<xsl:apply-templates/>
</xsl:for-each>
is there anyway to find out the position of file in the root document,
without trying to do <xsl:apply-templates>
<xsl:with-param name="filepos" select="position()"/>
</xsl:apply-templates>
my problem is that I have a template being applied quite low in the included
documents which needs to know the position of the including document.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list