Finding tree of "import" files

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mlcook
Posts: 67
Joined: Thu Jan 24, 2008 4:52 pm

Finding tree of "import" files

Post by mlcook »

I'd like to be able to find all the files either imported or included in a transformation.

That is, I like Oxygen to report (or to run some transformation) to essentially find the expanded tree of files that were imported or included via the <xsl:include href.../> or <xsl:import href.../> elements.

I'm actually trying to find all my old transformation files (and eventually schema files) that I no longer need. The set of files is large enough to make a manual search and examination very tedious.

Any suggestions?

Thanks, Mike
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Finding tree of "import" files

Post by sorin_ristache »

Hello,

Just open the XSL file that contains the xsl:import and xsl:include elements in Oxygen 10.3, right click and select the action Resource Hierarchy (default shortcut F4). This action builds the tree of stylesheets that you want in the Resource Hierarchy view.


Regards,
Sorin
mlcook
Posts: 67
Joined: Thu Jan 24, 2008 4:52 pm

Re: Finding tree of "import" files

Post by mlcook »

Sorry about the delayed reply. This information is just what I was looking for.

Is it possible to print the hierarchy or dependency list, or otherwise capture it in a file? This would help as I go through our directory structure looking for obsolete files.

Thanks again,
Mike
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Finding tree of "import" files

Post by sorin_ristache »

That is not possible but we will consider it as improvement for a future version of Oxygen.


Thank you for your request,
Sorin
Post Reply