This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Template Question


> <Chap1>The big<HL>dog</HL> and the little cat</Chap1>

> <xsl:template name="Chap1">
> <Chap1Text><xsl:value-of select="."/></Chap1text><BR>
> </xsl:template>
> 
> 
> I would like to display all the texts according to the Stylesheet's
> order(e.g. first chap1, then chap2, then chap3....). At the 
> same time I would like to change all the <HL> tags to <B> tags; <HL> tags 
> can be found anywhere in the document. 

Change the Chap1 template above, and others similar, to use
<xsl:apply-templates/> instead of <xsl:value-of select="."/>

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]