cziegeler 2003/01/10 06:18:55 Modified: src/java/org/apache/cocoon/xml XMLUtils.java Log: Adding support for newer XMLizable Revision Changes Path 1.11 +20 -1 xml-cocoon2/src/java/org/apache/cocoon/xml/XMLUtils.java Index: XMLUtils.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/xml/XMLUtils.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- XMLUtils.java 23 Oct 2002 04:17:56 -0000 1.10 +++ XMLUtils.java 10 Jan 2003 14:18:55 -0000 1.11 @@ -287,6 +287,21 @@ } /** + * Implementation of <xsp:expr> for <code>XMLizable</code> : + * outputs the value by calling <code>v.toSax(contentHandler)</code>. + * + * @param contentHandler the SAX content handler + * @param v the XML fragment + */ + public static void valueOf(ContentHandler contentHandler, + org.apache.avalon.excalibur.xml.XMLizable v) + throws SAXException { + if (v != null) { + v.toSAX(contentHandler); + } + } + + /** * Implementation of <xsp:expr> for <code>org.w3c.dom.Node</code> : * converts the Node to a SAX event stream. * @@ -356,6 +371,10 @@ if (v instanceof XMLizable) { valueOf(contentHandler, (XMLizable)v); return; + } + + if (v instanceof org.apache.avalon.excalibur.xml.XMLizable) { + valueOf(contentHandler, (org.apache.avalon.excalibur.xml.XMLizable)v); } // Node
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]