Re: [xsl] is it possible to simulate <xsl:import> precedence within a single stylesheet file?

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 14:34:57 -0000
Am 4/25/2023 um 3:57 PM schrieb Martin Honnen martin.honnen@xxxxxx:
>
>
> 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 now tried to export/compile the main Schxslt stylesheet through
Saxon EE 10.6 and create an SEF with target:HE; then I copied/pasted the
contents of the SEF into the fiddle and used a Schematron schema as an
input document, the result is an XSLT stylesheet for Schematron validation.

Anyway, that means that the fiddle swallows an SEF so perhaps you can
try to export/compile your main DITA stylesheet int an SEF.

Current Thread