redundant warning about duplicate include of stylesheet

Oxygen general issues.
hepabolu
Posts: 16
Joined: Tue Mar 08, 2005 7:03 pm

redundant warning about duplicate include of stylesheet

Post by hepabolu »

I am using several XSLT stylesheets that each serve as a main stylesheet but they include other stylesheets that include common/generic templates and functions. Each main stylesheet includes/imports the shared stylesheets only once, but I still get warnings about duplicate imports or includes.

So I have something like this:

main1.xsl

Code: Select all

<xsl:stylesheet ....>
  <xsl:include href="utils.xsl"/>
  ......
</xsl:stylesheet>
main2.xsl

Code: Select all

<xsl:stylesheet ....>
  <xsl:include href="utils.xsl"/>
  ......
</xsl:stylesheet>
utils.xsl

Code: Select all

<xsl:stylesheet ....>
  <xsl:include href="other-utils.xsl"/>
  ......
</xsl:stylesheet>
The main stylesheets never include/import each other.

What can I do to get rid of this warning, other than suppressing all warnings?
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: redundant warning about duplicate include of stylesheet

Post by chrispitude »

Hi hepabolu,

How are you running these refactoring operations? Is it as a refactoring operation with a descriptor file, a refactoring transformation, etc.?
hepabolu
Posts: 16
Joined: Tue Mar 08, 2005 7:03 pm

Re: redundant warning about duplicate include of stylesheet

Post by hepabolu »

Not really sure how refactoring comes in. I use the main stylesheets independent of each other. They are similar but vary slightly. Each main stylesheet serves a different purpose.
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: redundant warning about duplicate include of stylesheet

Post by tavy »

Hi hepabolu,

Unfortunately I cannot reproduce the warning. I created a similar structure and the validation engine does not report any warnings.
What version of Oxygen do you use? Do you use the Main Files Support from Oxygen?
https://www.oxygenxml.com/doc/versions/ ... files.html
Maybe you can create a simple example to reproduce the warning.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
hepabolu
Posts: 16
Joined: Tue Mar 08, 2005 7:03 pm

Re: redundant warning about duplicate include of stylesheet

Post by hepabolu »

I am using version 25.1 build 2023070306
I don't use the Main Files feature.

I also get the warnings when I run saxon.jar on the command line.
It will take some time before I'm able to create a simple example because I'm on holidays currently.
hepabolu
Posts: 16
Joined: Tue Mar 08, 2005 7:03 pm

Re: redundant warning about duplicate include of stylesheet

Post by hepabolu »

Finally found the culprit, there were actually some files included more than once.
Post Reply