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

Re: [XSL] extracting a verse

Subject: Re: [XSL] extracting a verse
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 19 Dec 2002 10:16:41 +0000
Re:  [XSL] extracting a verse
Hi David,

> I missed the start of this thread but is d-o-e acceptable?

Well, I think that your stylesheet demonstrates that the easiest way
to approach this problem is to use a serial, SAX-like process rather
than a tree-based process. And that's the point; when you start
treating the XML source and result as streams of events, it's easier
to use a SAX filter than XSLT.

Of course you might want to use XSLT for other reasons. I played
around with the idea of having a standard mapping of SAX events into
elements, e.g.:

  <sax:startElement name="foo" />
  <sax:endElement name="foo" />

which you could use as either the source or result of the stylesheet
(or both) as desired. I don't know if that's a worthwhile avenue to
pursue; it has the same disadvantage as d-o-e that there's no
guarantee of the well-formedness of the result.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.