Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Re: XSLT for XHTML1 to XHTML2

From: "Vyacheslav Sedov" <vyacheslav.sedov@--------->
To:
Date: 1/1/2008 11:28:00 PM
i need convert XHTML version 1 to XHTML version 2

On Jan 1, 2008 7:10 PM, Alice Wei <ajwei@xxxxxxxxxxx> wrote:
> Hi, Vyacheslav:
>
>   If you only want to convert your XML to XHTML, all you need to do is
> to have a lot of <xsl:apply-templates/> nested like the one following:
>
> <html>
> <head> <!--you can insert your meta data here-->
> </head>
> <body>
> <xsl:apply-templates/>
> </body>
> </html>
>
> <xsl:template match="section">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="p">
> <p><xsl:apply-templates/>
> </p>
> <xsl:template/>
>
> <xsl:template match="h">
> <h1><xsl:apply-templates/>
> </h1>
> </xsl:template/>
>
> However, I am not sure if the code here listed is XML or the intended
> output. There is no such thing now in the XHTML with <section>. If you
> want to, use something like a <div> to replace it for use in your XSLT
> conversion.
>
> Cheers.
>
> Alice Wei
> MIS 2008
> School of Library and Information Science
> Indiana University Bloomington
> ajwei@xxxxxxxxxxx
> 812-856-2659
>
>
> Quoting Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx>:
>
> > i should get something like this
> >
> > <body>
> > <h>This is a top level heading</h>
> > <p>....</p>
> > <section>
> >    <p>....</p>
> >    <h>This is a second-level heading</h>
> >    <p>....</p>
> >    <h>This is another second-level heading</h>
> >    <p>....</p>
> > </section>
> > <section>
> >    <p>....</p>
> >    <h>This is another second-level heading</h>
> >    <p>....</p>
> >    <section>
> >        <h>This is a third-level heading</h>
> >        <p>....</p>
> >    </section>
> > </section>
> > </body>
> >
> > On Jan 1, 2008 6:23 PM, Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx> wrote:
> >> hello,
> >>
> >> i can`t find xslt for xhtml1 to xhtml2 convetring in www
> >>
> >> maybe someone have this already?
> >>
> >> i am mostly interested in automated converting flat h1..h8 structure
> >> into nested sections structure.
> >>
> >> with best wishes,
> >> Slav


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent