minchau 2004/09/01 11:13:26
Modified: java/src/org/apache/xml/serializer ToXMLStream.java
Log:
Submitted by: Brian Minchau
Javadoc changes, and added a call in ToXMLStream.processingInstruction()
method to effectively consider that a startDocument() call was made,
if none was yet seen.
Revision Changes Path
1.14 +16 -5
xml-xalan/java/src/org/apache/xml/serializer/ToXMLStream.java
Index: ToXMLStream.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToXMLStream.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ToXMLStream.java 18 Feb 2004 22:57:44 -0000 1.13
+++ ToXMLStream.java 1 Sep 2004 18:13:26 -0000 1.14
@@ -30,8 +30,14 @@
import org.xml.sax.SAXException;
/**
- * @author Santiago Pericas-Geertsen
- * @author G. Todd Miller
+ * This class converts SAX or SAX-like calls to a
+ * serialized xml document. The xsl:output method is "xml".
+ *
+ * This class is used explicitly in code generated by XSLTC,
+ * so it is "public", but it should
+ * be viewed as internal or package private, this is not an API.
+ *
+ * @xsl.usage internal
*/
public class ToXMLStream extends ToStream
{
@@ -258,6 +264,8 @@
closeStartTag();
m_elemContext.m_startTagOpen = false;
}
+ else if (m_needToCallStartDocument)
+ startDocumentInternal();
if (shouldIndent())
indent();
@@ -469,8 +477,11 @@
}
/**
- * From XSLTC
- * Related to startPrefixMapping ???
+ * This method is used to notify the serializer of a namespace mapping
(or node)
+ * that applies to the current element whose startElement() call has
already been seen.
+ * The official SAX startPrefixMapping(prefix,uri) is to define a
mapping for a child
+ * element that is soon to be seen with a startElement() call. The
official SAX call
+ * does not apply to the current element, hence the reason for this
method.
*/
public void namespaceAfterStartElement(
final String prefix,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]