/** * 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); }
/** * Return the message manager. * * @return The message manager, never null. */ public MsgMgr getMsgMgr() { if (null == m_msgMgr) m_msgMgr = new MsgMgr(this); return m_msgMgr; }
/** * Warn the user of a problem. * * @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 warn(SourceLocator srcLctr, String msg) throws TransformerException { warn(srcLctr, null, null, msg, null); }
/** * Send a message to diagnostics. * The xsl:message instruction sends a message in a way that * is dependent on the XSLT transformer. The content of the xsl:message * instruction is a template. The xsl:message is instantiated by * instantiating the content to create an XML fragment. This XML * fragment is the content of the message. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { String data = transformer.transformToString(this); transformer.getMsgMgr().message(this, data, m_terminate); if(m_terminate) transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination")); } }
transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE, new Object[]{ Constants.ATTRNAME_NAME, nodeName }); if (null == nodeNamespace || (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) ) transformer.getMsgMgr().error( this, XSLTErrorResources.ER_NULL_URI_NAMESPACE); else else if (null == nodeNamespace) transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{ prefix }); transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{ prefix });
transformer.getMsgMgr().message(this, data, m_terminate);
transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE, new Object[]{ Constants.ATTRNAME_NAME, nodeName }); if (null == nodeNamespace || (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) ) transformer.getMsgMgr().error( this, XSLTErrorResources.ER_NULL_URI_NAMESPACE); else else if (null == nodeNamespace) transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{ prefix }); transformer.getMsgMgr().warn( this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{ prefix });
/** * 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); }
/** * Warn the user of a problem. * * @param msg Message text to issue * @param args Arguments to pass 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 warn(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException { warn(srcLctr, null, null, msg, args); }
/** * Return the message manager. * * @return The message manager, never null. */ public MsgMgr getMsgMgr() { if (null == m_msgMgr) m_msgMgr = new MsgMgr(this); return m_msgMgr; }
/** * Send a message to diagnostics. * The xsl:message instruction sends a message in a way that * is dependent on the XSLT transformer. The content of the xsl:message * instruction is a template. The xsl:message is instantiated by * instantiating the content to create an XML fragment. This XML * fragment is the content of the message. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { String data = transformer.transformToString(this); transformer.getMsgMgr().message(this, data, m_terminate); if(m_terminate) transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination")); } }
/** * 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); }
/** * Warn the user of a problem. * * @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 warn(SourceLocator srcLctr, String msg) throws TransformerException { warn(srcLctr, null, null, msg, null); }
/** * Return the message manager. * * @return The message manager, never null. */ public MsgMgr getMsgMgr() { if (null == m_msgMgr) m_msgMgr = new MsgMgr(this); return m_msgMgr; }
/** * Send a message to diagnostics. * The xsl:message instruction sends a message in a way that * is dependent on the XSLT transformer. The content of the xsl:message * instruction is a template. The xsl:message is instantiated by * instantiating the content to create an XML fragment. This XML * fragment is the content of the message. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { String data = transformer.transformToString(this); transformer.getMsgMgr().message(this, data, m_terminate); if(m_terminate) transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination")); } }
/** * 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); }
/** * Warn the user of a problem. * * @param msg Message text to issue * @param args Arguments to pass 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 warn(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException { warn(srcLctr, null, null, msg, args); }
/** * Return the message manager. * * @return The message manager, never null. */ public MsgMgr getMsgMgr() { if (null == m_msgMgr) m_msgMgr = new MsgMgr(this); return m_msgMgr; }
/** * Send a message to diagnostics. * The xsl:message instruction sends a message in a way that * is dependent on the XSLT transformer. The content of the xsl:message * instruction is a template. The xsl:message is instantiated by * instantiating the content to create an XML fragment. This XML * fragment is the content of the message. * * @param transformer non-null reference to the the current transform-time state. * * @throws TransformerException */ public void execute( TransformerImpl transformer) throws TransformerException { String data = transformer.transformToString(this); transformer.getMsgMgr().message(this, data, m_terminate); if(m_terminate) transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination")); } }
/** * 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); }