Scenario editor: doc param and meta-stylesheet scenario

Hi I have the following stylesheet parameter in one of my stylesheets (note its type): <xsl:param name="initial" as="document-node()"/> I don't find how I can set its value in the scenario editor. Is it possible or do I have to create a driver stylesheet getting a filename and parsing it to set this parameter? (really, I'd like to avoid that) As a slide question, this stylesheet is actually a generated stylesheet. But I didn't find a way in the scenario editor to support meta-stylesheet (a double transformation that first generates the stylesheet using the meta-stylesheet, then transform a document using this generated stylesheet.) For now I have each time to launch two scenarios one right after the other. But maybe I just didn't find the right way to achieve that? Best regards, --drkm, looking forward to XProc as a scenario language ;-)

Hi Florent, An alternative will be to add another parameter, something like below maybe? <xsl:param name="doc"/> <xsl:param name="initial" as="document-node()" select="document($doc)"/> Yes, you need to run two transformations. In the current development we implemented a Scenarios view that lists all the defined scenarios and one can invoke a scenario by double clicking on it, that may help a little. As an alternative you can create an Ant script to perform both transformations and invoke that through the external tools support that we offer in oXygen. XProc would be indeed a nice addition. I have some concerns though: Norm's XProc implementation Calabaash is GPL and that means we cannot use it in oXygen... Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Florent Georges wrote:
Hi
I have the following stylesheet parameter in one of my stylesheets (note its type):
<xsl:param name="initial" as="document-node()"/>
I don't find how I can set its value in the scenario editor. Is it possible or do I have to create a driver stylesheet getting a filename and parsing it to set this parameter? (really, I'd like to avoid that)
As a slide question, this stylesheet is actually a generated stylesheet. But I didn't find a way in the scenario editor to support meta-stylesheet (a double transformation that first generates the stylesheet using the meta-stylesheet, then transform a document using this generated stylesheet.) For now I have each time to launch two scenarios one right after the other. But maybe I just didn't find the right way to achieve that?
Best regards,
--drkm, looking forward to XProc as a scenario language ;-)
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

George Cristian Bina wrote:
XProc would be indeed a nice addition. I have some concerns though: Norm's XProc implementation Calabaash is GPL and that means we cannot use it in oXygen...
This might change in future, see http://lists.w3.org/Archives/Public/xproc-dev/2008Sep/0122.html I think that if you contact Norm and tell him that you want to bundle Calabash this can speed up things. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------

Thanks Jirka for rising this concern on the xproc-dev list. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Jirka Kosek wrote:
George Cristian Bina wrote:
XProc would be indeed a nice addition. I have some concerns though: Norm's XProc implementation Calabaash is GPL and that means we cannot use it in oXygen...
This might change in future, see
http://lists.w3.org/Archives/Public/xproc-dev/2008Sep/0122.html
I think that if you contact Norm and tell him that you want to bundle Calabash this can speed up things.
Jirka
participants (3)
-
Florent Georges
-
George Cristian Bina
-
Jirka Kosek