Subject: [xsl] Convert apply-templates to call-template? From: Phillip B Oldham <phillip.oldham@xxxxxxxxxx> Date: Mon, 30 Jan 2006 08:11:34 +0000 |
<?xml version="1.0" encoding="utf8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Conditions equivalent to <xsl:sequence select="$boss/../item[lh gt $boss/lh and rh le $boss/rh]"/> -->
<xsl:template match="item"> <xsl:param name="context"/> <xsl:if test="not($context[current()/lh > lh and rh >= current()/rh])"> <xsl:variable name="context-inner" select="$context[lh > current()/lh and current()/rh >= rh]"/> <department title="{name}"> <xsl:apply-templates select="$context-inner"> <xsl:with-param name="context" select="$context-inner"/> </xsl:apply-templates> </department> </xsl:if> </xsl:template>
<xsl:template match="/"> <group> <xsl:apply-templates select="output/item"> <xsl:with-param name="context" select="output/item"/> </xsl:apply-templates> </group> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Font family for titles, body, David Nedrow | Thread | Re: [xsl] Convert apply-templates t, David Carlisle |
[xsl] Font family for titles, body, David Nedrow | Date | Re: [xsl] Convert apply-templates t, David Carlisle |
Month |