Re: An XSL SAX?

Subject: Re: An XSL SAX?
From: Paul Prescod <paul@xxxxxxxxxxx>
Date: Sat, 12 Dec 1998 15:46:56 -0600
Andy Dent wrote:
> 
> ie: I need an event stream that says something like (ignore the syntax,
> this is conceptual only):
> start document
> start font centred Helvetica Bold 18
> text 'Andy Example'
> end font
> start table 4 cols
> ...
> 
> IOW a sequence of events for which I provide callbacks, rather than just
> generating a lump of plain text.

But XSL is more general than fonts, tables and other formatting objects.
So of course the events have to be in terms of lower level constructs:

start document
start element
	font="helvetical bold 18" 
	align="center"
start text 'Andy Example'
end font
start element table
	width=4

But these events are identical to the ones you get with SAX. Your wish has
already come true!

> Given a couple of months away from the problem, it seems to me that what's
> needed (by us at least) is an equivalent of SAX.

SAX is the XSL equivalent of SAX. The result of applying an XSL stylesheet
is elements, attributes, processing instructions, comments and other such
constructs. SAX is a fine API for discussing those constructs. So what is
the problem?

 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

"Sports utility vehicles are gated communities on wheels" - Anon



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


Current Thread
  • An XSL SAX?
    • Andy Dent - Thu, 10 Dec 1998 16:00:47 +0800
      • Paul Prescod - Sat, 12 Dec 1998 15:46:56 -0600 <=
        • Andy Dent - Tue, 15 Dec 1998 15:39:35 +0800
      • Chris Maden - Sun, 13 Dec 1998 19:15:42 -0500 (EST)
        • Andy Dent - Tue, 15 Dec 1998 15:47:44 +0800
      • <Possible follow-ups>
      • James Tauber - Fri, 11 Dec 1998 22:44:16 +0800