Thanks for diagnosing this. We'll nail this one in the end...
Michael Kay
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@...] On Behalf Of
> Daniel Neades
> Sent: 24 June 2004 00:15
> To: saxon-help@...
> Subject: Re: [saxon] Unkown type annotation
>
> Even after modifying my 8.0B Saxon source along the lines
> indicated, I
> was still getting the Unknown type annotation error. After scattering
>
> assert typeCode != 0;
>
> statements in every single method that takes a typeCode parameter, I
> found the apparent cause. NodeWrapper.getTypeAnnotation() (line 145)
> returns 0, whereas (I think) it should return -1. This was causing
> NodeWrapper.copy to fail when it called Navigator.copy. Changing
> NodeWrapper.getTypeAnnotation() to return -1 resolved the
> problem for me.
>
> Does this sound plausible?
>
> Kind regards,
>
> --
> Daniel Neades
> Araxis Ltd
> http://www.araxis.com
>
>
> Michael Kay wrote:
> > Thanks for finding these. I've now done a similar search
> myself and fixed
> > them. In practice, I think the only one that is likely to
> cause trouble
> > (unless you are doing something fairly strange) is the one
> in DOMSender,
> > which will affect transformations using a DOM as input.
> (Unfortunately, DOM
> > input tends to be a poor relation in testing. I do run a
> subset of my tests
> > with DOM input, but the subset obviously didn't catch this case).
> >
> > Michael Kay
> >
> >
> >>-----Original Message-----
> >>From: saxon-help-admin@...
> >>[mailto:saxon-help-admin@...] On Behalf Of
> >>Michael Hartmeier
> >>Sent: 17 June 2004 09:35
> >>To: saxon-help@...
> >>Subject: Re: [saxon] Unkown type annotation
> >>
> >>Does anybody experience a similar problem? How did you fix it?
> >>
> >>Michael
> >>
> >>On Mon, 2004-06-14 at 11:46, Michael Hartmeier wrote:
> >>
> >>>I experienced various
> >>> Unknown type annotation (NULL) in document instance
> >>>exceptions with saxon-b 8.0. This looks like problem 927057:
> >>>
> >>
> >>http://sourceforge.net/tracker/index.php?func=detail&aid=92705
> >>7&group_id=29872&atid=397617
> >>
> >>>Checking the methods
> >>> Receiver.startElement
> >>>and
> >>> Receiver.attribute
> >>>mentioned in the problem description I noticed that
> various calls to
> >>>them still pass "0" as type anotation. It worked when I
> >>
> >>pass -1 instead.
> >>
> >>>Michael
> >>>
> >>>---
> >>>
> >>>
> >>>
> >>>diff -r ./net/sf/saxon/dom/DOMSender.java
> >>>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/dom/DOMSender.java
> >>>183c183
> >>>< receiver.startElement(nameCode, 0, 0);
> >>>---
> >>>
> >>>> receiver.startElement(nameCode, -1, 0);
> >>>
> >>>205c205
> >>>< receiver.attribute(attCode, 0,
> att.getValue(), 0);
> >>>---
> >>>
> >>>> receiver.attribute(attCode, -1,
> >>
> >>att.getValue(), 0);
> >>
> >>>diff -r ./net/sf/saxon/instruct/ElementCreator.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/instruct/Eleme
> >>ntCreator.java
> >>
> >>>195c195
> >>>< controller.getReceiver().startElement(-1, 0, 0);
> >>>---
> >>>
> >>>> controller.getReceiver().startElement(-1, -1, 0);
> >>>
> >>>Only in ./net/sf/saxon: jdom
> >>>diff -r ./net/sf/saxon/query/QueryResult.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/query/QueryR
> esult.java
> >>
> >>>64c64
> >>>< tree.startElement(resultSequence, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultSequence, -1, 0);
> >>>
> >>>76c76
> >>>< tree.startElement(resultDocument, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultDocument, -1, 0);
> >>>
> >>>82c82
> >>>< tree.startElement(resultElement, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultElement, -1, 0);
> >>>
> >>>88c88
> >>>< tree.startElement(resultAttribute, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultAttribute, -1, 0);
> >>>
> >>>94c94
> >>>< tree.startElement(resultText, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultText, -1, 0);
> >>>
> >>>100c100
> >>>< tree.startElement(resultComment, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultComment, -1, 0);
> >>>
> >>>106c106
> >>>< tree.startElement(resultPI, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultPI, -1, 0);
> >>>
> >>>112c112
> >>>< tree.startElement(resultNamespace, 0, 0);
> >>>---
> >>>
> >>>> tree.startElement(resultNamespace, -1, 0);
> >>>
> >>>119,120c119,120
> >>>< tree.startElement(resultAtomicValue, 0, 0);
> >>>< tree.attribute(resultType, 0,
> >>>Type.displayTypeName(next), 0);
> >>>---
> >>>
> >>>> tree.startElement(resultAtomicValue, -1, 0);
> >>>> tree.attribute(resultType, -1,
> >>>
> >>>Type.displayTypeName(next), 0);
> >>>diff -r ./net/sf/saxon/sql/SQLQuery.java
> >>>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/sql/SQLQuery.java
> >>>225c225
> >>>< out.startElement(rowCode, 0, 0);
> >>>---
> >>>
> >>>> out.startElement(rowCode, -1, 0);
> >>>
> >>>230c230
> >>>< out.startElement(colCode, 0, 0);
> >>>---
> >>>
> >>>> out.startElement(colCode, -1, 0);
> >>>
> >>>diff -r ./net/sf/saxon/style/LiteralResultElement.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/style/LiteralR
> >>esultElement.java
> >>
> >>>438c438
> >>>< builder.startElement(st, 0, 0);
> >>>---
> >>>
> >>>> builder.startElement(st, -1, 0);
> >>>
> >>>440c440
> >>>< builder.attribute(pool.allocate("", "",
> "version"), 0,
> >>>version, 0);
> >>>---
> >>>
> >>>> builder.attribute(pool.allocate("", "",
> >>
> >>"version"), -1,
> >>
> >>>version, 0);
> >>>444,445c444,445
> >>>< builder.startElement(te, 0, 0);
> >>>< builder.attribute(pool.allocate("", "",
> >>
> >>"match"), 0, "/",
> >>
> >>>0);
> >>>---
> >>>
> >>>> builder.startElement(te, -1, 0);
> >>>> builder.attribute(pool.allocate("", "",
> >>
> >>"match"), -1, "/",
> >>
> >>>0);
> >>>diff -r ./net/sf/saxon/tree/AttributeImpl.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/tree/Attribute
> >>Impl.java
> >>
> >>>141c141
> >>>< out.attribute(nameCode, 0, getStringValue(), 0);
> >>>---
> >>>
> >>>> out.attribute(nameCode, -1, getStringValue(), 0);
> >>>
> >>>diff -r ./net/sf/saxon/tree/ElementImpl.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/tree/Element
> Impl.java
> >>
> >>>293c293
> >>>< out.startElement(getNameCode(), 0, 0);
> >>>---
> >>>
> >>>> out.startElement(getNameCode(), -1, 0);
> >>>
> >>>diff -r ./net/sf/saxon/tree/ElementWithAttributes.java
> >>>
> >>
> >>/home/mhm/src/workspace/saxon8/src/net/sf/saxon/tree/ElementWi
> >>thAttributes.java
> >>
> >>>304c304
> >>>< out.startElement(getNameCode(), 0, 0);
> >>>---
> >>>
> >>>> out.startElement(getNameCode(), -1, 0);
> >>>
> >>>315c315
> >>>< out.attribute(attributeList.getNameCode(i), 0,
> >>>---
> >>>
> >>>> out.attribute(attributeList.getNameCode(i), -1,
> >>>
> >>>[
> >>>
> >>>
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email is sponsored by the new InstallShield X.
> >>>From Windows to Linux, servers to mobile, InstallShield X is the
> >>>one installation-authoring solution that does it all.
> Learn more and
> >>>evaluate today! http://www.installshield.com/Dev2Dev/0504
> >>>_______________________________________________
> >>>saxon-help mailing list
> >>>saxon-help@...
> >>>https://lists.sourceforge.net/lists/listinfo/saxon-help
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> >>Learn from the experts at JavaOne(SM), Sun's Worldwide Java
> Developer
> >>Conference, June 28 - July 1 at the Moscone Center in San
> >>Francisco, CA
> >>REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority
> >>Code NWMGYKND
> >>_______________________________________________
> >>saxon-help mailing list
> >>saxon-help@...
> >>https://lists.sourceforge.net/lists/listinfo/saxon-help
> >>
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> > Learn from the experts at JavaOne(SM), Sun's Worldwide Java
> Developer
> > Conference, June 28 - July 1 at the Moscone Center in San
> Francisco, CA
> > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority
> Code NWMGYKND
> > _______________________________________________
> > saxon-help mailing list
> > saxon-help@...
> > https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
|