RE: [xsl] Tags to HTML page

Subject: RE: [xsl] Tags to HTML page
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Tue, 10 Aug 2004 02:09:13 -0700 (PDT)
Hi Raman,
 I assumed you needed a XSLT way to transform the
input document to the result document. The stylesheet
I posted, does this transformation. Or did you had
something else in mind?

Regards,
Mukul

--- Subbiah <subbiah@xxxxxxxxxxxx> wrote:

>  
> Hi Mukul,
> Thank you for your example, but I am not sure as to
> how to use it in my html
> to get the output. Can u help me here.
> Thx
> 
> regards,
> raman
> -----Original Message-----
> From: Mukul Gandhi [mailto:mukul_gandhi@xxxxxxxxx] 
> Sent: Tuesday, August 10, 2004 2:45 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Tags to HTML page
> 
> 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!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

Current Thread
  • [xsl] Tags to HTML page
    • Subbiah - Tue, 10 Aug 2004 01:35:30 -0500
      • Mukul Gandhi - Tue, 10 Aug 2004 00:44:52 -0700 (PDT)
        • Subbiah - Tue, 10 Aug 2004 03:25:29 -0500
          • Mukul Gandhi - Tue, 10 Aug 2004 02:09:13 -0700 (PDT) <=
      • Michael Kay - Tue, 10 Aug 2004 08:48:32 +0100
      • <Possible follow-ups>
      • xptm - Wed, 11 Aug 2004 10:10:17 +0100
      • xptm - Thu, 12 Aug 2004 14:10:43 +0100