Re: [xsl] How to access PSVI in XSLT3

Subject: Re: [xsl] How to access PSVI in XSLT3
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 May 2018 19:26:00 -0000
There's no direct provision for accessing PSVI information in XSLT 3.0 (or
associated standards).

In fact, the XDM data model only requires a very small subset of PSVI
information to be maintained: specifically, the name of the data type that was
used to validate valid elements and attributes. Moreover, you can't access the
type name directly, you can only (through the "instance of" operator) ask
whether a node belongs to a specific schema type.

Saxon has extensions to fill this gap: see the saxon:schema() and saxon:type()
extension functions at
http://www.saxonica.com/documentation/index.html#!functions/saxon

Michael Kay
Saxonica


> On 23 May 2018, at 19:15, Jason Polis jason@xxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> How can the PSVI be accessed in XSLT3 ?
> In particular, the dm:type-name
<https://www.w3.org/TR/xpath-datamodel-30/#dm-type-name> of elements and
attributes.
> Ideally also facets of their schema type.
>
> Ibve searched the web, and reviewed the relevant specs:
> https://www.w3.org/TR/xslt-30/ <https://www.w3.org/TR/xslt-30/> ,
> https://www.w3.org/TR/xpath-31/ <https://www.w3.org/TR/xpath-31/>
> https://www.w3.org/TR/xpath-datamodel-31/
<https://www.w3.org/TR/xpath-datamodel-31/>
> https://www.w3.org/TR/xpath-functions-31/
<https://www.w3.org/TR/xpath-functions-31/>
> https://www.w3.org/Submission/xmlschema-api/xml-schema-api.html
<https://www.w3.org/Submission/xmlschema-api/xml-schema-api.html>
>
> Cheers,
> Jason Polis
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/293509> (by email <>)

Current Thread