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

AW: preserve structure of xml?

Subject: AW: preserve structure of xml?
From: "Zink, Juergen" <Juergen.Zink@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jul 2003 12:20:35 +0200
msxml indentation
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:  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

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.