xsl-list
[Top] [All Lists]

Re: [xsl] XSLT Output contains the unwanted content of all elements as text

2007-03-08 08:28:16
Michael Kay wrote:

  Hi

If there's no template in your stylesheet that matches a
given element, then the default template kicks in: this
outputs the text of the element (without any tags). Change
the default by including

<xsl:template match="*"/>

  With the OP example, that will result in no output at all,
as the root element will match this template rule and no
other processing will be done.  But off course that depends
on the whole, real stylesheet of the OP.  Maybe the
following can help him, too:

    <xsl:template match="text()"/>

  Regards,

--drkm




















        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.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>
--~--