xsl-list
[Top] [All Lists]

RE: Print all root node attributes

2005-05-29 13:36:37

<xsl:for-each select="*">
  <xsl:value-of select="name()" />
      <xsl:for-each select="@*">
         <xsl:value-of select="current()" />

The current() function returns the node matched by the template.
Try
  <xsl:value-of select="." />
instead.

J.Pietschmann


Not so. As a self-contained XPath expression, current() returns exactly the
same as ".". It's only inside a predicate that the result is different.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>