Subject: RE: DOCTYPE and <xsl:preserve-space> From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Thu, 9 Sep 1999 18:53:17 -0600 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], Thomas Russo | Thread | RE: DOCTYPE and <xsl:preserve-space, Earl Bingham |
DOCTYPE and <xsl:preserve-space>, Earl Bingham | Date | Re: XSLT: Selecting nodes based on , Mark Sztainbok |
Month |