Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2006, 08:48 AM
Registered User
 
Join Date: Mar 2006
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
 
Old March 7th, 2006, 09:02 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
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
 
Old March 7th, 2006, 09:42 AM
Registered User
 
Join Date: Mar 2006
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.