[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

double XSLT processing question

Subject: double XSLT processing question
From: "bix xslt" <bix_xslt@xxxxxxxxxxx>
Date: Wed, 04 Dec 2002 23:13:57 +0000
double xslt
All,

Suppose I have the following XML:

<data><text>food</text>
 <data><text>apple</text></data>
 <data><text>orange</text></data>
</data>

 With the following XSL:
<xsl:stylesheet>
 <xsl:template match="/">
   <xsl:call-template name="ouptutFood" />
 </xsl:template>

 <xsl:template name="outputFood">
   <table type="changeThis">
     <tr>
     <xsl:for-each "./data">
       <td><xsl:value-of select="./text" /></td>
     </xsl:for-each>
   </table>
 </xsl:template>
</xsl:stylesheet>

At a future point in time, however, I want to add a style to the html output, but I do not want to change the current XSL file. How would I create a second style sheet (see below) that would add my styles in and have it process the output of the original stylesheet?

<xsl:stylesheet>
 <xsl:template match="table">
   <xsl:if test="@type='changeThis'">
     <table border="1"><xsl:apply-templates /></table>
   </xsl:if>
 </xsl:template>
</xsl:stylesheet>

Could/Would I somehow use a variable with a call from the original to produce the tree??

Thanks in advance,
Bix

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.