This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

determining position of a document included using document function



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]