on 07-03-2009 7:56 PM
Hello,
Can anyone please explain me meaning of following statemen ?
- <xsl:template match="GMTLogTransactionLine[TransactionType='0']">
<xsl:apply-templates select="following-sibling::GMTLogTransactionLine[1][not(TransactionType='I')][not(TransactionType='N')][not(TransactionType='NA')]" /> </xsl:template>
1) How XSLT processor come to know that which template it should call when we use apply-template ?
2) use of Following-sibling statement..
I searched everywhere but have not found the clear answer..
regards
Kulwinder
<xsl:template match="GMTLogTransactionLineTransactionType='0'">
http://www.w3schools.com/xsl/el_template.asp
<xsl:apply-templates select="following-sibling::GMTLogTransactionLine[1]not(TransactionType='I')not(TransactionType='N')not(TransactionType='NA')" />
http://www.w3schools.com/xsl/el_apply-templates.asp
Do check the above given links for the exact meaning of template and apply-template.....
The links also have exacmples (with output) so that you get a clear view of things.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
following-sibling process the next node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The xsl:apply-templates element defines a set of nodes to be processed, or by default selects all child nodes of the current node being processed, and finds a matching template rule to apply to each node in the set.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.