Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Grouping Problem in HTML Header Tag

From: David Carlisle <davidc@--------->
To:
Date: 7/3/2006 9:03:00 AM
> Thanks you for suggestion. But ( <!-- If i am creat another <h2> text here,
> its not converting properly. -->) 

As I said, your "new" h2 has just been added in the same div as an
existing h2 so does not match the same structure as the rest of your
input. If you have a list of h.. elements at the same level you need to
group them using for-each-group. If every section is in its own div
then you do not need to group anything. If you have a mixture of both
styles, that is also possible to fix, but you have to describe your
input format better.

Why for example are the first two sections in the same div and the thrid
one in a different div:

<div>
<h2>Introduction to Wi-Fi</h2>
<p>Welcome to the world</p>
                                                    <!-- Just concentrate
Here -->
<h2>Introduction Wi-Fi</h2>
<p>Once gone through</p>
</div>
<div>
<h2>The History and Basics of 802.11</h2>
<p>The desire of people</p>
</div>


It would be more normal to see them all at teh same level, either all in
the same div

<div>
<h2>Introduction to Wi-Fi</h2>
<p>Welcome to the world</p>
                                                    <!-- Just concentrate
Here -->
<h2>Introduction Wi-Fi</h2>
<p>Once gone through</p>

<h2>The History and Basics of 802.11</h2>
<p>The desire of people</p>
</div>



or all in threir own div


<div>
<h2>Introduction to Wi-Fi</h2>
<p>Welcome to the world</p>
</div>
<div>                                                    <!-- Just concentrate
Here -->
<h2>Introduction Wi-Fi</h2>
<p>Once gone through</p>
</div>
<div>
<h2>The History and Basics of 802.11</h2>
<p>The desire of people</p>
</div>


The last form is the easiest to convert (just change some element names,
as I showed in my previous reply) the for above that is only slightly
harder, just use for-each-group to group the h2 elements. the format you
have could also be hanedled either by giving a specification of where
the divs appear, or if it is just random, first make a transform that
removes the divs, so giving teh middle format aboave, and then use
for-each-group.

David


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