Difference between Apply-template and Call-template?

1 Answer

Answer :

The <xsl:apply-templates> element applies a template to the current element or to
the current element's child nodes.
If we add a select attribute to the <xsl:apply-templates> element it will process only the
child element that matches the value of the attribute. We can use the select attribute to
specify the order in which the child nodes are processed.
 The <xsl:call-template> element calls a named template.
<xsl:call-template name="templatename">
 <!-- Content:xsl:with-param* -->
</xsl:call-template>
 Note:
 In terms of raw performance xsl:call-template is likely to be faster, as you are
calling a specific named template, rather than telling the XSLT processor to
pick the template which best matches
 With call-template you have to know what you're calling. apply-templates is
polymorphic - what gets called depends on what you find in the input, which
means it is the key feature that enables XSLT to respond to variable or
unpredictable input - essential when handling documents as distinct from
structured data.
 apply-templates is usually (but not necessarily) used to process all or a subset
of children of the current node with all applicable templates. This supports the
recursiveness of XSLT application which is matching the (possible)
recursiveness of the processed XML.
 call-template on the other hand is much more like a normal function call. You
execute exactly one (named) template, usually with one or more parameters.

Related questions

Description : Difference between Copy and Copy-of?

Last Answer : The element creates a copy of the current node. Note: Namespace nodes of the current node are automatically copied as well, but child nodes and attributes of the current node are not ... : Namespace nodes, child nodes, and attributes of the current node are automatically copied as well!

Description : 2. Difference between WSP and MPGW?

Last Answer : WSP Web Service Proxy is a powerful service in DataPower which provides abstraction and security to the backend web services .It provide access to variety of web services. WSP has many important ... to manually configure a match action and Processing policy  We have a loopback mode in MPGW

Description : How to integrate MQ with Datapower?

Last Answer : http://www.ibm.com/developerworks/websphere/library/techarticles/1410_sahoo/1410_sahoo.html

Description : How to take secure backup?

Last Answer :  To securely back up the appliance configuration from the WebGUI:  Click Administration => Main => System Control.  Locate the Secure Backup section.  From the Crypto certificate list, select the ... of the target directory for the backup files.  Click Secure Backup to back up the appliance.

Description : What are the different modes through which you can connect to Datapower?

Last Answer :  GUI  CLI  XML-Management Interface

Description : What is an Application Domain?

Last Answer : An application domain allows the administrators to partition an appliance into multiple logical configurations. For example the developers and production employees environment is different

Description : Explain about your Roles and Responsibilities?

Last Answer :  Gathering the requirements from Client  Preparing the Design Document  Presenting the Design document to Client for approval  Configuring the service in Development environment  Testing and Troubleshooting of DP Services  Migrating the services from Dev to test and to production environment

Description : What is an on-error action in XI52?

Last Answer : An on-error action defines a named rule that enables user-defined error handling when subsequent processing encounters errors. This topic instructs how to define an on-error action. The on-error action ... an error occurs during processing. In this case, the error rule acts as an error handler.

Description : How do you migrate your services from one environment to another or how do you deploy your services from one environment to another?

Last Answer : We have a support team who takes care of Service deployments. We take an export of the service which needs to be deployed and keep it in a secured server by doing FTP. Our support ... server and does the deployment We can also use Export and Import configuration along with the Deployment Policy

Description : What is the advantage of Datapower over Message Broker?

