473,405 Members | 2,272 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,405 software developers and data experts.

xsl:Include e xsl:call-template

Hi XSL Community,

I would do a file in PDF with FO and XSL/XML tecnology.

In a precisely moment of a creation of this PDF file I must call a
precisely template from a precisely XSL file, that I have already
included.

The name of this template is the same that from a file XML.

Into each file XSL there are one template.

Example:

File XML:
-------------------------
[...]
<object1>ADV6</object1>
[...]
-------------------------

File XSL (his name is "ADV6.XSL") is structured:

-------------------------
<xsl:stylesheet>
<xsl:template name="ADV6">
[...]
</xsl:template>
</xsl:stylesheet>
-------------------------

File XSL that call another file XSL

-------------------------
[...]
<xsl:include href="Adv6.xsl"></xsl:include>
[...]
<xsl:call-template name="ADV6"/>
[...]
-------------------------

How do you do to put "Adv6.xsl" and "ADV6" dinamicly?

How do you do?

Thank you for your interesting.

Emanuele

Nov 6 '06 #1
1 1668

lele1979 wrote:
In a precisely moment of a creation of this PDF file I
must call a precisely template from a precisely XSL file,
that I have already included.
File XML:
[...]
<object1>ADV6</object1>
[...]
File XSL (his name is "ADV6.XSL") is structured:
<xsl:stylesheet>
<xsl:template name="ADV6">
[...]
</xsl:template>
</xsl:stylesheet>
Make that:

<xsl:template match="*[.='ADV6']" mode="processing">
. . .
</xsl:template>
File XSL that call another file XSL
[...]
<xsl:include href="Adv6.xsl"></xsl:include>
[...]
<xsl:call-template name="ADV6"/>
[...]
<xsl:apply-templates match="." mode="processing"/>
How do you do to put "Adv6.xsl" and "ADV6" dinamicly?
XSLT Q&A Things XSLT can't do Conditional Include

http://www.dpawson.co.uk/xsl/sect2/nono.html#d1752e136

XSLT Q&A Things XSLT can't do Call templates
dynamically

http://www.dpawson.co.uk/xsl/sect2/nono.html#d1752e238

If for some inexplicable reason you insist on using named
templates and single-template includes, you'll have to add
another phase to your processing. Basically, you'll need to
compose an extra transformation, that will dynamically
generate an XSLT for processing the original document.

Beware. Down that path lies madness.
How do you do?
Thanks, I'm fine.

--
Pavel Lepin

Nov 6 '06 #2

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

Similar topics

2
by: Burt Lewis | last post by:
Hi, I have 2 xsl style sheets calling separate rss feeds and I use ASP to display. Problem is that the 1st xsl takes on the style of the 2nd xsl even though they are different formats. I...
1
by: schaf | last post by:
Hello NG ! I have a big problem. I would like to go through a xml file in a xsl:for-each statement. for-each entry (ID) in the XML file i would like to call an xsl:function, which returns a...
0
by: schaf | last post by:
Hi ! I'm writing a new xsl:function, which uses two other functions. But by the call of the first function, it would be abort just after the call. Not even the xsl:param would be set. I don't...
2
by: Keith Chadwick | last post by:
I have been running some tests with regards to xsl:include and xsl:import with the same results on both and I am wondering if someone can explain this behavior to me! First off the xslt file is...
7
by: Novice | last post by:
Hi all, from every example I've ever seen on using XSL files, the user is able to put HTML into the XSL file Well, I'm making use of the XPathDocument and XSLTransform classes to transform some...
3
by: Gordon Moore | last post by:
Hi, I'm new to using xml/xslt and although I can create an xml document using the dataset.WriteXml statement, and I have created an xslt to transform the xml into the output I want, I have to...
0
by: Alan Searle | last post by:
I hope someone can help me with this simple question ... I have a set of XML files which the users can open and view with the formatting set by a single XSL file. This works great. In the XSL...
2
by: al3x4nder | last post by:
I`m need hanling XSLT errors in my script, before I`m use Sablotron, that has nice interface for it: ------------8<------------------ function ProduceXHTML($xml, $xsl){ $xh = xslt_create();...
7
by: Chuck Anderson | last post by:
I can tell I'm not alone in my confusion, as I've been using Google to find a solution to this problem and all I can find is the same question, but no solution. I am running Php 5.25 (Windows...
1
by: stepthom | last post by:
I am attempting to break my templates down from 1 main xsl file into smaller files. Then I want to call them from a main xsl file. I started to look. I have found xsl:include and xsl:import. Also,...
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: 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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.