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

Re: Result still indented despite indent="no"

Subject: Re: Result still indented despite indent="no"
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Feb 2005 12:28:21 GMT
Re:  Result still indented despite indent="no"
> I agree, which prompted my post asking if anyone knew how to trigger this 
> in the browser environment.

simplest (which is what I do) is to give in to overwhelming force and
stick xml:space="preserve" on the top level element of your source
file. Then styling with a stylesheet refenced via the xml-styleshet Pi
more or less works as expected.

Plan b is to use xml-stylesheet PI to reference a styleseet that generates
a small html file that uses javascript to reload the xml source after
setting preserveWhiteSpace. This also works but I gave up with this in
the end as it just seems wrong/expensive (you download and parse the
file the first time only to throw it away) and also at the time the
script interface on mozilla was under development /constant change so
getting it work cross browser was a pain, although I gather that latter
problem is no longer there.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

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.