[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: An XSL SAX?


Subject: Re: An XSL SAX?
From: "James Tauber" <jtauber@xxxxxxxxxxx>
Date: Fri, 11 Dec 1998 22:44:16 +0800

>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.
>
>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

I don't understand. If you just represent the XSL result tree as XML (as XSL
engines like XT and Koala do) you can just use a SAX parser to read the XML.

This is what FOP does. It uses SAX to take an XML document coming out of XT:
    <fo:block
        font-family="Helvetica"
        font-weight="bold"
        font-size="18pt"
        text-align
    >Andy Example</fo:block>

and FOP has an event handler for block objects, etc.

James
--
James Tauber / jtauber@xxxxxxxxxxx / www.jtauber.com
Associate Researcher, Electronic Commerce Network
Curtin University of Technology, Perth, Western Australia

Maintainer of : www.xmlinfo.com,  www.xmlsoftware.com and www.schema.net



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



Current Thread
Keywords