/** * Parses the give piece of text as being markup */ protected void parseText(String text) throws JellyTagException { if ( log.isDebugEnabled() ) { log.debug( "About to parse: " + text ); } try { XMLReader xmlReader = getXMLReader(); xmlReader.setContentHandler(getJellyParser()); xmlReader.parse( new InputSource( new StringReader( text ) ) ); } catch (Exception e) { throw new JellyTagException(e); } }
/** * Parses the give piece of text as being markup */ protected void parseText(String text) throws JellyTagException { if ( log.isDebugEnabled() ) { log.debug( "About to parse: " + text ); } try { XMLReader xmlReader = getXMLReader(); xmlReader.setContentHandler(getJellyParser()); xmlReader.parse( new InputSource( new StringReader( text ) ) ); } catch (Exception e) { throw new JellyTagException(e); } }
/** * Parses the give piece of text as being markup */ protected void parseText(String text) throws JellyTagException { if ( log.isDebugEnabled() ) { log.debug( "About to parse: " + text ); } try { XMLReader xmlReader = getXMLReader(); xmlReader.setContentHandler(getJellyParser()); xmlReader.parse( new InputSource( new StringReader( text ) ) ); } catch (Exception e) { throw new JellyTagException(e); } }
/** * Parses the body of this tag and returns the parsed document */ protected void parseBody(XMLOutput output) throws JellyTagException { ContentHandler handler = getJellyParser(); XMLOutput newOutput = new XMLOutput(handler); try { handler.startDocument(); invokeBody(newOutput); handler.endDocument(); } catch (SAXException e) { throw new JellyTagException(e); } }
/** * Parses the body of this tag and returns the parsed document */ protected void parseBody(XMLOutput output) throws JellyTagException { ContentHandler handler = getJellyParser(); XMLOutput newOutput = new XMLOutput(handler); try { handler.startDocument(); invokeBody(newOutput); handler.endDocument(); } catch (SAXException e) { throw new JellyTagException(e); } }
/** * Parses the body of this tag and returns the parsed document */ protected void parseBody(XMLOutput output) throws JellyTagException { ContentHandler handler = getJellyParser(); XMLOutput newOutput = new XMLOutput(handler); try { handler.startDocument(); invokeBody(newOutput); handler.endDocument(); } catch (SAXException e) { throw new JellyTagException(e); } }
/** * Parses the body of this tag and returns the parsed document */ protected void parseBody(XMLOutput output) throws JellyTagException { ContentHandler handler = getJellyParser(); XMLOutput newOutput = new XMLOutput(handler); try { handler.startDocument(); invokeBody(newOutput); handler.endDocument(); } catch (SAXException e) { throw new JellyTagException(e); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { String text = getText(); if (text != null) { parseText(text); } else { parseBody(output); } Script script = getJellyParser().getScript(); if (var != null) { context.setVariable(var, script); } else { // invoke the script script.run(context, output); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { String text = getText(); if (text != null) { parseText(text); } else { parseBody(output); } Script script = getJellyParser().getScript(); if (var != null) { context.setVariable(var, script); } else { // invoke the script script.run(context, output); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { String text = getText(); if (text != null) { parseText(text); } else { parseBody(output); } Script script = getJellyParser().getScript(); if (var != null) { context.setVariable(var, script); } else { // invoke the script script.run(context, output); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { String text = getText(); if (text != null) { parseText(text); } else { parseBody(output); } Script script = getJellyParser().getScript(); if (var != null) { context.setVariable(var, script); } else { // invoke the script script.run(context, output); } }