xsl-list
[Top] [All Lists]

AW: preserve structure of xml?

2003-07-18 03:20:35
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(_at_)nag(_dot_)co(_dot_)uk]
Gesendet am: Freitag, 18. Juli 2003 12:06
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>