Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


multipass processing in XSLT 2.0

From: Larry Sulky <larrysulky@-----.--->
To: NULL
Date: 7/6/2009 12:01:00 PM
Hi. Suppose I want to turn this:

<indoc>
<heading>Aaaa aaaa</heading>
<p y="34" x="22">Iiii iiii.</p>
<p y="11" x="56">Jjjj jjjj.</p>
<p y="93" x="70">Kkkk kkkk.</p>
<z>Ssss ssss.</z>
</indoc>

into this:

<OUTDOC>
<HEADER A="70" B="93">Aaaa aaaa</HEADER>
<ZED>Ssss ssss.</ZED>
<PARA>Iiii iiii.</PARA>
<PARA>Jjjj jjjj.</PARA>
<PARA>Kkkk kkkk.</PARA>
</OUTDOC>

I've got a mix of elements and attributes, changing places and owners.
Also need to pick up an attribute value on the last <p> element and
use it up at the top of the output stream. But I'm finding it
difficult to find examples of XSLT 2.0 multipass processing, only
assurances that it's much easier than in 1.0. Can anyone here do a
quick 2.0 transform that I could then use as a model for this kind of
task generally? I would be very appreciative. Thanks --
---larry


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