RE: What's Good XML Document for XSLT or XQL applications

Subject: RE: What's Good XML Document for XSLT or XQL applications
From: Jarle Stabell <jarle@xxxxxxxxxxx>
Date: Wed, 1 Dec 1999 17:16:59 +0100
Esfand Shayan  wrote:
> I understand that XSLT and XQL can be used against
> any XML documents.  But, naturally, certain XML document's
> structures lend themselves better than the others to XSLT/XQL
> queries and template processing.
>
> Do you have any guidelines/recommendations/tips/pitfalls
> for XML document design for more effective XSLT/XQL usage?

I'm searching for the same info.

More specifically, is it (much?) easier to handle content models like

<Section>
  <Title>...</Title>
  <Body>blablabla...</Body>
</Section>

than

<Section>
  <Title>...</Title>
  blablabla...
</Section>

(ie the first example disallows mixed content directly inside the Section)

In the first variant, one can select the Title, and process it. Then select 
the Body, and process it.

In the second variant, does one have to change the processing "mindset" a 
bit, by first selecting the Title, and then process the whole content of 
Section (and ignoring the Title during this processing)?
Is this so much more work (or the solution less extensible) that one should 
rather disallow mixed content directly inside <Section>, by forcing it into 
a special subelement?


Cheers,
Jarle Stabell


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


Current Thread