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

Re: Outputting White Space Only Nodes from Variables

Subject: Re: Outputting White Space Only Nodes from Variables
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Feb 2021 05:07:21 -0000
Re:  Outputting White Space Only Nodes from Variables
On Mon, 2021-02-22 at 02:14 +0000, Don Smith
dsmith_lockesmith@xxxxxxxxx wrote:
> 
> 1. Use different instructions for the output of the variable: value-
> of, copy-of, and sequence2. Created the variables as both strings and
> elements and even RTFs3. Tried a character map4. Tried an alternative
> approach like using strings "#SPACE, #TAB, #NL, etc. I know that
> would work but seems like it should be unnecessary?
> In every case the white space only variable content gets stripped
> out. How can such content be output?

I tried,
<xsl:variable name="generatedTextAfter" as="xs:string?" select=" ' '
"/>
and got output.


The relevant text in the spec is this:
https://www.w3.org/TR/xslt-30/#stylesheet-stripping

Liam

-- 
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

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.