On Wed, 20 Jun 2001, [EMAIL PROTECTED] wrote:

-|transformedDoc = serv.transform(xsl, new FileReader(DEFAULT_DOC_PATH + xml));
-|
-|is giving me back the xsl file!

are you sure it is the xsl file?
or is it the unparsed xml source. this easily
happens when the given xslsheet cant't be found.
make sure you have set the correct path to your stylesheets
in TR.props:

        --- SNIP ---

        [...]
        services.XSLTService.path = /resources/

        --- /SNIP ---

this points to the directory where the XSLTService is looking for
the stylesheet.

-|Is it possible you can send me your turbine properties file? Or can you spot 
anything really silly which I've done?

i pasted the important part above.


-|Thanks again, Hong.
-|
-|Original Message:
-|-----------------
-|Date: Wed, 20 Jun 2001 20:02:59 +0100 (BST)
-|To: [EMAIL PROTECTED]
-|Subject: Re: Fwd: Re: XSLTService with JSPs
-|
-|
-|On Wed, 20 Jun 2001, FWC Stylist Hong Wong wrote:
-|
-|-|I've had a go at trying to use the XSLT service but am getting the XSL file
-|-|back as the transformed doc!
-|
-|thats because i use turbine with velocity.
-|the xml file gets transformed and is then put
-|into the velocity context as a string object.
-|this way, you can place the resulting html anywhere in your screen.
-|
-|-|I'm a little confused [new to XSL] because the we pass in the path to the
-|-|XSL file as part of the call to the transform method. But, usually you
-|-|specify the XSL stylesheet in the XML source file [i.e. we seem to be
-|-|specifying it twice]!
-|
-|yeah, thats correct. usally you specify the xslsheet in the
-|xml file. thats where the parser looks (i.e. xalan) to locate
-|the correct stylesheet. cocoon works the same way.
-|
-|with the turbine XSLT service it works a little different,
-|as the xslsheet definition is part of the transform method.
-|
-|this way you can choose on the fly ,
-|which xslsheet to take for the transformation.
-|
-|-|If I remove the reference to the XSL file from my XML source file I then get
-|-|a badly formed XML file exception!
-|
-|well, i tried your source files in my app.
-|with or without the processing instruction it works fine.
-|
-|i dont know about your requirements.
-|but if you choose turbine just for the xslt service,
-|then you should also take a look at cocoon, which makes
-|the whole transformation somehow easier.
-|
-|hope that helps,
-|
-|heiko
-|
-|
-|
-|--------------------------------------------------------------------
-|Mail2Web - Check your email from the web at
-|http://www.mail2web.com/ .
-|
-|
-|---------------------------------------------------------------------
-|To unsubscribe, e-mail: [EMAIL PROTECTED]
-|For additional commands, e-mail: [EMAIL PROTECTED]
-|
-|


 ----------------------------------------------
 heiko braun, fork unstable media [development]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to