[Home] [By Thread] [By Date] [Recent Entries]
Bruce D'Arcus wrote:
Alternatively, use the pull method
<xsl:template match="section">
<h1>
<xsl:apply-templates select="title"/>
</h1>
<content>
<xsl:for-each select=".//*[@type='screen']">
<bullet>
<xsl:value-of select="."/>
</bullet>
</xsl:for-each>
</content>
</xsl:template>The latter is more compact and a bit easier to understand, while the method using moded templates makes it easier to intercept other elements for special processing (for example if there is a <b> around your <q> and you want to have it to be effective). J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



