Yeah - I'm not confident that the last level check is robust either but it
seems to work for the simple cases I've encountered so far.

On Mon, Dec 22, 2008 at 2:58 AM, Oleg Kobchenko <[email protected]> wrote:

> This is one way to keep track of characters.
> To tell the truth, I am not sure about the
> assumptions about last level. See the last
> test in xml/sax, which contains split characters.
> There assumption is on start AND end of elements.
>
> Alternatively, you could override the driver
> verb "cdcallback" to collect consecutive characters
> and invoke actual characters only before start and end
> element if not empty.
>
>
>
>
> > From: Devon McCormick <[email protected]>
> >
> > Well - I have not yet gotten XSLT to work - can't seem to install MSXML
> even
> > though I've downloaded msxml.msi from the Microsoft website and installed
> > it.
> >
> > So, I've used Oleg's succinct answer to Bill Lam's question to show what
> I
> > came up with to handle the ampersand problem (multiple "characters"
> calbacks
> > within a single text node) using SAX:
> > http://www.jsoftware.com/jwiki/Essays/XMLwithAmpersand .
> >
> > Thanks to Oleg for the concise example to help keep my modification clear
> > and simple.
> >
> > On Sat, Dec 20, 2008 at 1:10 AM, Raul Miller wrote:
> >
> > > On Fri, Dec 19, 2008 at 8:58 PM, Oleg Kobchenko wrote:
> > > > This is a good question for an XML or SAX forum.
> > > >
> > > > What's important here is whether xml/sax addon
> > > > deviates from SAX itself. I double-checked and in
> > > > the part of "characters" call-back and entities,
> > > > it does not.
> > >
> > > I guess then that it's a good thing that I have not
> > > been interested in using SAX.
> > >
> > > --
> > > Raul
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> >
> >
> >
> > --
> > Devon McCormick, CFA
> > ^me^ at acm.
> > org is my
> > preferred e-mail
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to