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

Re: Asymmetric string handling with processing-instru

Subject: Re: Asymmetric string handling with processing-instructions
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Sep 2023 15:38:08 -0000
Re:  Asymmetric string handling with  processing-instru
On 14.09.2023 17:27, Martin Honnen martin.honnen@xxxxxx wrote:
I was also playing with some attributes created on the fly to be
serialized but as standalone attributes can't be serialized that
doesn't work out; I am not sure whether creating an element with
attributes on the fly and then serializing it to use string processing
on the serialization result to get only the right attribute
serialization is too hacky.

Perhaps adaptive serialization of attribute nodes works out:

<xsl:processing-instruction name="my" select="serialize(saxon:new-attribute('value', string()), map { 'method' : 'adaptive' })"/>

Current Thread


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.
First Name
Last Name
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.