|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: DOCTYPE and <xsl:preserve-space>
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








