|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: template matching using namespace
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
___________________________________________________________________________
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






