Thanks. I think I'll just leave things as they are. :)
On Tue, Sep 30, 2008 at 4:05 PM, Houghton,Andrew <houghtoa(_at_)oclc(_dot_)org>
wrote:
From: Paul [mailto:pflists(_at_)gmail(_dot_)com]
Sent: Tuesday, September 30, 2008 3:51 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--