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

RE: Nested sections from flat structure

Subject: RE: Nested sections from flat structure
From: Vane Lashua <Vane.Lashua@xxxxxxxxxxxxxx>
Date: Thu, 10 May 2001 12:13:53 -0400
vane lashua

Is the output XML structure already defined? If not, you might more
explicitly present the document structure by using more structurally
oriented tag names. Eliminating mixed content in structural elements is a
good start, but in this example there isn't much difference in the input and
the output.

		<p>first some intro text</p>
		  goes with A.</p>

is transformed into 

   <Paragraph>first some intro text</Paragraph>
      <Paragraph>goes with A.</Paragraph>

If you just want to present hierarchy, element names like a,b,c,... work.
Longer names are not necessarily better. What's the difference between
GeneralSection and GeneralSection? Is the first paragraph a title, a blurb
or an intro? Maybe it doesn't matter, but if you're naming, you might as
well use structurally meaningful names.

For instance, it might make sense to use "book, frontmatter, body, chapter,
section, subsection, rearmatter, index, glossary" or "article, abstract,
section, notes" sprinkled with name, author, title, paragraph, and such.


-----Original Message-----
From: Linda van den Brink [mailto:lvdbrink@xxxxxxx]
Sent: Thursday, May 10, 2001 9:34 AM
To: Xsl-List (E-mail)
Subject:  Nested sections from flat structure

Hi all, 

I'm wondering about the best (shortest or most elegant or easiest) way to
transform an XML document with a 'flat' structure (like an HTML document
segmented with h* elements) to an XML document with nested sections.



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

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.