You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jon Smirl <jo...@mediaone.net> on 2000/06/19 20:19:54 UTC

Xalan-C: Changes to SAXEvent reporting for the prolog from Xerces

Xerces is now reporting ignorable white space in the prolog.  Xalan is
catching this event and asking Xerces to create a TextNode representing
this. Xerces is failing in isKidOk on the TEXT_NODE insertion under the
DOCUMENT_NODE.

bool DocumentImpl::isKidOK(NodeImpl *parent, NodeImpl *child)
{
      static int kidOK[14];

      if (kidOK[DOM_Node::DOCUMENT_NODE] == 0)
      {
          kidOK[DOM_Node::DOCUMENT_NODE] =
              1 << DOM_Node::ELEMENT_NODE |
              1 << DOM_Node::PROCESSING_INSTRUCTION_NODE |
              1 << DOM_Node::COMMENT_NODE |
              1 << DOM_Node::DOCUMENT_TYPE_NODE |
              1 << DOM_Node::XML_DECL_NODE;

This doesn't allow TEXT_NODE children.


Jon Smirl
jonsmirl@mediaone.net



Re: Xalan-C: Changes to SAXEvent reporting for the prolog from Xerces

Posted by Rahul Jain <ra...@jtcsv.com>.
> Xerces is now reporting ignorable white space in the prolog.  Xalan is
> catching this event and asking Xerces to create a TextNode representing
> this. Xerces is failing in isKidOk on the TEXT_NODE insertion under the
> DOCUMENT_NODE.
> 

Xerces-C no longer lets ignorable whitespace, comments and characters
before root element to get through. Now it correctly lets any PI's
to be reported, as per the spec. So, hopefully this should be fixed.

rahul