You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/09/06 12:39:33 UTC
[DO NOT REPLY: Bug 3455] New:
getFeaturesRecognized reports unavailable features
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3455
*** shadow/3455 Thu Sep 6 03:39:33 2001
--- shadow/3455.tmp.20987 Thu Sep 6 03:39:33 2001
***************
*** 0 ****
--- 1,38 ----
+ +============================================================================+
+ | getFeaturesRecognized reports unavailable features |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3455 Product: Xerces-J |
+ | Status: NEW Version: 1.4.3 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Windows NT/2K |
+ | Priority: Other Component: Core |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: hahn@is24.de |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Some of the features reported by XMLParser.getFeaturesRecognized() are not
+ available. When trying to query the actual state of these features, one will
+ get a exception.
+
+ Features:
+ http://apache.org/xml/features/validation/schema-full-checking
+ http://apache.org/xml/features/validation/default-attribute-values
+ http://apache.org/xml/features/validation/validate-content-models
+ http://apache.org/xml/features/validation/validate-datatypes
+
+ Testcase:
+ insert this code snippet into e.g. DomCounter.java
+ -------------------------------------------------------
+ String[] availFeatures=parser.getFeaturesRecognized();
+ for( int i = 0; i < availFeatures.length ; ++i ){
+ System.out.print( availFeatures[i] );
+ try{
+ System.out.println( " is set to " + parser.getFeature( availFeatures[i] ));
+ }catch( Exception e ){
+ System.out.println( " is not available!");
+ }
+ }
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org