sboag 00/12/31 01:37:39
Modified: java/src/org/apache/xalan/serialize FormatterToXML.java
Log:
Added debug variable, and some debugging code.
Revision Changes Path
1.13 +16 -0
xml-xalan/java/src/org/apache/xalan/serialize/FormatterToXML.java
Index: FormatterToXML.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/FormatterToXML.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- FormatterToXML.java 2000/12/20 05:04:17 1.12
+++ FormatterToXML.java 2000/12/31 09:37:39 1.13
@@ -310,6 +310,9 @@
/** The xsl:output properties. */
protected Properties m_format;
+
+ /** Indicate whether running in Debug mode */
+ private static final boolean DEBUG = false;
/**
* Default constructor.
@@ -770,6 +773,19 @@
String namespaceURI, String localName, String name, Attributes
atts)
throws org.xml.sax.SAXException
{
+ if(DEBUG)
+ {
+ System.out.println("FormatterToXML - startElement: "+namespaceURI+",
"+localName);
+ int n = atts.getLength();
+ for (int i = 0; i < n; i++)
+ {
+ System.out.println("atts["+i+"]: "+atts.getQName(i)+" =
"+atts.getValue(i));
+ }
+ if(null == namespaceURI)
+ {
+ (new RuntimeException(localName+" has a null
namespace!")).printStackTrace();
+ }
+ }
if (m_inEntityRef)
return;