ElemAttributeSet eat = new ElemAttributeSet(); eat.setLocaterInfo(handler.getLocator()); try eat.setPrefixes(handler.getNamespaceSupport()); eat.setDOMBackPointer(handler.getOriginatingNode()); setPropertiesFromAttributes(handler, rawName, attributes, eat); handler.getStylesheet().setAttributeSet(eat);
(ElemAttributeSet) attrSets.get(k); attrSet.execute(transformer);
/** * Recompose the attribute-set declarations. * * @param attrSet An attribute-set to add to the hashtable of attribute sets. */ void recomposeAttributeSets(ElemAttributeSet attrSet) { ArrayList attrSetList = (ArrayList) m_attrSets.get(attrSet.getName()); if (null == attrSetList) { attrSetList = new ArrayList(); m_attrSets.put(attrSet.getName(), attrSetList); } attrSetList.add(attrSet); }
/** * Add a child to the child list. * <!ELEMENT xsl:attribute-set (xsl:attribute)*> * <!ATTLIST xsl:attribute-set * name %qname; #REQUIRED * use-attribute-sets %qnames; #IMPLIED * > * * @param newChild Child to be added to this node's list of children * * @return The child that was just added to the list of children * * @throws DOMException */ public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
/** * Apply a set of attributes to the element. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { if (transformer.isRecursiveAttrSet(this)) { throw new TransformerException( XSLMessages.createMessage( XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{ m_qname.getLocalPart() })); //"xsl:attribute-set '"+m_qname.m_localpart+ } transformer.pushElemAttributeSet(this); super.execute(transformer); ElemAttribute attr = (ElemAttribute) getFirstChildElem(); while (null != attr) { attr.execute(transformer); attr = (ElemAttribute) attr.getNextSiblingElem(); } transformer.popElemAttributeSet(); }
if (visitor.visitTopLevelInstruction(attrSet)) attrSet.callChildVisitors(visitor);
/** * Add a child to the child list. * <!ELEMENT xsl:attribute-set (xsl:attribute)*> * <!ATTLIST xsl:attribute-set * name %qname; #REQUIRED * use-attribute-sets %qnames; #IMPLIED * > * * @param newChild Child to be added to this node's list of children * * @return The child that was just added to the list of children * * @throws DOMException */ public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
ElemAttributeSet eat = new ElemAttributeSet();
/** * Add a child to the child list. * <!ELEMENT xsl:attribute-set (xsl:attribute)*> * <!ATTLIST xsl:attribute-set * name %qname; #REQUIRED * use-attribute-sets %qnames; #IMPLIED * > * * @param newChild Child to be added to this node's list of children * * @return The child that was just added to the list of children * * @throws DOMException */ public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
super.execute(transformer); ElemAttribute attr = (ElemAttribute) getFirstChildElem();
if (visitor.visitTopLevelInstruction(attrSet)) attrSet.callChildVisitors(visitor);
/** * Add a child to the child list. * <!ELEMENT xsl:attribute-set (xsl:attribute)*> * <!ATTLIST xsl:attribute-set * name %qname; #REQUIRED * use-attribute-sets %qnames; #IMPLIED * > * * @param newChild Child to be added to this node's list of children * * @return The child that was just added to the list of children * * @throws DOMException */ public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
ElemAttributeSet eat = new ElemAttributeSet();
ElemAttributeSet eat = new ElemAttributeSet(); eat.setLocaterInfo(handler.getLocator()); try eat.setPrefixes(handler.getNamespaceSupport()); eat.setDOMBackPointer(handler.getOriginatingNode()); setPropertiesFromAttributes(handler, rawName, attributes, eat); handler.getStylesheet().setAttributeSet(eat);
/** * Add a child to the child list. * <!ELEMENT xsl:attribute-set (xsl:attribute)*> * <!ATTLIST xsl:attribute-set * name %qname; #REQUIRED * use-attribute-sets %qnames; #IMPLIED * > * * @param newChild Child to be added to this node's list of children * * @return The child that was just added to the list of children * * @throws DOMException */ public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
/** * Recompose the attribute-set declarations. * * @param attrSet An attribute-set to add to the hashtable of attribute sets. */ void recomposeAttributeSets(ElemAttributeSet attrSet) { ArrayList attrSetList = (ArrayList) m_attrSets.get(attrSet.getName()); if (null == attrSetList) { attrSetList = new ArrayList(); m_attrSets.put(attrSet.getName(), attrSetList); } attrSetList.add(attrSet); }
(ElemAttributeSet) attrSets.get(k); attrSet.execute(transformer);
/** * Apply a set of attributes to the element. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { if (transformer.isRecursiveAttrSet(this)) { throw new TransformerException( XSLMessages.createMessage( XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{ m_qname.getLocalPart() })); //"xsl:attribute-set '"+m_qname.m_localpart+ } transformer.pushElemAttributeSet(this); super.execute(transformer); ElemAttribute attr = (ElemAttribute) getFirstChildElem(); while (null != attr) { attr.execute(transformer); attr = (ElemAttribute) attr.getNextSiblingElem(); } transformer.popElemAttributeSet(); }
if (visitor.visitTopLevelInstruction(attrSet)) attrSet.callChildVisitors(visitor);
ElemAttributeSet eat = new ElemAttributeSet(); eat.setLocaterInfo(handler.getLocator()); try eat.setPrefixes(handler.getNamespaceSupport()); eat.setDOMBackPointer(handler.getOriginatingNode()); setPropertiesFromAttributes(handler, rawName, attributes, eat); handler.getStylesheet().setAttributeSet(eat);