Yeah - I had trouble finding tip 2 as well - neither Firefox nor MSIE did a good job of rendering the page: tip 2 is off to the right, overlaid by advertising. Kind of ironic, isn't it?
Anyway, as usual, unfortunately, John is right. If I capture everything passing through my "characters" callback, I see the whole name in three separate pieces. Raul is also right that SAX should handle this better but, for the time being, I'll have to do it in J. Off the top of my head, I think this means that I'll need to keep track of when I've started a tag but not yet ended it. Thanks for your help. On Fri, Dec 19, 2008 at 1:52 PM, Raul Miller <[email protected]> wrote: > On Fri, Dec 19, 2008 at 12:23 PM, John Randall > <[email protected]> wrote: > > This is actually legal but extremely annoying. See > > That's bad. > > > http://www.xml.com/pub/a/2001/12/05/sax2.html > > > > tip #2. > > When I looked at that page, I see tips, 1, 3 and 4, but no tip 2. > > I had to view source to find tip 2. > > Basically, though, it looks like the SAX interface assumes that > the code driving it will manage some of its state transition > context -- SAX by itself is not a complete implementation. > > In the context of J, however, I think that the code which drives > SAX should deal with this issue. This would be much better > than replicating that logic in almost every non-buggy application > which uses it. (Especially since this kind of scalar operation > really belongs in J's primitives, and not in application specific > code.) > > -- > 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
