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

Re: Re: XSLT for XHTML1 to XHTML2

Subject: Re: Re: XSLT for XHTML1 to XHTML2
From: "Vyacheslav Sedov" <vyacheslav.sedov@xxxxxxxxx>
Date: Wed, 2 Jan 2008 02:27:57 +0300
Re:  Re: XSLT for XHTML1 to XHTML2
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.