[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Tag within tag
Subject: Re: Tag within tag
From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
Date: Fri, 04 Apr 2003 18:52:14 -0500
|
thanks! worked like a charm.
cknell@xxxxxxxxxx wrote:
-----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
Code Made Fresh Daily™
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
- Tag within tag
- David B. Bitton - Fri, 4 Apr 2003 16:48:24 -0500 (EST)
- <Possible follow-ups>
- cknell - Fri, 4 Apr 2003 17:17:00 -0500 (EST)
- David B. Bitton - Fri, 4 Apr 2003 18:51:45 -0500 (EST) <=
|
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|