Subject: Re: [xsl] newbie problem From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Tue, 20 Sep 2005 14:48:14 +0200 |
My first MEASURE template: <xsl:template match="MEASURE"> <xsl:for-each select="."> <xsl:choose> <xsl:when test="BOOLEAN"> <xsl:apply-templates select="BOOLEAN"/> </xsl:when> <xsl:when test="CHOICE"> <xsl:apply-templates select="CHOICE"/> </xsl:when> <xsl:when test="MULTI_CHOICE"> <xsl:apply-templates select="MULTI_CHOICE"/> </xsl:when> <xsl:when test="TEXT"> <xsl:apply-templates select="TEXT"/> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:template>
My next attempt: <xsl:template match="MEASURE"> <xsl:for-each select="."> <xsl:if test="BOOLEAN"> <xsl:apply-templates select="BOOLEAN"/> </xsl:if> <xsl:if test="CHOICE"> <xsl:apply-templates select="CHOICE"/> </xsl:if> <xsl:if test="MULTI_CHOICE"> <xsl:apply-templates select="MULTI_CHOICE"/> </xsl:if> <xsl:if test="TEXT"> <xsl:apply-templates select="TEXT"/> </xsl:if> </xsl:for-each> </xsl:template>
<xsl:template match="MEASURE"> <xsl:apply-templates select="BOOLEAN|CHOICE|MULTI_CHOICE|TEXT"/> </xsl:template>
<xsl:template match="MEASURE"> <xsl:apply-templates/> </xsl:template>
regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Keep it simple.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] newbie problem, Laing | Thread | Re: [xsl] newbie problem, David Carlisle |
[xsl] newbie problem, Laing | Date | Re: [xsl] newbie problem, David Carlisle |
Month |