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

RE: Confusing namespaces and xslt

Subject: RE: Confusing namespaces and xslt
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Tue, 30 Sep 2008 16:05:53 -0400
RE:  Confusing namespaces and xslt
> From: Paul [mailto:pflists@xxxxxxxxx]
> Sent: Tuesday, September 30, 2008 3:51 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Confusing namespaces and xslt
>
> One more question. :)
>
> How do I ensure that the "    <!-- etc. -->" where I add new elements:
> <xsl:element name="box:name">Connections-WM</xsl:element>
> <xsl:element name="box:description">somedescription</xsl:element>
>
> is properly indented?  I have <xsl:output method="xml" indent="yes"/>
> set at the top. Do I need to explicitly add in spaces before the above
> elements with a <xsl:text> </xsl:text> to get those elements correctly
> indented into the <work-manager> element?

If you have indent="yes" and your XSL processor supports indenting, then it
will add the necessary spacing as it see fit.  You may not like its choice,
which you don't have control over in a standard way.  Saxon for example has
extension attributes to control the number of spaces, other XSL processors
don't.  If you want total control over indentation, then you should set
indent="no" and add the indentation as you see fit which, unless you are OCD,
is just not worth it.


Andy.

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.