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

Insert Header as well as Wrap the whole content in Tab

Subject: Insert Header as well as Wrap the whole content in Table
From: "Animesh Sharma" <asharma@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2004 11:46:22 +0530
header wrap
Hi,

I want to insert header in an XHTML and as well as want the whole content to be wrap in a table.

Presentely I'm using following template for the both operations:

For Header:

<xsl:template  match="body">
	Header_Text
	<a href="http://www.google.com">
	<img src="D:\logo.gif"/></a>
	  <xsl:apply-templates select="*|text()|@*" /> 
</xsl:template>

<xsl:template match="*|text()|@*">
       <xsl:copy>
         <xsl:apply-templates select="*|text()|@*" />
       </xsl:copy>
</xsl:template>

To Wrap:

<xsl:template match="body">
<body>
<xsl:apply-templates select="@*"/>
	<table cellspacing="0" cellpadding="0" width="65%" border="0">
		<tbody><tr><td><table><tbody><tr><td>
		<xsl:apply-templates select="*|text()"/>						
		</td></tr></tbody></table></td></tr></tbody>
	</table>
</body>
</xsl:template>

<xsl:template match="*|text()|@*">
       <xsl:copy>
         <xsl:apply-templates select="*|text()|@*" />
       </xsl:copy>
</xsl:template>

Since both the template above use the same match i.e. "body", It is not possible to use both simultaneously. 
I want to create two independent template which if inserted in the same XSL will give me the desired result.
I want template to be working independently as well as in combined form.

Thanks in advance,
Animesh

 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.