You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2002/06/19 17:33:33 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output StreamXMLOutput.java
tmiller 2002/06/19 08:33:32
Modified: java/src/org/apache/xalan/xsltc/runtime/output
StreamXMLOutput.java
Log:
fixed unescaped quote in attribute, namespace110 unit test
Revision Changes Path
1.15 +8 -8 xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output/StreamXMLOutput.java
Index: StreamXMLOutput.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output/StreamXMLOutput.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- StreamXMLOutput.java 18 Jun 2002 22:29:27 -0000 1.14
+++ StreamXMLOutput.java 19 Jun 2002 15:33:32 -0000 1.15
@@ -92,7 +92,7 @@
super(writer, encoding);
initCDATA();
initNamespaces();
-// System.out.println("StreamXMLOutput.<init>");
+//System.out.println("StreamXMLOutput.<init>");
}
public StreamXMLOutput(OutputStream out, String encoding)
@@ -101,11 +101,11 @@
super(out, encoding);
initCDATA();
initNamespaces();
-// System.out.println("StreamXMLOutput.<init>");
+//System.out.println("StreamXMLOutput.<init>");
}
public void startDocument() throws TransletException {
-// System.out.println("startDocument");
+//System.out.println("startDocument");
if (!_omitHeader) {
final StringBuffer header = new StringBuffer("<?xml version=\"");
header.append(_version).append("\" encoding=\"").append(_encoding);
@@ -280,19 +280,19 @@
throws TransletException
{
// System.out.println("namespace prefix = " + prefix + " uri = " + uri);
-
+ String escaped = escapeString(uri);
if (_startTagOpen) {
- if (pushNamespace(prefix, uri)) {
+ if (pushNamespace(prefix, escaped)) {
_buffer.append(' ').append(XMLNS_PREFIX);
if (prefix != null && prefix != EMPTYSTRING) {
_buffer.append(':').append(prefix);
}
- _buffer.append("=\"").append(uri).append('"');
+ _buffer.append("=\"").append(escaped).append('"');
}
}
else if (prefix != EMPTYSTRING || uri != EMPTYSTRING) {
BasisLibrary.runTimeError(BasisLibrary.STRAY_NAMESPACE_ERR,
- prefix, uri);
+ prefix, escaped);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org