-
-
Save VeroLom/7bf4427b24aa3e36f8798adabc7869c8 to your computer and use it in GitHub Desktop.
XSLT menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0"> | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="udata[@module = 'content' and @method = 'menu']"> | |
<ul> | |
<xsl:apply-templates select="items/item" /> | |
</ul> | |
</xsl:template> | |
<xsl:template match="item"> | |
<li> | |
<a href="{@link}"> | |
<xsl:value-of select="@name" /> | |
</a> | |
</li> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment