xsl-list
[Top] [All Lists]

Re: [xsl] How to access PSVI in XSLT3

2018-05-23 14:26:05
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(_at_)x-x(_dot_)net 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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.
 
I’ve 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 <>)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>