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

Re: Best Way to Break Up Nested Structures Based On I

Subject: Re: Best Way to Break Up Nested Structures Based On Inline Elements
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Apr 2018 14:30:52 -0000
Re:  Best Way to Break Up Nested Structures Based On  I
On 19/04/2018 16:08, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx wrote:
I tend to agree. This will leave the original code less cluttered. On the other hand, avoiding an extra pass is also cool.

We could pass position() as a tunneled parameter from the inner grouping to the apply-templates and make IDs unique by appending this position parameter (preceded by some glue string, for ex. '__'). But then we need to also adjust the references. We could automatically append '__1' to each reference so that it will point to the first occurrence of the original ID in the split document.

on second thought, this wonbt work. There is no guarantee that there will be an ID ending in '__1' in the output. If the original ID is only contained in the 2nd split unit, there will only be a '__2' variant.


So the separate adjustment mode seems smart.

Gerrit

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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