Package net.sf.saxon.om

Examples of net.sf.saxon.om.AttributeCollection


    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 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

        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

    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

                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 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();
    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

        return true;
    }

    public QName getAttributeName(int i) {
        try {
            AttributeCollection atts = provider.getAttributes();
            return new QName(atts.getURI(i), atts.getLocalName(i), atts.getPrefix(i));
        } catch (XPathException e) {
            pendingException = e;
            return new QName("http://saxon.sf.net/error", "error", "");
        }
    }
View Full Code Here

        }
    }

    public String getAttributeType(int i) {
        try {
            AttributeCollection ac = provider.getAttributes();
            if (ac.isId(i)) {
                return "ID";
            } else if (ac.isIdref(i)) {
                return "IDREFS";
            } else {
                return "CDATA";
            }
        } catch (XPathException e) {
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.