Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 7th, 2006, 08:48 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transforming a result tree with yet another Xslt

Hi,
I'm having a problem with doing a transformation, from a XMl source doc, with XSLT, and then transforming the result tree(xml) with another XSL transformation.

my problem is that i want to add this expression to the result tree of the first transformation;
<?xml-stylesheet type="text/xsl" href="http://www.newXSLT.xsl"?>

I have tried xsl:import and xsl:include, but this does not work, as I want the result tree of the first transformation to be evaluated by the second XSLT(newXSLT.xsl).

I would really appreciate any help.

Kindly regards
Tor Åge Ballo
NTNU Trondheim, Norway



Tor Åge Ballo
NTNU Trondheim, Norway
Reply With Quote
  #2 (permalink)  
Old March 7th, 2006, 09:02 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You can add the processing instruction to the result tree using the xsl:processing-instruction element.

I can't quite see where xsl:include and xsl:import come into the picture.

I wouldn't normally do this with the xml-stylesheet PI. You need some kind of application to tie together the multiple transformations, perhaps in Java or in some pipeline language such as Orbeon presentation server, or in Ant or Cocoon, etc; and it's the job of this application to control the pipeline of transformations.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #3 (permalink)  
Old March 7th, 2006, 09:42 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks mate,
It works using the xsl:processing element. Very much appreciated. I will also try to make a application in Java for the transformations.

I'm really thankful for your help.

Best regards
Tor Åge Ballo


Tor Åge Ballo
NTNU Trondheim, Norway
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
for-each on result tree fragment RoeZ XSLT 11 November 22nd, 2007 07:31 AM
Exception when transforming using XSLT ksskumar XSLT 5 October 10th, 2006 06:20 AM
how to exclude elements in the result tree output ntmt XSLT 0 May 25th, 2006 10:33 AM
Please help, xml transforming using xslt !!! daula7 XSLT 0 May 11th, 2006 01:29 PM
Preventing entities in result-tree rudolf XSLT 2 April 24th, 2006 03:47 PM



All times are GMT -4. The time now is 08:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.