Package org.apache.xalan.templates

Examples of org.apache.xalan.templates.ElemAttributeSet


  public void startElement(
          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
            throws org.xml.sax.SAXException
  {

    ElemAttributeSet eat = new ElemAttributeSet();

    eat.setLocaterInfo(handler.getLocator());
    try
    {
      eat.setPrefixes(handler.getNamespaceSupport());
    }
    catch(TransformerException te)
    {
      throw new org.xml.sax.SAXException(te);
    }

    eat.setDOMBackPointer(handler.getOriginatingNode());
    setPropertiesFromAttributes(handler, rawName, attributes, eat);
    handler.getStylesheet().setAttributeSet(eat);

    // handler.pushElemTemplateElement(eat);
    ElemTemplateElement parent = handler.getElemTemplateElement();
View Full Code Here


  public void startElement(
          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
            throws org.xml.sax.SAXException
  {

    ElemAttributeSet eat = new ElemAttributeSet();

    eat.setLocaterInfo(handler.getLocator());
    try
    {
      eat.setPrefixes(handler.getNamespaceSupport());
    }
    catch(TransformerException te)
    {
      throw new org.xml.sax.SAXException(te);
    }

    eat.setDOMBackPointer(handler.getOriginatingNode());
    setPropertiesFromAttributes(handler, rawName, attributes, eat);
    handler.getStylesheet().setAttributeSet(eat);

    // handler.pushElemTemplateElement(eat);
    ElemTemplateElement parent = handler.getElemTemplateElement();
View Full Code Here

  public void startElement(
          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
            throws org.xml.sax.SAXException
  {

    ElemAttributeSet eat = new ElemAttributeSet();

    eat.setLocaterInfo(handler.getLocator());
    try
    {
      eat.setPrefixes(handler.getNamespaceSupport());
    }
    catch(TransformerException te)
    {
      throw new org.xml.sax.SAXException(te);
    }

    eat.setDOMBackPointer(handler.getOriginatingNode());
    setPropertiesFromAttributes(handler, rawName, attributes, eat);
    handler.getStylesheet().setAttributeSet(eat);

    // handler.pushElemTemplateElement(eat);
    ElemTemplateElement parent = handler.getElemTemplateElement();
View Full Code Here

  public void startElement(
          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
            throws org.xml.sax.SAXException
  {

    ElemAttributeSet eat = new ElemAttributeSet();

    eat.setLocaterInfo(handler.getLocator());
    try
    {
      eat.setPrefixes(handler.getNamespaceSupport());
    }
    catch(TransformerException te)
    {
      throw new org.xml.sax.SAXException(te);
    }

    eat.setDOMBackPointer(handler.getOriginatingNode());
    setPropertiesFromAttributes(handler, rawName, attributes, eat);
    handler.getStylesheet().setAttributeSet(eat);

    // handler.pushElemTemplateElement(eat);
    ElemTemplateElement parent = handler.getElemTemplateElement();
View Full Code Here

            org.apache.xml.utils.QName qname = attributeSetsNames[i];
            Vector attrSets = stylesheet.getAttributeSetComposed(qname);
            int nSets = attrSets.size();
            for(int k = 0; k < nSets; k++)
            {
                ElemAttributeSet attrSet =
                    (ElemAttributeSet)attrSets.elementAt(k);
                // expand ElemAttributeSet.execute(transformer, sourceNode, mode);
                if(attrSetStack.contains(attrSet))
                {
                    // TODO: ***** WHAT'S THE RIGHT WAY TO REPORT THIS ERROR?
                    String errmsg="TEMPLATE COMPILATION ERROR: ATTRIBUTE SET RECURSION SUPPRESSED in "+attrSet.getName().getLocalPart();
                    /**/System.err.println(errmsg);
                    /**/body.append("// ***** "+errmsg+" *****/\n");
                    /**/return;
                    //throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{attrSet.getName().getLocalPart()})); //"xsl:attribute-set '"+m_qname.m_localpart+
                }
                attrSetStack.push(attrSet);

                // Recurse, since attrsets can reference attrsets
                compileUseAttrSet(attrSet,body,interpretVector);
                       
                ElemAttribute attr = (ElemAttribute)attrSet.getFirstChild();
                while(null != attr)
                {
                    compileElemTemplateElement(attr,body,interpretVector);
                    attr = (ElemAttribute)attr.getNextSibling();
                }
View Full Code Here

  public void startElement(
          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
            throws org.xml.sax.SAXException
  {

    ElemAttributeSet eat = new ElemAttributeSet();

    eat.setLocaterInfo(handler.getLocator());
    try
    {
      eat.setPrefixes(handler.getNamespaceSupport());
    }
    catch(TransformerException te)
    {
      throw new org.xml.sax.SAXException(te);
    }

    eat.setDOMBackPointer(handler.getOriginatingNode());
    setPropertiesFromAttributes(handler, rawName, attributes, eat);
    handler.getStylesheet().setAttributeSet(eat);

    // handler.pushElemTemplateElement(eat);
    ElemTemplateElement parent = handler.getElemTemplateElement();
View Full Code Here

            org.apache.xml.utils.QName qname = attributeSetsNames[i];
            Vector attrSets = stylesheet.getAttributeSetComposed(qname);
            int nSets = attrSets.size();
            for(int k = 0; k < nSets; k++)
            {
                ElemAttributeSet attrSet =
                    (ElemAttributeSet)attrSets.elementAt(k);
                // expand ElemAttributeSet.execute(transformer, sourceNode, mode);
                if(attrSetStack.contains(attrSet))
                {
                    // TODO: ***** WHAT'S THE RIGHT WAY TO REPORT THIS ERROR?
                    String errmsg="TEMPLATE COMPILATION ERROR: ATTRIBUTE SET RECURSION SUPPRESSED in "+attrSet.getName().getLocalPart();
                    /**/System.err.println(errmsg);
                    /**/body.append("// ***** "+errmsg+" *****/\n");
                    /**/return;
                    //throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{attrSet.getName().getLocalPart()})); //"xsl:attribute-set '"+m_qname.m_localpart+
                }
                attrSetStack.push(attrSet);

                // Recurse, since attrsets can reference attrsets
                compileUseAttrSet(attrSet,body,interpretVector);
                       
                ElemAttribute attr = (ElemAttribute)attrSet.getFirstChild();
                while(null != attr)
                {
                    compileElemTemplateElement(attr,body,interpretVector);
                    attr = (ElemAttribute)attr.getNextSibling();
                }
View Full Code Here

TOP

Related Classes of org.apache.xalan.templates.ElemAttributeSet

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.