You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Dirk-Willem van Gulik <di...@covalent.net> on 2000/07/24 18:17:38 UTC
Re: cvs commit: xml-xalan/src/org/apache/xalan/xpath/dtm DTMLiaison.java
On 23 Jul 2000 sboag@locus.apache.org wrote:
> sboag 00/07/23 10:01:35
>
> Modified: src/org/apache/xalan/xpath/dtm DTMLiaison.java
> Log:
> Use m_isDefaultUseValidation to control if dynamic validation is on. Control use of namespaces feature via use of m_useDOM2getNamespaceURI.
>
> Revision Changes Path
> 1.18 +14 -2 xml-xalan/src/org/apache/xalan/xpath/dtm/DTMLiaison.java
>
> Index: DTMLiaison.java
> ===================================================================
> RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xpath/dtm/DTMLiaison.java,v
> retrieving revision 1.17
> retrieving revision 1.18
> diff -u -r1.17 -r1.18
> --- DTMLiaison.java 2000/07/19 18:14:25 1.17
> +++ DTMLiaison.java 2000/07/23 17:01:35 1.18
> @@ -221,10 +221,22 @@
> parser.setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes",
> getShouldExpandEntityRefs());
>
> - parser.setFeature("http://xml.org/sax/features/namespaces", true);
> + // parser.setFeature("http://xml.org/sax/features/namespaces", true);
> + if(m_useDOM2getNamespaceURI)
> + {
> + parser.setFeature("http://xml.org/sax/features/namespaces", true);
> + }
> + else
> + {
> + parser.setFeature("http://xml.org/sax/features/namespaces", false);
> + }
>
> - if(getUseValidation())
> + if(m_isDefaultUseValidation)
> + parser.setFeature("http://apache.org/xml/features/validation/dynamic", true);
> + else if(getUseValidation())
> parser.setFeature("http://xml.org/sax/features/validation", true);
> + else
> + parser.setFeature("http://xml.org/sax/features/validation", false);
>
> // PR:DMAN4LSRDL Submitted by:<md...@us.britannica.com> remove unneeded else clause
> // "http://xml.org/sax/features/validation/dynamic" is and should be false
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
> For additional commands, e-mail: xalan-cvs-help@xml.apache.org
>