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:42 UTC
Re: cvs commit: xml-xalan/src/org/apache/xalan/xpath/xml
XMLParserLiaisonDefault.java
On 23 Jul 2000 sboag@locus.apache.org wrote:
> sboag 00/07/23 10:04:48
>
> Modified: src/org/apache/xalan/xpath/xml XMLParserLiaisonDefault.java
> Log:
> Declare isDefaultUseValidation set to true by default, and set to false if validation is specifically set.
>
> Revision Changes Path
> 1.36 +19 -2 xml-xalan/src/org/apache/xalan/xpath/xml/XMLParserLiaisonDefault.java
>
> Index: XMLParserLiaisonDefault.java
> ===================================================================
> RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xpath/xml/XMLParserLiaisonDefault.java,v
> retrieving revision 1.35
> retrieving revision 1.36
> diff -u -r1.35 -r1.36
> --- XMLParserLiaisonDefault.java 2000/07/19 14:23:01 1.35
> +++ XMLParserLiaisonDefault.java 2000/07/23 17:04:48 1.36
> @@ -639,7 +639,12 @@
> }
>
> /**
> - * If set to true, validation will be performed. Validation is off by default.
> + * If set to true, validation will be performed,
> + * if set to false, validation will not be performed.
> + * Validation is
> + * <a href "http://xml.apache.org/xerces-j/features.html#dynamic">dynamic</a>
> + * by default. Note that if validation is off, the id() function
> + * will not be able to locate nodes.
> */
> public boolean getUseValidation()
> {
> @@ -647,10 +652,22 @@
> }
>
> /**
> - * If set to true, validation will be performed. Validation is off by default.
> + * True if validation was specifically set by the caller,
> + * false if not.
> */
> + protected boolean m_isDefaultUseValidation = true;
> +
> + /**
> + * If set to true, validation will be performed,
> + * if set to false, validation will not be performed.
> + * Validation is
> + * <a href "http://xml.apache.org/xerces-j/features.html#dynamic">dynamic</a>
> + * by default. Note that if validation is off, the id() function
> + * will not be able to locate nodes.
> + */
> public void setUseValidation(boolean b)
> {
> + m_isDefaultUseValidation = false;
> m_use_validation = b;
> }
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
> For additional commands, e-mail: xalan-cvs-help@xml.apache.org
>