xsl-list
[Top] [All Lists]

Traverse XML Source

2004-08-17 13:46:34
Hello,
I would like a very simple XSLT transformation that traverses an XML
source and creates an HTML list output.  Is this an identity
transformation?
So far, I have only been able to get anything to happen on the document
root, and nothing below is traversed.
Thanks for the help.  ~karl

Here is what I have so far,
XML Source:
<stuff>
        <abc>
                <def>
                        <path>\\path-to-server</path>
                        <web>http://my-web-path</web>
                        <uid>9999</uid>
                        <pwd>monkeysee</pwd>
                </def>
        </abc>
</stuff>

XSL Source:
<xsl:template match="*">
  <xsl:copy>
    <xsl:apply-templates select="@*" />
    <xsl:apply-templates />
  </xsl:copy>
</xsl:template>


<xsl:template match="@*">
  <li><xsl:copy-of select="." /></li>
</xsl:template>

<xsl:template match="*">
  <li><xsl:copy-of select="." /></li>
</xsl:template>

</xsl:stylesheet>


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