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

Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Subject: Re: XSLT 3: Possible to Get Unescaped Markup in Message Results?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Oct 2019 16:25:39 -0000
Re:  XSLT 3: Possible to Get Unescaped Markup in Messag
On 17.10.2019 18:21, Eliot Kimber ekimber@xxxxxxxxxxxx wrote:
This may be a Saxon-specific question but I thought I would start here.

Using Saxon 9.9 and XSLT 3, I want to emit nicely-formatted XML markup in my
messages where the base markup has lots of noise I don't want to see (in this
case Office Open XML which is oversupplied with namespace declarations and
lots of little elements with lots of attributes.

I wrote some templates to generate the formatted markup I want but the
<xsl:message> o;?result has all the angle brackets escaped (I'm running from
within Oxygen but I assume the result would be the same from the command
line).

Is there a standard way around this? If not, is there a Saxon-specific way
around it?

I tried capturing the markup to a variable and then using xsl:text with
disable-output-escaping="yes" but that didn't seem to work.

It sounds as if `parse-xml-fragment` called on your result outputting
the formatted markup could help.

But I wonder whether you need to create markup (strings with XML?) and
why you can't just create elements and then directly use them in the
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.