Re: [xsl] Adding structure to a docment based on attributes

Subject: Re: [xsl] Adding structure to a docment based on attributes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 24 Sep 2001 14:07:29 -0400
Nicholas:

At 07:49 AM 9/24/01, you wrote:
Adding sections/subjections and levels depending on formatting type
information

Check out my contribution to the list at http://www.biglist.com/lists/xsl-list/archives/200012/msg00138.html and Jeni's improvements at http://www.biglist.com/lists/xsl-list/archives/200012/msg00175.html.


This is basically a grouping problem. The secret is to think of the problem not as working by "closing the logical structure at the right place", but by correctly identifying which nodes go into which logical structure, and pulling just those nodes in when you create it.

Keys are great for this. Attributes are a bit of a red herring: they make your problem different only in that you will be using them to help identify your key values.

I hope that's enough of a tip --
Wendell


====================================================================== 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 ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread