How get composite XSLT stylesheet with all includes?

Oxygen general issues.
sfogel2
Posts: 6
Joined: Fri Nov 06, 2009 8:33 pm

How get composite XSLT stylesheet with all includes?

Post by sfogel2 »

Hi, all....

I'd like to ask Oxygen 12 to produce a "composite" or "resolved" XSLT stylesheet, starting from a given stylesheet, merging in all included and imported stylesheets, and end up with one large stylesheet that contains all the templates, global variables, <xsl:output> declarations, etc. from all the stylesheets.

I could then easily debug any template, <xsl:output>, or global variable conflicts/duplications.

For example, Arbortext lets you do this when viewing a DITA map. If you ask it to "edit resolved document", it will create one monolithic document containing all the topics from all the topicrefs in the map, one after the other. You can then do, say, a global search and replace across all topics.

Is there a way to do this in Oxygen with XSLT stylesheets? Would be a big help.

Thx

Steve
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: How get composite XSLT stylesheet with all includes?

Post by george »

Hi Steve,

We do not provide in oXygen an action to get a "resolved" stylesheet. We
did not had any such requests until now. We do provide a similar action
for XML Schema.

On the other hand for XSLT development oXygen offers many functions that
should cover the usecase you will have with creating a one big stylesheet:

- XSLT aware searches that can look for references and definition of
XSLT components
- XSLT resource hierarchy to see the include/import relations
- XSLT resource and component dependencies to see where a specific
component is used or when an XSLT module is referred
- The Outline view and the content completion will look into
included/imported files

You can also use the find/replace in files action to search across all
the XSLT stylesheets.

Maybe you may want to take a look also the the documentation oXygen
creates for XSLT.

Please note that oXygen also offers a "resolved view" for a DITA Map.

Best Regards,
George
George Cristian Bina
Post Reply