Last Answer : Message Broker Datapower Integrating and leveraging the WebSphere MQ messaging infrastructure. Similar to Message Broker, DataPower can do any-to-any transformation (in theory, Yes. But in practice, you ... from any-to-any. Offers z/OS clients platform-specific benefits (CICS, VSAM).

Description : Have you worked on Datapower Extension functions? If so, can you please name some of them

Last Answer : Yes. Whenever we need to use DP EXTN Functions, we always need to declare the below namespace. xmlns:dp=http://www.datapower.com/extensions extension-element-prefixes="dp" dp:set-variable: ... field does not exist, this extension function adds the specified name and value to the client request.

Description : How do you handle Error scenarios?

Last Answer : We create an error rule in which we use a generic XSLT, which creates a fault message by reading the Service variables env:Client

Description : What is a Passthrough Service?

Last Answer : assthrough is basically accepting and sending a request to the backend without modifying it in Datapower

Description : What are the Datapower Variables?

Last Answer : Local - var://local/userdefinedname A local context variable in the default (current) context. The local context does not persist beyond the scope of the transaction. A transaction can include both ... a variable that is made available to a DataPower service that is attached to a session.

Description : What is xsl:param ?

Last Answer : The element is used to declare a local or global parameter. The parameter is global if it's declared as a top-level element, and local if it's declared within a template.

Description : Have you worked on XSLT Coding? If so, rate yourself in the scale of 1-10

Last Answer : Yes. I would rate myself as 6-7

Description : . How do you Implement Dynamic Routing in Datapower?

Last Answer : In case of a dynamic backend, we update all the backend URL’s in an xml file and we use a generic XSLT which will read the URL from the xml file based on certain customized conditions and we set the routing variable var://service/routing-url in the XSLT.

Description : What kind of troubleshooting have you done in datapower?

Last Answer : We use probe to capture the ongoing transactions with respect to a service.  We can also set the log level to debug mode in Troubleshooting Panel.We can make use of Log targets and Log ... Appliance itself under logstore or logtemp directory  We can also save the logs in an external server.

Description : How do you test your Datapower Services?

Last Answer : We can use SOAPUI to test the Datapower Services

Description : 8. When can we use User Agent?

Last Answer : A user agent is a client that initiates a request for a local service to establish a connection to a remote server.

Description : 7. What is an XML Manager and why do we need it?

Last Answer : An XML Manager provides the following capabilities  Basic network configuration, such as load balancing and accessing remote servers.  It acts as an XML parser in order to provide XML Threat Protection  It helps in implementing Caching  To configure the User Agent

Description : 6. What are the Security features that you have enabled in Datapower?

Last Answer : SSL Proxy Profile or Transport Layer Security  Forward  Reverse  Two-way  When DataPower Acts as Server Create SSL proxy profile by following the steps shown below , it can be referred ... Header  We extract the Header and verify the same in the AAAinfo.xml file for Authentication purpose

Description : 5. What is SLM and options available with that?

Last Answer : SLM has mainly 3 statements  Throttle  Notify  Shape

Description : 4. What actions have you used in the processing policy?

Last Answer :  AAA  SLM  Match  Transform  Result  Sign  Verify  Encrypt  Decrypt

Description : 3. What are the components of a WSDL?

Last Answer :  WSDL Definitions  WSDL Types  WSDL Message  WSDP Port and Operation  WSDL Binding

Description : 1. What are the different services that have you used in Datapower?

Last Answer : WebService Proxy, Multiprotocol gateway and XML Firewall

Description : Difference between Template strand and Coding strand. -Biology

Last Answer : answer:

Description : How come it appears when astronomers talk of life on other planets they seem to use Earth as the only template?

Last Answer : answer: What makes astronomers believe life out there has to adhere to the perimeters of here, being Earth? Nothing. In fact, many people have hypothesized just that. However, we ... asphalt. The study of these extremophiles may inform the search for extraterrestrial microorganisms, as well.

Description : Marketing Geniuses: Suggest a Strategy Template for CoSchedule?

Last Answer : answer:

Description : How to find best business card template?

Last Answer : I’d use the best stock you can, tailor the style to your business, and use an image of your avatar on it. I would remember the koala for a longtime. Edit, And welcome to ask-public.

Description : How to change template design of AC login page?

Last Answer : If you think that the template is coded in HTML, then I'm guessing you can access it from a web browser. That would suggest that at least the output is HTML. Of course, that doesn't mean that ... from there: if you know the generating language than you can try inserting an include() or something.

Description : How can I modify graphics used in a Microsoft Word 2007 Document Template?

Last Answer : I just have the Mac version but a right click provides the option.

Description : Good no-styling starter blogger template?

Last Answer : answer:I know you're on Blogger but if all you're trying to do is learn from some existing templates on a well-known blogging platform, then perhaps you should try Tumblr instead. They offer ... started with selecting the template you want. All of the HTML/CSS/JS is completely editable by you.

Description : Is there a way to save a template in GMail?

Last Answer : This might help?

Description : Is Word Notebook Template offered in Microsoft Word 2008 for PCs?

Last Answer : answer:(I am using Windows but I believe this works the same on the Mac) Open a new Notebook Layout document on a Mac Save As Choose Save as Type Word Template Name your file whatever you would like Copy ... version of Word ( or if you are not sure), choose Save as Type Word 97-2003 Template .

Description : How can I fix my wordpress template when it will not give me access to the blog or admin?

Last Answer : answer:log in to the server and manually edit controlpanel.php and fix the error on line 14. if you don’t have the appropriate knowledge to log on to the server and manually edit this file, you need to contact the hosting company and request they help you. This may or many not cost you money.

Description : Where to find Excel template to calculate interest compounded monthly?

Last Answer : do you have a fixed monthly interst rate? . . . are there any principal additions or subtractions involve?

Description : What is the best way to create an online interface for generating PDF files based on a predefined template?

Last Answer : I do this. I accept the form fields over html. Then I use OpenOffice Uno to do a search and replace of the form fields. Then I use OpenOffice integration to print the .odt as a .pdf which is returned to the user.

Description : How do I make this a document template?

Last Answer : Save as—> Microsoft Word Template (.dot)

Description : How to add a template on vuze?

Last Answer : If you’ve got the template already, you can just double-click it in Windows (you don’t have to do anything special in Vuze).

Description : HELP. Is the guy with the drinks on the Visit California Snow commercial Jamie Kennedy? Huge debate right now in this house. Here's the website with the video: http://www.visitcalifornia.com/AM/Template.cfm?Section=Winter_Recreation?

Last Answer : Yes, elsewhere on the site it says: Actor and comedian Jamie Kennedy makes an appearance, with Governor Arnold Schwarzenegger closing the spot with another memorable line. “There’ll always be room at the top,” he says from the summit at Mammoth Mountain.

Description : Does it matter where I buy my Joomla template from?

Last Answer : Need Answer

Description : Is there a way to put a digital photo on a REAL magazine cover template?

Last Answer : If you have a scanner and a photo editor, you have all you need. You would not be able to get something like this off the Web because of copyright infringement.

Description : Has anyone got a business case proposal template?

Last Answer : Google has many for you.

Description : Is there anywhere I can find "template" design for handmade cards?

Last Answer : what sorts of cards are you trying to make?

Description : What is database template? Give the description of five templates, used in Microsoft Access 2007. -Technology

Last Answer : A template is a complete tracking application with predefined tables, forms, reports, queries, macros, and relationships. Each template creates a complete end-to-end solution that you can use ... to create a projects tracking database to track multiple projects and assign tasks to different people.

Description : What does a judgement and stipulation template letter means in the state of texas?

Last Answer : Need Answer

Description : How to modify our Facebook page layout? & how do I change my page's template on Facebook?

Last Answer : There is only one new version template of Facebook. If you are using the old version, you need to adapt to a new one by now. You can only change to light or dark mode in the setting.

Description : Sequence of AAT GCT TAG GCA on template segment of DNA will be represented over the transcribed mRNA as

Last Answer : Sequence of AAT GCT TAG GCA on template segment of DNA will be represented over the transcribed mRNA as A. ... C. UUA CGA AUC CGU D. TTA CGA ATC CGT

Description : After 4 PCR cycles how many DNA molecules are formed from one DNA template molecule ?

Last Answer : After 4 PCR cycles how many DNA molecules are formed from one DNA template molecule ? A. 4 B. 32 C. 16 D. 8