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

Re: xsl:preserve-space, xml:space

Subject: Re: xsl:preserve-space, xml:space
From: John Robert Gardner <jrgardn@xxxxxxxxx>
Date: Sun, 28 Nov 1999 01:58:10 -0500 (EST)
preserve space xml
Replying without checking details is costing me--and others--all over the
place this weekend . .. . sorry.  Returning to what I sent too hastily:

> 	<foo xml:space="preserve">bar</foo>

is fine enough for whitespace in your xml instance (I think you
mistakenly had "yes" instead of "preserve"), but what I've used to get
successful indenting as I think you are seeking is:

	<xsl:output type="xml" indent="yes"/>

> Note-- if you use a DTD, MSIE 5 requires a declaration of both options for

NO, I was wrong here too-- it's IBM's VisuaLXML tools that gets fussy on
this . .. I don't know if MSIE5 does or not.

> the attribute, (preserve | default)

This is what IBM"s tools require, tho, so that much was okay.

best wishes,

jr


> On Sat, 27 Nov 1999, Wolfgang May wrote:
> 
> > Hi,
> > 
> > I try to obtain an XML file with indentation (using xt). Currently, I
> > try it with xml:space (the source xml-file has
> > 
> >  < ...  xml:space="yes">
> > 
> > in the start tag of the root node) and xsl:preserve-space (by 
> > 
> >   <xsl:preserve-space elements="*"/> 
> > 
> > on top-level of the stylesheet) but without any success. It seems to
> > be ignored. Is this implemented in xt? Are there any examples out
> > there illustrating the use of these attributes? Are there other
> > attributes which have to be used for indentation by whitespace
> > preservation from the source XML file and the stylesheet?
> > 
> > THX
> > Wolfgang
> > 
> > 
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 



 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.