|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: attributes and elements
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








