|
Subject: [xsl] Help with mode From: "Meenakshi Nanjundeswar" <meenananju@xxxxxxxxxxx> Date: Thu, 19 Oct 2006 15:35:58 -0500 |
<step1>
<note>
<para>Some text</para>
</note>
<text><para>Txt</para></text>
<note><para>Second note</para></note>
<step2>
<note>
<para>Some other text</para>
</note>
<text>para>Txt2</para></text>
</step2>
</step1>NOTE: Some text 1.Txt NOTE:Second note NOTE:Some Other text 2.Txt2
<xsl:template match="step1"> <xsl:if test="child::note><xsl:apply-templates select="note" mode="step1"/> <code for....formatting for step1...> </xsl:template>
<xsl:template match="step2"> <xsl:if test="child::note><xsl:apply-templates select="note" mode="step1"/> <code for....formatting for step1...> </xsl:template>
Under the template for "note", <xsl:template match="note"> <xsl:choose> <xsl:when test="parent:step1|step2|step3"></xsl:when> <xsl:otherwise><!-- formatting for note element--></xsl:otherwise> </xsl:choose> </xsl:template>
What is wrong with this code? Thank you for your help.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XSLT and XSL-FO book updates , G. Ken Holman | Thread | RE: [xsl] Help with mode, Geert Josten |
| Re: [xsl] Converting XHTML to FO us, David Carlisle | Date | [xsl] Help with mode, Meenakshi Nanjundesw |
| Month |