Package net.sf.saxon.om

Examples of net.sf.saxon.om.AttributeCollection


        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.equals(StandardNames.SELECT)) {
            selectAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_BY)) {
            groupByAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_ADJACENT)) {
            groupAdjacentAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_STARTING_WITH)) {
            startingAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_ENDING_WITH)) {
            endingAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.COLLATION)) {
            collationAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    }


    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.NAME) {
            nameAttribute = Whitespace.trim(atts.getValue(a));
          } 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.equals(StandardNames.HREF)) {
            href = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.NAMESPACE)) {
            moduleURI = Whitespace.trim(atts.getValue(a));
            } else {
            checkUnknownAttribute(nc);
                moduleURI="";   // for error recovery path
          }
        }
View Full Code Here

    public void prepareAttributes() throws XPathException {

        getVariableQName();

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
        String nameAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      String localName = atts.getLocalName(a);
      if (localName.equals("name")) {
            nameAtt = Whitespace.trim(atts.getValue(a));
          } else if (localName.equals("select")) {
            selectAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(atts.getNameCode(a));
          }
        }

        if (nameAtt==null) {
            reportAbsence("name");
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==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

        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==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 = Whitespace.trim(atts.getValue(a));
          } 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 = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.GROUPING_SIZE) {
            gsizeAtt = Whitespace.trim(atts.getValue(a));
          } 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 XPathException {

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

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.