[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|