Re: [xsl] Creating a container?

Subject: Re: [xsl] Creating a container?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 26 Nov 2001 15:59:34 -0500

At 03:30 PM 11/26/01, you wrote:
My question is about which way to go:

* Trying to create a XSL stylesheet that operates on a sequence of elements ("all elements after <chaptertitle> until the next") -- if that is possible at all?


* Trying to enhance the XML source with above mentioned container elements (using which tool?) before applying a XSL stylesheet?

Thanks you for any hints that help accelerate my learning [X?]path.

You could go either way. You are right a container hierarchy would make life much easier. XSLT is much better a flattening a deep structure, than it is at inferring a structure that isn't actually explicit in the element hierarchy.

On the other hand, XSLT can still do this job in many or most cases, at least the relatively ones. The nicest solution sees "inferring a hierarchy" as a special case of the grouping problem. See for some code. Or search the archives of this list for "levitation".

Ask again if this scant hint is not enough: someone will give you a URL and/or a fuller explanation.


Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
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

XSL-List info and archive:

Current Thread