Package net.sf.saxon.om

Examples of net.sf.saxon.om.AttributeCollection


    protected ItemType getReturnedItemType() {
        return getCommonChildItemType();
    }

    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here


        // the character to be substituted, as a Unicode codepoint (may be > 65535)
    private String replacementString = null;

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.CHARACTER) {
                String s = atts.getValue(a);
                switch (s.length()) {
                    case 0:
                        compileError("character attribute must not be zero-length", "XTSE0020");
                        codepoint = 256; // for error recovery
                        break;
                    case 1:
                        codepoint = s.charAt(0);
                        break;
                    case 2:
                        if (UTF16.isHighSurrogate(s.charAt(0)) &&
                                UTF16.isLowSurrogate(s.charAt(1))) {
                            codepoint = UTF16.combinePair(s.charAt(0), s.charAt(1));
                        } else {
                            compileError("character attribute must be a single XML character", "XTSE0020");
                            codepoint = 256; // for error recovery
                        }
                        break;
                    default:
                        compileError("character attribute must be a single XML character", "XTSE0020");
                        codepoint = 256; // for error recovery
                }
          } else if (f==StandardNames.STRING) {
            replacementString = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (codepoint==-1) {
View Full Code Here

    public boolean mayContainSequenceConstructor() {
        return true;
    }

    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here

      String languageAtt = null;
      String implementsAtt = null;
      String srcAtt = null;
      String archiveAtt = null;

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.LANGUAGE) {
            languageAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.IMPLEMENTS_PREFIX) {
            implementsAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.SRC) {
            srcAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.ARCHIVE) {
            archiveAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (implementsAtt==null) {
View Full Code Here

        return true;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();
    String selectAtt = null;
    String copyNamespacesAtt = null;
    String validationAtt = null;
    String typeAtt = null;
        String readOnceAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
            } else if (f==StandardNames.COPY_NAMESPACES) {
                copyNamespacesAtt = Whitespace.trim(atts.getValue(a));
            } else if (f==StandardNames.VALIDATION) {
                validationAtt = Whitespace.trim(atts.getValue(a));
            } else if (f==StandardNames.TYPE) {
                typeAtt = Whitespace.trim(atts.getValue(a));
            } else if (f==StandardNames.SAXON_READ_ONCE) {
                readOnceAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

        return true;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
    String groupByAtt = null;
    String groupAdjacentAtt = null;
    String startingAtt = null;
    String endingAtt = null;
        String collationAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
            if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
          } else if (f==StandardNames.GROUP_BY) {
            groupByAtt = atts.getValue(a);
          } else if (f==StandardNames.GROUP_ADJACENT) {
            groupAdjacentAtt = atts.getValue(a);
          } else if (f==StandardNames.GROUP_STARTING_WITH) {
            startingAtt = atts.getValue(a);
          } else if (f==StandardNames.GROUP_ENDING_WITH) {
            endingAtt = atts.getValue(a);
          } else if (f==StandardNames.COLLATION) {
            collationAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    public void prepareAttributes() throws XPathException {

        String selectAtt = null;

    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

        return getCommonChildItemType();
    }


    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here

    public boolean mayContainSequenceConstructor() {
        return true;
    }

    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();

        String validationAtt = null;
        String typeAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
            if (f.equals(StandardNames.VALIDATION)) {
                validationAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.TYPE)) {
                typeAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    public void prepareAttributes() throws XPathException {

        String nameAtt = null;
        String selectAtt = null;

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.NAME) {
            nameAtt = Whitespace.trim(atts.getValue(a));
             } else if (f==StandardNames.SELECT) {
            selectAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

TOP

Related Classes of net.sf.saxon.om.AttributeCollection

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.