Solved

xml xsl xpath

Posted on 2014-10-20
3
204 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
ID: 40392366
<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
ID: 40400111
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
ID: 40400120
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

929 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

12 Experts available now in Live!

Get 1:1 Help Now