473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

call template function called from another xml file?

Hi, if I want to include a set of call template methods into my xsl
file can I do that? Meaning I want to have the template method below
of data_output in another file that I can use in several other xsl
files when needed. This would be similar to an inclue mindset in C++
or a import in java. Any help is greatly appreciated. Below I would
like the "data_output" template call to be imported so to speak or come
from another xsl file, can this be done using the document method?
<xsl:template
match="//item[@key='SUMMARY']/*/item[@key='non_viewable']/*/item[@key='aggregate_result'][text()='true']">
<xsl:call-template name="data_output"/>
</xsl:template>

<!-- data output -->
<xsl:template name="data_output">
<tr>
<xsl:for-each
select="ancestor::hashref/item[@key='viewable']/hashref/item">
<a>
<xsl:attribute name="href">
http://lx-dgdev51:8080/cgi-bin/<xsl:value-of
select="/perldata/arguments/display_cgi"/>?file=<xsl:value-of
select="/perldata/arguments/file"/>&amp;xsl=<xsl:value-of
select="/perldata/arguments/target_xsl"/>&amp;test=<xsl:value-of
select="../../../item[@key='non_viewable']/hashref/item[@key='test_value']"/>
</xsl:attribute>
<th align='left' bgcolor="lightblue">
<font color="navy" face='arial' size='2'>
<xsl:value-of select="text()"/>
</font>
</th>
</a>
</xsl:for-each>
</tr>
</xsl:template>

Jul 20 '05 #1
1 1565
I think I just answered my own question with <xsl:import> thanks
though!

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: nifsmith | last post by:
Hi I am trying to learn about Queues and use templates at the same time. I have written the following code and I am getting a link error, stating "unresolved external symbol, "int__cdecl...
3
by: JoeK | last post by:
Hey all, I am automating a web page from Visual Foxpro. I can control all the textboxes, radio buttons, and command buttons using syntax such as: ...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
9
by: Daniel Kay | last post by:
Hello! I have written two template classes which implement the observerpattern in C++. I hope I manage to desribe the problem I have. template<class T> class Observer { /* ... */ }; ...
2
by: coolpint | last post by:
Can anyone kindly provide an explanation as to why the compiler does not "see" the function template in the contrieved code below? I think the argument deduction fails but can't figure out...
1
by: Dartish | last post by:
Hi all, Thanks in advance for the help I have a DLL that which has several functions that I can call in Excel. I am thinking of how to call these functions in a .net project (authored in C#)....
2
by: Marcin Gil | last post by:
First of all thanks for your patience and good pointers for Visitor and Curiously Recurring Template patterns last time :) Now another problem of mine. THE CODE #include <iostream>...
11
by: dolphin | last post by:
Hi All! I have a question that how to call a function just using a string. For example There is a .cpp file named a.cpp.There are some functions::fun1() fun2() fun3(). I have another fucntion...
5
by: aryan | last post by:
Is it not allowed to have template function definition in a .cc file? Here is the scenario. The tempage function declaration is in a header file and the definition in a .cc file. The function is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.