Subject: Re: [xsl] Tag within tag From: "David B. Bitton" <david@xxxxxxxxxxxxxx> Date: Fri, 04 Apr 2003 18:52:14 -0500 |
-----Original Message----- From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
<xsl:template match="body">
<fragment font="Helvetica" fontsize="7">
<xsl:value-of select="."/>
</fragment> </xsl:template>
but I don;t know how to handle a <sub> element within <body> if it occurrs. What do I need to do? BTW, XPath 1.0 :)
I had the same question today, and here's how I handled it:
<xsl:template match="body">
<fragment font="Helvetica" fontsize="7">
<xsl:apply-templates />
</fragment> </xsl:template>
<xsl:template match="sub"> <!-- do what you want here --> </xsl:template>
Create a template to apply to the <sub> elements, and apply-templates from inside the parent template.
-- David B. Bitton david@xxxxxxxxxxxxxx www.codenoevil.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Tag within tag, cknell | Thread | [xsl] Please Help!!!, Tham Tinh |
Re: [xsl] Please Help!!!, Peter Flynn | Date | Re: [xsl] reference external javasc, Wendell Piez |
Month |