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

Re: Building complex, hierarchical html datasets

Subject: Re: Building complex, hierarchical html datasets
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 18 May 2009 14:54:36 +0100
Re:  Building complex
Not sure what help can be offered without a bit more context (eg a small
irregular input and some indication of how you want it chunked into

> Therefore structure is very difficult to predict and producing a
> routine for every variation that does (or could) exist would be very
> arduous and probably unreliable.

It's a basic feature of the design of XSLt that it should be able to
cope with such irregular input. match="law"  matches law elements
wherever they are, you don't need to know in advance all the possible
paths that are needed to reach such an element.

That said your chunking probably does depend on the position of the
element within a document, but its hard to offer any coding advice at
this generality.

something as simple as

<xsl:template match="law">
    usually law elements end up as their own file

<xsl:template match="*/*/*/*/law" priority="2">
 but deeply nested law elements are inlined into their 
parent document    usually law elements end up as their own file

is probably too simple, but the idea is basically sound you just need to
codify some property that determines whether an element is chunked into
its own file a simple count on depth is most likely too simple, but
perhaps depth, and the parent element and an attribute or two might be


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread


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.
First Name
Last Name
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.