morten 01/10/31 05:12:14
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Log:
Enabled character escaping by default for HTML output. We are now able to
generate the XSLT and XPath specs without any errors at all.
PR: bugzilla 3065
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.41 +5 -2
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java
Index: TextOutput.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- TextOutput.java 2001/10/30 14:57:54 1.40
+++ TextOutput.java 2001/10/31 13:12:13 1.41
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: TextOutput.java,v 1.40 2001/10/30 14:57:54 morten Exp $
+ * @(#)$Id: TextOutput.java,v 1.41 2001/10/31 13:12:13 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -923,7 +923,10 @@
public void setType(int type) {
try {
_outputType = type;
- if (_encoding == null) _encoding = "UTF-8";
+ if ((_outputType == HTML) || (_outputType == XML))
+ _escapeChars = true;
+ if (_encoding == null)
+ _encoding = "UTF-8";
if (_saxHandler instanceof DefaultSAXOutputHandler)
((DefaultSAXOutputHandler)_saxHandler).setOutputType(type);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]