[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to store a sequence into an element ... and m

Subject: Re: How to store a sequence into an element ... and maintain the sequence inside the element?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2020 09:01:37 -0000
Re:  How to store a sequence into an element ... and  m
> I think that, using a schema (for input & output documents) for an XSLT
transformation, in general is very useful. The main benefit is, I think,
stronger type checking of XML input/output data, which reveals many error
early during an XSLT transformation cycle.

Indeed. But although it gives you a wider range of data types than just
strings -- it's fine for a sequence of integers or a date -- it's still
restricted. For example there's no way you can hold a function as an attribute
of an element node, because (a) functions aren't recognized as an XSD data
type, and (b) they can't be represented as strings. This lack of orthogonality
in the XDM model is a constant pain when you're doing applications like the
XSLT-in-XSLT compiler that we wrote for Saxon-JS, or the XSD-validator-in-XSLT
that I've published details of but never released as a finished product.

Michael Kay

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.