Altova Mailing List Archives


Re: Streaming XSL Stylesheets - Was: XML::Writer 0.1 available

From: David Megginson <david@---------.--->
To: Perl-XML Mailing List <perl-xml@--------.-----------.--->, xml-dev <xml-dev@--.--.-->
Date: 4/24/1999 1:00:00 PM
Alex Milowski writes:

 > Not quite.  You could develop a stream-based DSSSL processor given that
 > you do the appropriate analysis of the stylesheet upfront and determine
 > where "caching" would have be put into place.

In DSSSL, at least, it would be probably unmanageably difficult, at
least not in the general case -- the problem is that someone could use
character data (perhaps after much arbitrary manipulation) later in
the document to decide what to select earlier, and vice-versa, using
DSSSL's navigational functions.  

For example, in DSSSL, I could specify something like the following:

  a. Take all of the character data of this element
  b. remove all whitespace
  c. reverse the order of the characters
  d. remove every character where its Unicode value mod 7 is 0
  e. look up the resulting string in a top-level a-list
  f. process all elements in a second document that have a 'foo'
     attribute whose value is lexically <= the a-list value, and
     concatenate their character data
  g. process the element in the first document with a 'bar' attribute
     containing a number equal to the number of characters extracted
     from the second document in step f.

Hopefully, things aren't quite this bad for XSL.  Good luck -- I'll be
very excited if you can solve this.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.