You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/02/18 22:56:26 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers XIncludeParserConfiguration.java

mrglavas    2005/02/18 13:56:26

  Modified:    java/src/org/apache/xerces/parsers
                        XIncludeParserConfiguration.java
  Log:
  Added support for two new features which control whether base URI fixup or language fixup is performed.
  
  Enable base URI fixup: http://apache.org/xml/features/xinclude/fixup-base-uris (default: true)
  Enable language fixup: http://apache.org/xml/features/xinclude/fixup-language (default: true)
  
  Revision  Changes    Path
  1.8       +13 -1     xml-xerces/java/src/org/apache/xerces/parsers/XIncludeParserConfiguration.java
  
  Index: XIncludeParserConfiguration.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/XIncludeParserConfiguration.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XIncludeParserConfiguration.java	24 Feb 2004 23:15:57 -0000	1.7
  +++ XIncludeParserConfiguration.java	18 Feb 2005 21:56:26 -0000	1.8
  @@ -42,6 +42,14 @@
       /** Feature identifier: allow notation and unparsed entity events to be sent out of order. */
       protected static final String ALLOW_UE_AND_NOTATION_EVENTS =
           Constants.SAX_FEATURE_PREFIX + Constants.ALLOW_DTD_EVENTS_AFTER_ENDDTD_FEATURE;
  +    
  +    /** Feature identifier: fixup base URIs. */
  +    protected static final String XINCLUDE_FIXUP_BASE_URIS =
  +        Constants.XERCES_FEATURE_PREFIX + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE;
  +    
  +    /** Feature identifier: fixup language. */
  +    protected static final String XINCLUDE_FIXUP_LANGUAGE =
  +        Constants.XERCES_FEATURE_PREFIX + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE;
   
       /** Property identifier: error reporter. */
       protected static final String XINCLUDE_HANDLER =
  @@ -98,7 +106,9 @@
           addCommonComponent(fXIncludeHandler);
           
           final String[] recognizedFeatures = {
  -            ALLOW_UE_AND_NOTATION_EVENTS
  +            ALLOW_UE_AND_NOTATION_EVENTS,
  +            XINCLUDE_FIXUP_BASE_URIS,
  +            XINCLUDE_FIXUP_LANGUAGE
           };
           addRecognizedFeatures(recognizedFeatures);
   
  @@ -108,6 +118,8 @@
           addRecognizedProperties(recognizedProperties);
           
           setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
  +        setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
  +        setFeature(XINCLUDE_FIXUP_LANGUAGE, true);
           
           setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
           setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org