[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: is it possible to simulate <xsl:import> precedence

Subject: Re: 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
Re:  is it possible to simulate <xsl:import> precedence
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.