Subject: Re: [xsl] Descendant::?? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 22 Apr 2008 19:27:45 +0200 |
Kind regards, -- Abel Braaksma
Do I want to use the Descendant predicate to get all nodeset children of the one I match on?
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output encoding="UTF-8" method="html" version="4.01"
omit-xml-declaration="yes" media-type="text/html"/>
<!-- value passed dynamically via asp -->
<xsl:param name="paraCatagory"/>
<xsl:template match="menu">
<xsl:apply-templates
select="descendant::category[@name=$paraCatagory]"/>
</xsl:template>
<xsl:template match="category">
<div class="cat_module">
<xsl:value-of select="category/@display_name"/>
<br/>
<a href="{category/info/link}">
<img src="{category/info/images/image}"/>
</a>
</div>
</xsl:template>
</xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Descendant::??, Dan Acuff | Thread | RE: [xsl] Descendant::??, Dan Acuff |
[xsl] Descendant::??, Dan Acuff | Date | RE: [xsl] Descendant::??, Dan Acuff |
Month |