Solved

xml xsl xpath

Posted on 2014-10-20
3
198 Views
Last Modified: 2014-11-03
Hi,
I would like to know about XSL, XPATH, XML.
I see in my project code like belw

<xsl:call-template>

<xsl:with-param name="VALUE" select="lll"/>


<xsl:if test="$ABC_CD = 'AA'">
                        <xsl:call-template name="MapAmtWithKindCd">

<xPath>concat(rollNbr, '|', nbr)</xPath>
 <selectionRule>NODES_FROM_SHEET</selectionRule>





I am not clear what above code means and what it does. please advise.

Any good tutorials, resources, practice links, quiz links, video tutorials on these topics. Thanks in advance
0
Comment
Question by:gudii9
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
Comment Utility
<xsl:call-template>
<xsl:with-param name="VALUE" select="lll"/>

Open in new window


is calling a named template (something like a function, with a variable (parameter) "VALUE" that has the value of the Ill child element
Note that this code is in error since call-template requires a known @name

<xsl:if test="$ABC_CD = 'AA'">
                        <xsl:call-template name="MapAmtWithKindCd">

Open in new window


If the variable $ABC_CD has the string value 'AA" call the template (named template behaves like a function) 'MapAmtWithKindCd'

<xPath>concat(rollNbr, '|', nbr)</xPath>
 <selectionRule>NODES_FROM_SHEET</selectionRule>

Open in new window


these are simply nodes that will be copied to the output tree, nothing fancy, literal results
BUT they give the impression of being a generator for some sort of XPath logic, som maybe you are generating a stylesheet generator?
0
 
LVL 7

Author Comment

by:gudii9
Comment Utility
any good links, tutorials, video tutorials to learn these concept easily and in simple manner. please advise
0
 
LVL 60

Expert Comment

by:Geert Bormans
Comment Utility
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now