p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   Transforming a result tree with yet another Xslt (http://p2p.wrox.com/showthread.php?t=39461)

ballo March 7th, 2006 08:48 AM

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

mhkay March 7th, 2006 09:02 AM

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

ballo March 7th, 2006 09:42 AM

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


All times are GMT -4. The time now is 12:29 PM.

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