Saxon.Api

 

 

Saxon.Api

Class ParameterDetails


public class ParameterDetails

Information about an external parameter to an XSLT stylesheet (xsl:param) or an XQuery query (declare variable ... external;)

Field Summary

 Location Location

Get details of the location of the parameter declaration

 

Property Summary

 XdmSequenceType DeclaredType

Gets the declared type of the parameter.

 bool Required

Ask whether the parameter is required (mandatory) or optional

 

Field Detail

Location

public Location Location

Get details of the location of the parameter declaration

Returns:

The location of the declaration of this parameter

Property Detail

DeclaredType

public XdmSequenceType DeclaredType {get; }

Gets the declared type of the parameter.

Returns:

The type defined in the as attribute of the xsl:param element, or the equivalent in XQuery

Required

public bool Required {get; }

Ask whether the parameter is required (mandatory) or optional

Returns:

true if the parameter is mandatory (required="yes"), false if it is optional.