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

Re: [ANN] Saxon 9.7 released today

Subject: Re: [ANN] Saxon 9.7 released today
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 29 Nov 2015 21:17:56 -0000
Re:  [ANN] Saxon 9.7 released today
You could try

<xsl:message select="serialize($value, map{ 'method':'adaptive' })"/>

The "adaptive" serialization method is new in 3.1, the specification is still
not 100% stable, and the Saxon implementation may not be final. It's designed
to allow anything to be serialized without any failures.

The fn:serialize() function with a map argument is also new in 3.1, it's in
draft specs that are not yet published, but implemented in Saxon 9.7.

xsl:message itself is still specified as producing XML output. Perhaps we
should have changed that.

Michael Kay
Saxonica


> On 29 Nov 2015, at 19:43, Martin Honnen martin.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Michael Kay mike@xxxxxxxxxxxx wrote:
>
>> 9.7 also includes a complete implementation of XPath 3.1 and XQuery
>> 3.1. In fact, it implements new features in these specs that W3C
>> haven't yet published. Many of the new features including maps and
>> arrays are in the open-source HE product, though for higher-order
>> functions you need to move to the Professional Edition.
>
> Now that maps and arrays are part of the type system, is there any easy way
to output a map or an array for debugging with xsl:message?
>
> I get error messages "Cannot add an array to a tree" respectively "Cannot
add a map to a tree" when trying to have an array respectively a map as the
select value of an xsl:message.

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.