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

Re: XML slice design

Subject: Re: XML slice design
From: Dan Morrison <dman@xxxxxxxx>
Date: Sat, 13 May 2000 03:09:40 +1200
xml slice
Sydney wrote:
> I need some help on XML design and XSL.

Your structure puzzles me. To me, the strength of XML is its
representation of heirachical structured data, yet your example still
seems to be thinking of your pages as a stream...

Unless I'm missing something here, (such as what do you mean by the word
'slice') I would see what you're trying to do to be better modelled as
follows...

 
<div type="chapter">
 <p>?</p>
 <div type="part">

  <slice>
   <p>?</p>
   <note>?</note>
   <list><item>?</item></list>
  </slice>

  <slice>
   <qa>?</qa>
  </slice>

 </div>
 <div type="part">

  <slice>
   <p>?</p>
   <note>?</note>
  </slice>

 </div>
</div>

Your comments said "<!?End of my first slice-->". That explicitly
implies there was a beginning to it, so mark that too!

Do NOT 'delimit', encapsulate and 'chunk'.

That said, I still don't see what you are adding to the document by
breaking it apart this way. (the divs could do this job on their own)
I guess that 'slice' is a construct of your own and independant of the
actual content structure.
If you want to slice the text for formatting purposes omly... um...
don't. I'm sure there's some clever alternative using only XSL that
means that layout issues don't pollute your information structure.

Yes it may seem tricky to get page breaks or columns into HTML without
using tags like this, but there should be a graceful way around it.
Reformulate your data structure a bit.

.dan.

:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
:  04 384 1472        :  04 495 8250       :
:  025 207 1140       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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