|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Splitting XHTML by elements that have page-breaks
Martynas,
If your sibling recursion is very complex, it can be managed more easily by separating the process into two phases. Phase one marks the places where the splitting has to occur. (For example, you could use attribute flags on the elements starting the new chunk.) Phase two performs the sibling recursion, splitting at those places (looking for the attribute flags, not something else). This way all the logic controlling where the splitting should happen is separate from the sibling recursion, which tends to make it much easier to see, extend and maintain. In XSLT 2.0, where we can use for-each-group instead of sibling recursion, the same encapsulation can be achieved using a function. Cheers, Wendell At 07:24 PM 9/15/2009, you wrote: Hey list, ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








