Package net.sf.saxon.om

Examples of net.sf.saxon.om.AttributeCollection


                NamespaceDeclarations decl = in.getNamespaceDeclarations();
                for (int i=0; i<decl.getNumberOfNamespaces(); i++) {
                    out.namespace(decl.getNamespaceCode(i), 0);
                }

                AttributeCollection atts = in.getAttributes();
                for (int i=0; i<atts.getLength(); i++) {
                    out.attribute(atts.getNameCode(i), atts.getTypeAnnotation(i),
                            atts.getValue(i), 0, atts.getProperties(i));
                }

                out.startContent();
                break;
View Full Code Here


        return false;
    }

    public void prepareAttributes() throws XPathException {

    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

        return true;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
        String orderAtt = null;
        String dataTypeAtt = null;
        String caseOrderAtt = null;
        String langAtt = null;
        String collationAtt = null;
        String stableAtt = 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.ORDER) {
            orderAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.DATA_TYPE) {
            dataTypeAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.CASE_ORDER) {
            caseOrderAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.LANG) {
            langAtt = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.COLLATION) {
            collationAtt = Whitespace.trim(atts.getValue(a));
            } else if (f==StandardNames.STABLE) {
            stableAtt = Whitespace.trim(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

        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

        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

    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

        return true;
    }

    public void prepareAttributes() throws XPathException {

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

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.USE_ATTRIBUTE_SETS)) {
            use = atts.getValue(a);
            } else if (f.equals(StandardNames.COPY_NAMESPACES)) {
                copyNamespacesAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.TYPE)) {
                typeAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.VALIDATION)) {
                validationAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.INHERIT_NAMESPACES)) {
                inheritAtt = 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;

    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 {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

        if (prepared) {
            return;
        }
        prepared = true;

    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.NAME)) {
            name = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.DECIMAL_SEPARATOR)) {
            decimalSeparator = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUPING_SEPARATOR)) {
            groupingSeparator = atts.getValue(a);
          } else if (f.equals(StandardNames.INFINITY)) {
            infinity = atts.getValue(a);
          } else if (f.equals(StandardNames.MINUS_SIGN)) {
            minusSign = atts.getValue(a);
          } else if (f.equals(StandardNames.NAN)) {
            NaN = atts.getValue(a);
          } else if (f.equals(StandardNames.PERCENT)) {
            percent = atts.getValue(a);
          } else if (f.equals(StandardNames.PER_MILLE)) {
            perMille = atts.getValue(a);
          } else if (f.equals(StandardNames.ZERO_DIGIT)) {
            zeroDigit = atts.getValue(a);
          } else if (f.equals(StandardNames.DIGIT)) {
            digit = atts.getValue(a);
          } else if (f.equals(StandardNames.PATTERN_SEPARATOR)) {
            patternSeparator = 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.