[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Finding the current node type
Mark Anderson wrote:
Thanks Guys ?? Sounds like you want a copy idiom with some template matches instead of xsl:choose (or remove the copy if you meant with the above that you want to remove all the things not in the xsl:choose) I went with the <xsl:if test=self::speaker> option as I still use the Correct, as already been stated in this thread. If you find yourself doing test="self::ns:speaker" or similar, it is almost always better to do xsl:apply-templates with xsl:template matching. XSLT code only rarely really needs xsl:choose or xsl:if statements. Note that apply-templates automatically does nothing when the selected node set is not there. Cheers, -- Abel Braaksma
|
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
|