luehe 2002/12/10 13:33:36 Modified: jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java jasper2/src/share/org/apache/jasper/resources messages.properties Log: Fixed dynamic attribute bug for XML syntax. Revision Changes Path 1.32 +7 -3 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java Index: JspDocumentParser.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- JspDocumentParser.java 5 Dec 2002 17:56:43 -0000 1.31 +++ JspDocumentParser.java 10 Dec 2002 21:33:35 -0000 1.32 @@ -169,6 +169,10 @@ // Use the default (non-validating) parser SAXParserFactory factory = SAXParserFactory.newInstance(); + factory.setNamespaceAware(true); + // Preserve xmlns attributes + factory.setFeature("http://xml.org/sax/features/namespace-prefixes", + true); // Configure the parser SAXParser saxParser = factory.newSAXParser(); 1.67 +2 -2 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties Index: messages.properties =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties,v retrieving revision 1.66 retrieving revision 1.67 diff -u -r1.66 -r1.67 --- messages.properties 9 Dec 2002 23:27:03 -0000 1.66 +++ messages.properties 10 Dec 2002 21:33:36 -0000 1.67 @@ -289,7 +289,7 @@ jsp.error.unknown_attribute_type=Unknown attribute type ({1}) for attribute {0}. jsp.error.jspelement.missing.name=Mandatory attribute 'name' missing in jsp:element jsp.error.xmlns.redefinition.notimplemented=Internal error: Attempt to redefine xmlns:{0}. Redefinition of namespaces is not implemented. -jsp.error.could.not.add.taglibraries=Could not add tag one or more libraries. +jsp.error.could.not.add.taglibraries=Could not add one or more tag libraries. jsp.error.duplicate.name.jspattribute=The attribute {0} specified in the standard or custom action also appears as the value of the name attribute in the enclosed jsp:attribute jsp.error.not.in.template={0} not allowed in a template text body. jsp.error.badStandardAction=The action is not a recognizable standard action.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>