XSLT
| From: | Chris Lee | Date: | Thu, 08 Feb 2001 18:48:47 +0000 |
| Subject: | XSLT | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-38800@lists.php.net to get a copy of this message | ||
sablotron seems to be converting <br/> to <br> is this normal? its not valid
XHTML.
index.xsl
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method='html' indent='yes' encoding='utf-8' />
<xsl:template match='/menu'>
<xsl:for-each select='category'>
<xsl:value-of select='level'/>
<a href='{link}'><xsl:value-of select='name'/> </a>
<br/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
--
Chris Lee
Mediawaveonline.com
lee@mediawaveonline.com