Re: [xsl] template matching using namespace

Subject: Re: [xsl] template matching using namespace
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Wed, 29 Nov 2006 12:26:23 +0100 (CET)
Nima Kaviani wrote:


> if I apply my template to the XML file above then it will catch all
> the three elements. is there any way I can find out which one is
> currently being caught by the current template that the program
> counter is in?

  Use the self:: axis:

    <xsl:if test="self::constraint:And">

  Don't use name() or local-name() to test the name of an element or
attribute if you statically know the name to test.

> My second question, is there any way I can identify and copy those
> parts of the code that have not been caught by any of the defined
> XSLT template, to the output?

  Sorry, I didn't understand this question.




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

Current Thread