You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2003/10/17 20:14:40 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/processor StylesheetHandler.java
zongaro 2003/10/17 11:14:40
Modified: java/src/org/apache/xalan/processor StylesheetHandler.java
Log:
Patch from Richard Cao (richcao@ca.ibm.com) for Bugzilla bug 15700.
Added additional check to prevent unrecognised elements from the XSLT namespace
(or even recognized elements, other than xsl:stylesheet and xsl:transform)
from appearing as the outermost element in a stylesheet.
Revision Changes Path
1.60 +1 -0 xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java
Index: StylesheetHandler.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- StylesheetHandler.java 30 Jan 2003 18:45:45 -0000 1.59
+++ StylesheetHandler.java 17 Oct 2003 18:14:40 -0000 1.60
@@ -381,6 +381,7 @@
XSLTElementProcessor elemProcessor = def.getProcessorFor(uri, localName);
if (null == elemProcessor
+ && !(currentProcessor instanceof ProcessorStylesheetDoc)
&& ((null == getStylesheet()
|| Double.valueOf(getStylesheet().getVersion()).doubleValue()
> Constants.XSLTVERSUPPORTED)
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org