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

Re: Tags to HTML page

Subject: Re: Tags to HTML page
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Tue, 10 Aug 2004 00:44:52 -0700 (PDT)
tags the html
Hi Raman,
Please try this XSL -

<?xml version="1.0"?> 
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
 
<xsl:output method="xml" indent="yes" /> 

<xsl:template match="@* | node()">
  <xsl:copy>
   <xsl:apply-templates select="@* | node()" />
  </xsl:copy> 
</xsl:template>
 
<xsl:template match="h3">
  <myowntag:bind path="someCode">
    <xsl:copy-of select="." />
  </myowntag:bind>
</xsl:template>
 
</xsl:stylesheet>

The identity template is modified, to achieve the
desired result.

Regards,
Mukul

--- Subbiah <subbiah@xxxxxxxxxxxx> wrote:

> 
> Hi I have a page like this 
> 
> <html>
>   <head></head>
>   <body>
>      <h3>Test Conversion</h3>
>        <b> How to do it </b>
>   </body>
> </html>
> 
> 
> Whenever there is a  <h3> tag I should surrond it
> with more tags 
> 
> <myowntag:bind path="someCode"> 
> <h3>Test Conversion</h3>
> </myowntag>
> 
> 
> Basically the input is a JSP and I need to add some
> Tag libraries to it.
> 
> What would be the best way to do it.
> 
> regards,
> raman



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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.