Altova Mailing List Archives

Re: [xsl] How Handle Html Heading Tag using XSL

From: "Mukul Gandhi" <gandhi.mukul@--------->
Date: 6/27/2006 1:04:00 PM
Hi Byomkesh,
  I think I have understood your requirement (after drkm's comments).
I'll give it a thought, and post the solution (if I am able to solve
the problem).


On 6/27/06, Byomkesh <bkesh@xxxxxxxxxxxxxxx> wrote:
Thank you Mukul for the help!

I have one problem. How handle the html h1, h2, h3 etc., coding. I would
like to close </h1> tag before start in another <h1> tag.


Input file

<h1>Heading 1</h1>
<p>Some text here</p>
<h2>Heading 2</h2>
<p>Some text here</p>
<h3>Heading 3</h3>
<p>Some text here</p>
<h1>Heading 1</h1>
<p>Some text here</p>

I want.....

<title>Heading 1</title>
<p>Some text here</p>
<section2><title>Heading 2</title>
<p>Some text here</p>
<section3><title>Heading 3</title>
<p>Some text here</p>
<section1><title>Heading 1</title>
<p>Some text here</p>




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 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.