elem = new ElemExtensionCall(); elem = new ElemExtensionCall();
XSLMessages.createMessage( XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING, new Object[] {getRawName()})); if (hasFallbackChildren()) executeFallbacks(transformer); XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()})); transformer.getErrorListener().fatalError(te); nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
/** * Return the value of the attribute interpreted as an Attribute * Value Template (in other words, you can use curly expressions * such as href="http://{website}". * * @param rawName Raw name of the attribute to get * @param sourceNode non-null reference to the <a href="http://www.w3.org/TR/xslt#dt-current-node">current source node</a>. * @param transformer non-null reference to the the current transform-time state. * * @return the value of the attribute * * @throws TransformerException */ public String getAttribute( String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer) throws TransformerException { AVT avt = getLiteralResultAttribute(rawName); if ((null != avt) && avt.getRawName().equals(rawName)) { XPathContext xctxt = transformer.getXPathContext(); return avt.evaluate(xctxt, xctxt.getDTMHandleFromNode(sourceNode), this); } return null; }
if (hasFallbackChildren()) executeFallbacks(transformer); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
/** * Return the value of the attribute interpreted as an Attribute * Value Template (in other words, you can use curly expressions * such as href="http://{website}". * * @param rawName Raw name of the attribute to get * @param sourceNode non-null reference to the <a href="http://www.w3.org/TR/xslt#dt-current-node">current source node</a>. * @param transformer non-null reference to the the current transform-time state. * * @return the value of the attribute * * @throws TransformerException */ public String getAttribute( String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer) throws TransformerException { AVT avt = getLiteralResultAttribute(rawName); if ((null != avt) && avt.getRawName().equals(rawName)) { XPathContext xctxt = transformer.getXPathContext(); return avt.evaluate(xctxt, xctxt.getDTMHandleFromNode(sourceNode), this); } return null; }
if (hasFallbackChildren()) executeFallbacks(transformer); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
XSLMessages.createMessage( XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING, new Object[] {getRawName()})); if (hasFallbackChildren()) executeFallbacks(transformer); XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()})); transformer.getErrorListener().fatalError(te); nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
/** * Support OGNL based bean value injection via an XSLT extension element. * <p/> * The <a href="http://www.ognl.org/">OGNL</a> expression is expected to be specified in * the "ognl" attribute. * <p/> * See <a href="#usage">Usage</a>. * * @param context Processor context. * @param element Extension element instance. * @return The bean value, or null if the bean is unknown. * @throws OgnlException Extension element syntax is incorrectly formed, or the * <a href="http://www.ognl.org/">OGNL</a> expression is unspecified or its * syntax is incorrectly formed. */ public Object select(XSLProcessorContext context, ElemExtensionCall element) throws OgnlException { AVT ognlAVT = element.getLiteralResultAttribute("ognl"); if (ognlAVT == null) { throw new OgnlException("'ognl' expression attribute not specified."); } return select(ognlAVT.getSimpleString()); }
elem = new ElemExtensionCall(); elem = new ElemExtensionCall();
XSLMessages.createMessage( XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING, new Object[] {getRawName()})); if (hasFallbackChildren()) executeFallbacks(transformer); XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()})); transformer.getErrorListener().fatalError(te); nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
/** * Support OGNL based bean value injection via an XSLT extension element. * <p/> * The <a href="http://www.ognl.org/">OGNL</a> expression is expected to be specified in * the "ognl" attribute. * <p/> * See <a href="#usage">Usage</a>. * * @param context Processor context. * @param element Extension element instance. * @return The bean value, or null if the bean is unknown. * @throws OgnlException Extension element syntax is incorrectly formed, or the * <a href="http://www.ognl.org/">OGNL</a> expression is unspecified or its * syntax is incorrectly formed. */ public Object select(XSLProcessorContext context, ElemExtensionCall element) throws OgnlException { AVT ognlAVT = element.getLiteralResultAttribute("ognl"); if (ognlAVT == null) { throw new OgnlException("'ognl' expression attribute not specified."); } return select(ognlAVT.getSimpleString()); }
elem = new ElemExtensionCall(); elem = new ElemExtensionCall();
XSLMessages.createMessage( XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING, new Object[] {getRawName()})); if (hasFallbackChildren()) executeFallbacks(transformer); XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()})); transformer.getErrorListener().fatalError(te); nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this); if (hasFallbackChildren()) executeFallbacks(transformer); else
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_extns = this.getNamespace(); m_decl = getElemExtensionDecl(sroot, m_extns); // Register the extension namespace if the extension does not have // an ElemExtensionDecl ("component"). if (m_decl == null) sroot.getExtensionNamespacesManager().registerExtension(m_extns); }
/** * Return the value of the attribute interpreted as an Attribute * Value Template (in other words, you can use curly expressions * such as href="http://{website}". * * @param rawName Raw name of the attribute to get * @param sourceNode non-null reference to the <a href="http://www.w3.org/TR/xslt#dt-current-node">current source node</a>. * @param transformer non-null reference to the the current transform-time state. * * @return the value of the attribute * * @throws TransformerException */ public String getAttribute( String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer) throws TransformerException { AVT avt = getLiteralResultAttribute(rawName); if ((null != avt) && avt.getRawName().equals(rawName)) { XPathContext xctxt = transformer.getXPathContext(); return avt.evaluate(xctxt, xctxt.getDTMHandleFromNode(sourceNode), this); } return null; }