Subject: Re: [xsl] is it possible to simulate <xsl:import> precedence within a single stylesheet file? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 25 Apr 2023 13:56:54 -0000 |
Am 4/25/2023 um 2:47 PM schrieb Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx: > > Hello XSLT friends, > > Martinbs XSLT fiddle site > <https://xsltfiddle.liberty-development.net/> has become one of my > favorite XSLT learning and development tools. The ability to see > stylesheet results in real-time is enormously helpful in developing a > mental model both of the problem being solved and of XSLT itself. > > Today I need to develop some functionality for a DITA-OT processing > stylesheet. The top-level stylesheet is a bunch of <xsl:import> > imports of lower-level files: > > <?xml version="1.0" encoding="UTF-8"?> > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="2.0"> > > B <xsl:import > href="plugin:org.dita.base:xsl/preprocess/topicpullImpl.xsl"/> > > B <xsl:import > href="plugin:org.dita.base:xsl/preprocess/topicpull-task.xsl"/> > > B <xsl:import > href="plugin:org.dita.base:xsl/preprocess/topicpull-pr-d.xsl"/> > > B <xsl:import > href="plugin:com.oxygenxml.pdf.css:xsl/preprocess/topicpull.xsl"/> > > B <xsl:import href="plugin:com.synopsys.processing:topicpull.xsl"/> > > B <xsl:import href="plugin:com.synopsys.mini-toc:topicpull-minitoc.xsl"/> > > B <xsl:import href="plugin:com.synopsys.preserve.keyrefs:topicpull.xsl"/> > > </xsl:stylesheet> > > It would be super cool to create an XSLT stylesheet that flattens a > top-level DITA-OT stylesheet into something that can XSLT-fiddled with. > If you have Saxon EE access (e.g. through oXygen) you could try to compile/export the main stylesheet to SEF with -target:HE and paste that file into the fiddle. I have not tried whether the fiddle swallows that and the interactive and readable approach in terms of stylesheet editing is gone but currently exporting to SEF is the only way I can think of to get a single stylesheet; if the fiddle swallows the SEF then you could still exploit the interactivitity for input variations.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] is it possible to simulat, Michael Kay mike@xxx | Thread | Re: [xsl] is it possible to simulat, Martin Honnen martin |
Re: [xsl] is it possible to simulat, Michael Kay mike@xxx | Date | Re: [xsl] is it possible to simulat, Martin Honnen martin |
Month |