Subject: [xsl] self axis vs . From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Fri, 6 Jun 2008 13:59:54 +0100 |
An interesting practice I've come across at a client's site is instead of using . they use self:: instead... So instead of: <xsl:apply-templates select="." mode="other"/> you have <xsl:apply-templates select="self::elem" mode="other"/> and instead of: .//whatever you have: self::elem//whatever While it seemed a little odd to start with, their argument of it helps locate where you are (especially when . is far away from the match pattern that's normally used to discover the current node) is beginning to grow on me... -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] writing to file from MSXM, Joe Fawcett | Thread | Re: [xsl] self axis vs ., Vyacheslav Sedov |
Re: [xsl] writing to file from MSXM, Joe Fawcett | Date | Re: [xsl] XQuery basics, Robert Koberg |
Month |