cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT statement use...

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
<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.

Answers (2)

Answers (2)

Former Member
0 Kudos

following-sibling process the next node.

rajasekhar_reddy14
Active Contributor
0 Kudos

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