/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @param args Arguments to be passed to the message * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException { error(srcLctr, null, null, msg, args); }
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg) throws TransformerException { error(srcLctr, null, null, msg, null); }
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @param e Exception to throw * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException { error(srcLctr, msg, null, e); }
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg) throws TransformerException { error(srcLctr, null, null, msg, null); }
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @param args Arguments to be passed to the message * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException { error(srcLctr, null, null, msg, args); }
/** * Tell the user of an error, and probably throw an * exception. * * @param styleNode Stylesheet node * @param sourceNode Source tree node * @param msg Message text to issue * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) throws TransformerException { error(srcLctr, styleNode, sourceNode, msg, null); }
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @param e Exception to throw * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException { error(srcLctr, msg, null, e); }
/** * Tell the user of an error, and probably throw an * exception. * * @param styleNode Stylesheet node * @param sourceNode Source tree node * @param msg Message text to issue * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) throws TransformerException { error(srcLctr, styleNode, sourceNode, msg, null); }
/** * Execute the xsl:apply-imports transformation. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { if (transformer.currentTemplateRuleIsNull()) { transformer.getMsgMgr().error(this, XSLTErrorResources.ER_NO_APPLY_IMPORT_IN_FOR_EACH); //"xsl:apply-imports not allowed in a xsl:for-each"); } int sourceNode = transformer.getXPathContext().getCurrentNode(); if (DTM.NULL != sourceNode) { // supply the current templated (matched, not named) ElemTemplate matchTemplate = transformer.getMatchedTemplate(); transformer.applyTemplateToNode(this, matchTemplate, sourceNode); } else // if(null == sourceNode) { transformer.getMsgMgr().error(this, XSLTErrorResources.ER_NULL_SOURCENODE_APPLYIMPORTS); //"sourceNode is null in xsl:apply-imports!"); } }
if (null == nodeNamespace || (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) ) transformer.getMsgMgr().error( this, XSLTErrorResources.ER_NULL_URI_NAMESPACE); else
this.m_transformer.getMsgMgr().error (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, new Object[]{((ElemVariable)this.object()).getName().getLocalName()});
transformer.getMsgMgr().error( this, XSLTErrorResources.ER_CHOOSE_REQUIRES_WHEN);
this.m_transformer.getMsgMgr().error (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, new Object[]{((ElemVariable)this.object()).getName().getLocalName()});
if (null == nodeNamespace || (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) ) transformer.getMsgMgr().error( this, XSLTErrorResources.ER_NULL_URI_NAMESPACE); else
context.getTransformer().getMsgMgr().error(elem, elem, context.getContextNode(), XSLTErrorResources.ER_REDIRECT_COULDNT_GET_FILENAME);
transformer.getMsgMgr().error(this, XSLTErrorResources.ER_TEMPLATE_NOT_FOUND, new Object[]{ m_templateName }); //"Could not find template named: '"+templateName+"'");
transformer.getMsgMgr().error(this, XSLTErrorResources.ER_TEMPLATE_NOT_FOUND, new Object[]{ m_templateName }); //"Could not find template named: '"+templateName+"'");
transformer.getMsgMgr().error( this, XSLTErrorResources.ER_CHOOSE_REQUIRES_WHEN);
/** * Tell the user of an error, and probably throw an * exception. * * @param msg Message text to issue * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide * the error condition is severe enough to halt processing. * * @throws TransformerException * @xsl.usage internal */ public void error(SourceLocator srcLctr, String msg) throws TransformerException { error(srcLctr, null, null, msg, null); }