Package net.sf.saxon.tree

Examples of net.sf.saxon.tree.AttributeCollection


        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

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


        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

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

        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

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

     public void prepareAttributes() throws TransformerConfigurationException {
    String selectAtt = null;
    String regexAtt = null;
    String flagsAtt = 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.REGEX) {
            regexAtt = atts.getValue(a);
      } else if (f==StandardNames.SELECT) {
            selectAtt = atts.getValue(a);
      } else if (f==StandardNames.FLAGS) {
            flagsAtt = atts.getValue(a).trim();
          } 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);
          }
        }
View Full Code Here

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

        references.add(ref);
    }

    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) {
        nameAtt = atts.getValue(a).trim();
        if (nameAtt.indexOf(':')<0) {
          compileError("Function name must have a namespace prefix");
        }
        try {
            setObjectNameCode(makeNameCode(nameAtt.trim()));
                //functionFingerprint = functionNameCode & 0xfffff;
            } catch (NamespaceException err) {
                compileError(err.getMessage());
            } catch (XPathException err) {
                    compileError(err);
                }
          } else if (f==StandardNames.AS) {
            asAtt = atts.getValue(a);
            } else if (f==StandardNames.OVERRIDE) {
                overrideAtt = atts.getValue(a).trim();
                if (overrideAtt.equals("yes")) {
                    override = true;
                } else if (overrideAtt.equals("no")) {
                    override = false;
                } else {
                    compileError("override must be 'yes' or 'no'");
                }
            } else if (f==StandardNames.SAXON_MEMO_FUNCTION) {
                String memoAtt = atts.getValue(a).trim();
                if (memoAtt.equals("yes")) {
                    memoFunction = true;
                } else if (memoAtt.equals("no")) {
                    memoFunction = false;
                } else {
View Full Code Here

    public void prepareAttributes() throws TransformerConfigurationException {

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

    private HashMap userAttributes = null;

    //Emitter handler = null;

    public void prepareAttributes() throws TransformerConfigurationException {
    AttributeCollection atts = getAttributeList();
    String nameAtt = 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.METHOD) {
            method = atts.getValue(a).trim();
          } else if (f==StandardNames.VERSION) {
            version = atts.getValue(a).trim();
          } else if (f==StandardNames.ENCODING) {
            encoding = atts.getValue(a).trim();
          } else if (f==StandardNames.OMIT_XML_DECLARATION) {
            omitDeclaration = atts.getValue(a).trim();
          } else if (f==StandardNames.STANDALONE) {
            standalone = atts.getValue(a).trim();
          } else if (f==StandardNames.DOCTYPE_PUBLIC) {
            doctypePublic = atts.getValue(a).trim();
          } else if (f==StandardNames.DOCTYPE_SYSTEM) {
            doctypeSystem = atts.getValue(a).trim();
          } else if (f==StandardNames.CDATA_SECTION_ELEMENTS) {
            cdataElements = atts.getValue(a);
          } else if (f==StandardNames.INDENT) {
            indent = atts.getValue(a).trim();
          } else if (f==StandardNames.MEDIA_TYPE) {
            mediaType = atts.getValue(a).trim();
          } else if (f==StandardNames.INCLUDE_CONTENT_TYPE) {
            includeContentType = atts.getValue(a).trim();
          } else if (f==StandardNames.ESCAPE_URI_ATTRIBUTES) {
            escapeURIAttributes = atts.getValue(a).trim();
            } else if (f==StandardNames.USE_CHARACTER_MAPS) {
            useCharacterMaps = atts.getValue(a);
            } else if (f==StandardNames.UNDECLARE_NAMESPACES) {
            undeclareNamespaces = atts.getValue(a);
            } else if (f==StandardNames.SAXON_CHARACTER_REPRESENTATION) {
            representation = atts.getValue(a).trim();
          } else if (f==StandardNames.SAXON_INDENT_SPACES) {
            indentSpaces = atts.getValue(a).trim();
          } else if (f==StandardNames.SAXON_NEXT_IN_CHAIN) {
            nextInChain = atts.getValue(a).trim();
            } else if (f==StandardNames.SAXON_BYTE_ORDER_MARK) {
                byteOrderMark = atts.getValue(a).trim();
            } else if (f==StandardNames.SAXON_REQUIRE_WELL_FORMED) {
                requireWellFormed = atts.getValue(a).trim();
          } else {
              String attributeURI = getNamePool().getURI(nc);
              if ("".equals(attributeURI) ||
                      NamespaceConstant.XSLT.equals(attributeURI) ||
                      NamespaceConstant.SAXON.equals(attributeURI)) {
                checkUnknownAttribute(nc);
            } else {
                String name = '{' + attributeURI + '}' + atts.getLocalName(a);
                if (userAttributes==null) {
                    userAttributes = new HashMap(5);
                }
                userAttributes.put(name, atts.getValue(a));
            }
          }
        }
        if (nameAtt!=null) {
            try {
View Full Code Here

        return true;
    }

    public void prepareAttributes() throws TransformerConfigurationException {

    AttributeCollection atts = getAttributeList();

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