Package net.sf.saxon.tree

Examples of net.sf.saxon.tree.AttributeCollection


        String nameAtt = null;
        String matchAtt = null;
        String useAtt = 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.NAME) {
            nameAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.USE) {
            useAtt = atts.getValue(a);
          } else if (f==StandardNames.MATCH) {
            matchAtt = atts.getValue(a);
          } else if (f==StandardNames.COLLATION) {
            collationName = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here


        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

        }
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

        String nameAttribute = null;

    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

                                      // but we can cope with any java.util.Comparator
    private boolean isDefault = false;

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

    String nameAtt = null;              // collation name for use in expressions
    String classAtt = null;             // Java class name of Collator
    String strengthAtt = null;          // primary, secondary, tertiary, or identical
    String decompositionAtt = null;     // canonical, full, or none
    String langAtt = null;              // identifies a locale: country+language
    String rulesAtt = null;             // collation rules as used in RuleBasedCollator
    String defaultAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.NAME) {
            nameAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.CLASS) {
                classAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.STRENGTH) {
                strengthAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.DECOMPOSITION) {
                decompositionAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.LANG) {
                langAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.RULES) {
                rulesAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.DEFAULT) {
                defaultAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    protected ItemType getReturnedItemType() {
        return null;
    }

    public void prepareAttributes() throws TransformerConfigurationException {
    AttributeCollection atts = getAttributeList();

        String formatAttribute = null;
        String hrefAttribute = null;
        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==StandardNames.FORMAT) {
            formatAttribute = atts.getValue(a).trim();
          } else if (f==StandardNames.HREF) {
            hrefAttribute = atts.getValue(a).trim();
            } else if (f==StandardNames.VALIDATION) {
                validationAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.TYPE) {
                typeAtt = atts.getValue(a).trim();
            } else if (fans.contains(f) || !(f.startsWith("{}"))) {
                // this is a serialization attribute
                String val = atts.getValue(a).trim();
                Expression exp = makeAttributeValueTemplate(val);
                serializationAttributes.put(new Integer(nc&0xfffff), exp);
          } else {
            checkUnknownAttribute(nc);
          }
View Full Code Here

    public boolean mayContainSequenceConstructor() {
        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {
    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==StandardNames.VALIDATION) {
                validationAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.TYPE) {
                typeAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    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==StandardNames.USE_ATTRIBUTE_SETS) {
            use = atts.getValue(a);
            } else if (f==StandardNames.COPY_NAMESPACES) {
                copyNamespacesAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.TYPE) {
                typeAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.VALIDATION) {
                validationAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.INHERIT_NAMESPACES) {
                inheritAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

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

    public void prepareAttributes() throws TransformerConfigurationException {

        String nameAtt = 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.NAME) {
            nameAtt = atts.getValue(a).trim();
             } else if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (nameAtt==null) {
View Full Code Here

    public void prepareAttributes() throws TransformerConfigurationException {

        getVariableFingerprint();

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
        String assignAtt = null;
        String nameAtt = null;
        String asAtt = null;
        String requiredAtt = null;
        String tunnelAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.NAME) {
            nameAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
          } else if (f==StandardNames.AS && allowsAsAttribute()) {
            asAtt = atts.getValue(a);
          } else if (f==StandardNames.REQUIRED && allowsRequired()) {
            requiredAtt = atts.getValue(a).trim();
            } else if (f==StandardNames.TUNNEL && allowsTunnelAttribute()) {
            tunnelAtt = atts.getValue(a).trim();
          } else if (f==StandardNames.SAXON_ASSIGNABLE && this instanceof XSLVariableDeclaration) {
            assignAtt = atts.getValue(a).trim();
          } else {
            checkUnknownAttribute(nc);
          }
        }
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.