Package net.sf.saxon.om

Examples of net.sf.saxon.om.AttributeCollection


    public void prepareAttributes() throws XPathException {

      String stylesheetPrefix=null;
      String resultPrefix=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.STYLESHEET_PREFIX) {
            stylesheetPrefix = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.RESULT_PREFIX) {
            resultPrefix = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (stylesheetPrefix==null) {
View Full Code Here


    public abstract boolean isImport();

    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.equals(StandardNames.HREF)) {
            href = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    }

    public void prepareAttributes() throws XPathException {
        String testAtt=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.TEST) {
            testAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    private String elements;

    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.equals(StandardNames.ELEMENTS)) {
            elements = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (elements==null) {
View Full Code Here

    public void prepareAttributes() throws XPathException {

        String testAtt=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.TEST) {
            testAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    String selectAtt = null;
    String disableAtt = null;
    String separatorAtt = null;

    AttributeCollection atts = getAttributeList();

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

        return NodeKindTest.TEXT;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
        String valueAtt = null;
    String countAtt = null;
    String fromAtt = null;
    String levelAtt = null;
    String formatAtt = null;
    String gsizeAtt = null;
    String gsepAtt = null;
    String langAtt = null;
    String letterValueAtt = null;
        String ordinalAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.SELECT)) {
            selectAtt = atts.getValue(a);
            } else if (f.equals(StandardNames.VALUE)) {
            valueAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.COUNT)) {
            countAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.FROM)) {
            fromAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.LEVEL)) {
            levelAtt = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.FORMAT)) {
            formatAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.LANG)) {
            langAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.LETTER_VALUE)) {
            letterValueAtt = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.GROUPING_SIZE)) {
            gsizeAtt = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.GROUPING_SEPARATOR)) {
            gsepAtt = atts.getValue(a);
            } else if (f.equals(StandardNames.ORDINAL)) {
                ordinalAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    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 (UTF16CharacterSet.isHighSurrogate(s.charAt(0)) &&
                                UTF16CharacterSet.isLowSurrogate(s.charAt(1))) {
                            codepoint = UTF16CharacterSet.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

    protected boolean seesAvuncularVariables() {
        return false;
    }

    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

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.