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

Subject: Re: [xsl] XSLT Output contains the unwanted content of all elements as text
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 8 Mar 2007 16:27:56 +0100 (CET)
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




















	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread