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

Re: How can the mere switch from DTD to XSD in the sou

Subject: Re: How can the mere switch from DTD to XSD in the source document affect how a stylesheet handles white space?
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Feb 2021 22:33:10 -0000
Re:  How can the mere switch from DTD to XSD in the sou
On Mon, 2021-02-22 at 20:55 +0000, Wolfhart Totschnig
wolfhart.totschnig@xxxxxxxxxxx wrote:
> 
> So this is a Saxon-specific issue?

No. it's a difference between XSLT 1 and 2, and DTD-less vs. with a
DTD. The _only_ whitespace that can officially be dropped by an XML
parser is when a DTD is in use and the DYD says an elememt only has
elmeent children, not #PCDATA. oher schemas, such as W3C XSD or
RelaxNG, are processed _after_ the XML is parsed and such spaces have
been (or not been) dropped based on the DTD.

What is processor-dependent is ways to mitigate this when it's a
difficulty.

Note (there was another thread on this recently) that a language
defined in XML can say that white-space in certain context is ignored,
as happend when an XSLT stylesheet itself is read.

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.