XsltSettings.XsltVersion PropertyXsltSettings.XsltVersion PropertyXsltSettings::XsltVersion Property

Gets or sets the version of the XSLT specification to which the processor should adhere.

Syntax

Public Property XsltVersion As XsltVersion
        Get
        Set(ByVal value As XsltVersion)
public XsltVersion XsltVersion { get; set; }
public:
property XsltVersion XsltVersion {
    XsltVersion get();
    void set(XsltVersion value);
}
 

Property Value

Type: XmlPrime.XsltVersionXmlPrime.XsltVersionXmlPrime::XsltVersion

A XsltVersionXsltVersionXsltVersion value indicating which version of the specification should be used.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptionRaised if the specified version is not supported.

Remarks

The default value of this property is the latest version of XSLT which is fully supported. Currently this is Xslt20Xslt20Xslt20.

When set to Xslt20Xslt20Xslt20, if the processor encounters an XSLT module with a version declaration of "3.0", the processor will operate with forwards-compatible behaviour.

When set to Xslt30Xslt30Xslt30, if the processor encounters an XSLT module with a version declaration of "1.0", the processor will operate with backwards-compatible behaviour. The default in-scope functions will be those specified in XPath and XQuery Functions and Operators 3.0.

Settings this value determines the set of available functions for use within XPath expressions and determines the version of XSLT to use when parsing.