[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|