cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spectron International, Inc." <spect...@coqui.net>
Subject xsl:apply-templates bug?
Date Tue, 14 May 2002 17:30:37 GMT
I have noticed something with xsl:apply-templates I don't know if it is a
bug but it seems to me that it shouldn't work that way. I have the following
xml:

<header>
  <column>
  <column>
  <column>
  <column>
</header>

And the following templates:

<xsl:template match="column">
  <xsl:value-of select="position()"/>
</xsl>

If I use <xsl:apply-templates select="column"/> it will return the expected
numbers (1,2,3,4) if I only use <xsl:apply-templates/> it returns (2,3,4,5).
Why is that?

Fawzib Rojas


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message