This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adding structure to a docment based on attributes


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@mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]