Subject: Re: XML slice design From: Dan Morrison <dman@xxxxxxxx> Date: Sat, 13 May 2000 03:09:40 +1200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
XML slice design, Sydney | Thread | Re: XML slice design, Sebastian Rahtz |
conversion of xml document using xs, satish gvs | Date | RE: variable and match, Kevin Williams |
Month |