Subject: AW: [xsl] preserve structure of xml? From: "Zink, Juergen" <Juergen.Zink@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 18 Jul 2003 12:20:35 +0200 |
Hi, I am using MSXML 4.0 and I don't have problems with preserving whitespace. My xsl uses xsl:copy. The indenting is preserved too. Here is my output declaration. <xsl:output method="xml" version="1.0" encoding="windows-1252" omit-xml-declaration="no"/> How do you call MSXML 4.0 and what is your stylesheet, your XML? Juergen Von: David Carlisle [mailto:davidc@xxxxxxxxx] Gesendet am: Freitag, 18. Juli 2003 12:06 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: Re: [xsl] preserve structure of xml? For example the <xsl:output indent="yes"/> is ignored by msxml, so your indenting is gone. That doesn't explain why everything is on one line though...... No that isn't why indenting goes with msxml if you copy the source. In that case the indentation that was there should be copied so the XSLK system shouldn't need to add further white space to achieve indentation. The reason it is there is because by default msxml doesn't conform to the XML spec, and discards white space before XSLT gets a chance to copy it. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ***************************************************************************** Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ***************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] preserve structure of xml, Ragulf Pickaxe | Thread | Re: AW: [xsl] preserve structure of, David Carlisle |
Re: [xsl] preserve structure of xml, David Carlisle | Date | [xsl] how to set the bgcolor of a t, Ali Zain Banatwala |
Month |