[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: inline troubles
Dear Luke,
Use templates. This is XSLT 101: <xsl:template match="line"> <xsl:apply-templates/> </xsl:template> <xsl:template match="a"> <fo:inline text-decoration="underline"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="d"> <fo:inline text-decoration="line-through"> <xsl:apply-templates/> </fo:inline> </xsl:template> I like to teach beginners never to use xsl:for-each at all unless they have a good reason. Good reasons do not include "I didn't know how to use a template", since to learn XSLT is to learn how to use them. :-) Cheers, Wendell At 05:12 PM 9/5/2006, you wrote: I'm having some trouble trying to underline and line-through specific text from my xml. My xml is formatted like so:
|
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
|