xsl-list
[Top] [All Lists]

Re: [xsl] template matching using namespace

2006-11-29 04:26:49
Nima Kaviani wrote:

  Hi

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">
      ...
    </xsl:if>

  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.

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

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