xsl-list
[Top] [All Lists]

Re: [xsl] [XSLT] Put element in new-line

2008-03-06 05:57:11
Michael Ludwig wrote:

  Hi

   <xsl:output indent="yes"/>
   <xsl:template match="/">
     <xsl:apply-templates select="node() | @*"/>
   </xsl:template>
   <xsl:template match="node() | @*">
     <xsl:copy>
       <xsl:apply-templates select="node() | @*"/>
     </xsl:copy>
   </xsl:template>

  The usual Identity Transform Pattern is:

    <xsl:template match="node()|@*">
       <xsl:copy>
          <xsl:apply-templates select="node()|@*"/>
       </xsl:copy>
    </xsl:template>

  Adding the rule for the document node won't change anything (well,
except if your serializer behaves differently whether it gets a
document or an element node, what is unlikely, especially if you use
xsl:output.)

  Regards,

--drkm
























      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
http://mail.yahoo.fr


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

<Prev in Thread] Current Thread [Next in Thread>