Package net.sf.saxon.event

Examples of net.sf.saxon.event.CopyInformee


    */

    public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException {

        int typeCode = (copyAnnotations ? getTypeAnnotation() : StandardNames.XS_UNTYPED);
        CopyInformee informee = out.getPipelineConfiguration().getCopyInformee();
        if (informee != null) {
            locationId = informee.notifyElementNode(this);
        }
        out.startElement(getNameCode(), typeCode, locationId, 0);

        // output the namespaces

View Full Code Here


        boolean disallowNamespaceSensitiveContent =
                whichNamespaces == NO_NAMESPACES &&
                copyAnnotations;
        Configuration config = tree.getConfiguration();
        int next = nodeNr;
        CopyInformee informee = receiver.getPipelineConfiguration().getCopyInformee();

    // document.diagnosticDump();

        do {

      // determine node depth
      short nodeLevel = tree.depth[next];

      // extra close required?
      if (closePending) {
        level++;
      }

      // close former elements
      for (; level > nodeLevel; level--) {
        receiver.endElement();
      }

      // new node level
      level = nodeLevel;

      // output depends on node kind
      switch (tree.nodeKind[next]) {
        case Type.ELEMENT : {

          // start element
                    final int typeCode = (copyAnnotations ? tree.getTypeAnnotation(next): StandardNames.XS_UNTYPED);
                    if (disallowNamespaceSensitiveContent) {
                        checkNotNamespaceSensitive(config, typeCode);
                    }
                    if (informee != null) {
                        locationId = informee.notifyElementNode(tree.getNode(next));
                    }
                    int nameCode = tree.nameCode[next];
                    receiver.startElement(nameCode,
                            typeCode,
                            locationId, (first ? 0 : ReceiverOptions.NAMESPACE_OK));
View Full Code Here

TOP

Related Classes of net.sf.saxon.event.CopyInformee

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.