xsl-list
[Top] [All Lists]

Re: [xsl] How to get comments to indent on their own line in XML output?

2008-07-06 03:41:59
On Sun, 06 Jul 2008 04:08:51 -0600, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

<xsl:text>&#10;</xsl:text>
<xsl:comment select="'Here<xsl:text>&#10;</xsl:text>xu is my comment.'" />
<xsl:text>&#10;</xsl:text>

I assume you meant:

<xsl:text>&#10;</xsl:text>
<xsl:comment>Here &#10; is my comment.</xsl:comment>
<xsl:text>&#10;</xsl:text>

Either that, or I missed the errata for both the XML and XSLT specs that allow embedding markup into attributes and the addition of the select attribute to xsl:comment, respectively. ;-)

--
/M:D

M. David Peterson
Co-Founder & Chief Architect, 3rd&Urban, LLC
Email: m(_dot_)david(_at_)3rdandUrban(_dot_)com | 
m(_dot_)david(_at_)amp(_dot_)fm
Mobile: (206) 999-0588
http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354

--~------------------------------------------------------------------
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>
--~--