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

RE: DOCTYPE and <xsl:preserve-space>

Subject: RE: DOCTYPE and <xsl:preserve-space>
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Thu, 9 Sep 1999 18:53:17 -0600
xsl preserve space example
> I'm trying to copy a specific DOCTYPE value with xsl

In XSL, you don't have access to the source document's DTD.

> Also I was curious if anyone was able to have the
> latest version of James Clarks XT to do indent-result
> properly. I keep getting all tags together in my output.

You'll need to provide a code sample. There are several possible
explanations.

> I've tried: <xsl:preserve-space elements="template"/>

This means, "when looking at the source tree, do not pretend that text nodes
that are children of elements named 'template' and that contain nothing but
whitespace don't exist". An example of one of these whitespace-only text
nodes is the node that contains the newline character at the end of each
line followed by the spaces or tabs used for indenting the markup of the
next line.

The working draft says, "Initially, the set of whitespace-preserving element
names contains all element names". This means that whitespace-only text
nodes in the source tree are not normally ignored, so your
<xsl:preserve-space> instruction is redundant. <xsl:preserve-space> seems to
exist just to override <xsl:strip-space>, which you aren't using.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.