Package net.sf.saxon.tree

Examples of net.sf.saxon.tree.AttributeCollection


        return NodeKindTest.TEXT;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    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==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
            } else if (f==StandardNames.VALUE) {
            valueAtt = atts.getValue(a);
          } else if (f==StandardNames.COUNT) {
            countAtt = atts.getValue(a);
          } else if (f==StandardNames.FROM) {
            fromAtt = atts.getValue(a);
          } else if (f==StandardNames.LEVEL) {
            levelAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.FORMAT) {
            formatAtt = atts.getValue(a);
          } else if (f==StandardNames.LANG) {
            langAtt = atts.getValue(a);
          } else if (f==StandardNames.LETTER_VALUE) {
            letterValueAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.GROUPING_SIZE) {
            gsizeAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.GROUPING_SEPARATOR) {
            gsepAtt = atts.getValue(a);
            } else if (f==StandardNames.ORDINAL) {
                ordinalAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here


    public void prepareAttributes() throws TransformerConfigurationException {

        String terminateAtt = 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.TERMINATE) {
            terminateAtt = atts.getValue(a).trim();
            } else if (f == StandardNames.SELECT) {
                selectAtt = atts.getValue(a);

            } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    public void prepareAttributes() throws TransformerConfigurationException {

        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

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

    public void prepareAttributes() throws TransformerConfigurationException {
    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 TransformerConfigurationException {

    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");
                        codepoint = 256; // for error recovery
                        break;
                    case 1:
                        codepoint = s.charAt(0);
                        break;
                    case 2:
                        if (XMLChar.isHighSurrogate(s.charAt(0)) &&
                                XMLChar.isLowSurrogate(s.charAt(1))) {
                            codepoint = XMLChar.supplemental(s.charAt(0), s.charAt(1));
                        } else {
                            compileError("character attribute must be a single XML character");
                            codepoint = 256; // for error recovery
                        }
                        break;
                    default:
                        compileError("character attribute must be a single XML character");
                        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 TransformerConfigurationException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here

        return ((XSLStylesheet)getDocumentElement()).getMinImportPrecedence();
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.MODE) {
            modeAtt = atts.getValue(a).trim();
      } else if (f==StandardNames.NAME) {
            nameAtt = atts.getValue(a).trim();
      } else if (f==StandardNames.MATCH) {
            matchAtt = atts.getValue(a);
      } else if (f==StandardNames.PRIORITY) {
            priorityAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.AS) {
            asAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
        try {
View Full Code Here

    }


    public void prepareAttributes() throws TransformerConfigurationException {

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

        // Avoid reporting errors twice
        if (href!=null || moduleURI!=null) {
            return;
        }

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.HREF) {
            href = atts.getValue(a).trim();
          } else if (f==StandardNames.NAMESPACE) {
            moduleURI = atts.getValue(a).trim();
            } else {
            checkUnknownAttribute(nc);
                moduleURI="";   // for error recovery path
          }
        }
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 = atts.getValue(a).trim();
          } else if (f==StandardNames.IMPLEMENTS_PREFIX) {
            implementsAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.SRC) {
            srcAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.ARCHIVE) {
            archiveAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (implementsAtt==null) {
View Full Code Here

TOP

Related Classes of net.sf.saxon.tree.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.