[ xframe-Bugs-990990 ] Duplicate global variable declaration in component.xsl

"SourceForge.net" <[email protected]> Mon, 20 Sep 2004 13:09:46 -0700
Newsgroups gmane.text.xml.xframe.xsddoc
Message-ID <[email protected]>
Bugs item #990990, was opened at 2004-07-14 18:27
Message generated for change (Comment added) made by kriede
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=990990&group_id=48863

Category: all platforms
Group: xsddoc-0.5-beta
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Kurt Riede (kriede)
Assigned to: Kurt Riede (kriede)
Summary: Duplicate global variable declaration in component.xsl

Initial Comment:
With the schema of RuleML (http://www.ruleml.org) the 
following error occurs:

My build.xml looks as follows:

<project name="RuleML" default="xsddoc" basedir=".">
<taskdef name="xsddoc" 
classname="net.sf.xframe.xsddoc.Task" />
<target name="xsddoc">
<mkdir dir="rulemldoc"/>
<xsddoc out="rulemldoc" doctitle="RuleML documentation 
generated by xsddoc" 

verbose="true">
<fileset dir="C:\RuleML\0.86\xsd" defaultexcludes="yes">
<include name="**/*.xsd"/>
</fileset>
</xsddoc>
</target>
</project>


All of the files are located fine, but unfortunately I get 
errors:

***

Buildfile: build.xml

xsddoc:
[mkdir] Created dir: C:\RuleML\tools\apache-ant-1.6.1
\rulemldoc
[xsddoc] found schema bindatalog.xsd
[xsddoc] found schema datalog.xsd
[xsddoc] found schema equalog.xsd
[xsddoc] found schema hornlog.xsd
[xsddoc] found schema nafdatalog.xsd
[xsddoc] found schema nafnegdatalog.xsd
[xsddoc] found schema negdatalog.xsd
[xsddoc] found schema urcbindatagroundfact.xsd
[xsddoc] found schema urcbindatagroundlog.xsd
[xsddoc] found schema urcbindatalog.xsd
[xsddoc] found schema urcdatalog.xsd
[xsddoc] found schema urdatalog.xsd
[xsddoc] found schema urequalog.xsd
[xsddoc] found schema urhornlog.xsd
[xsddoc] error: 
resource:/net/sf/xframe/xsddoc/xslt/model.xsl:43:-1 
Duplicate
global variable declaration (see line 86 of 
resource:/net/sf/xframe/xsddoc/xslt
/component.xsl)

BUILD FAILED
C:\RuleML\tools\apache-ant-1.6.1\build.xml:5: 
net.sf.xframe.xsddoc.ProcessorExce
ption: Failed to compile stylesheet. 1 error detected.

Total time: 6 seconds

***

I tried commenting out the duplicate global variables in 
the XSL files (first one, then the other), and that 
resulted in a successful build, but the documentation 
that is then output is empty, only having "noNamespace".

Any ideas?

Dave

----------------------------------------------------------------------

>Comment By: Kurt Riede (kriede)
Date: 2004-09-20 22:09

Message:
Logged In: YES 
user_id=484961

This concrete problem seems to be closed now.
Also the circular loop is solved in CVS HEAD.
But anyway the current CVS HEAD of xsddoc still doesn't 
handle all type/group references in the model description as 
expected. We are currently investigating these issues.

Regards Kurt

----------------------------------------------------------------------

Comment By: Kurt Riede (kriede)
Date: 2004-09-04 00:27

Message:
Logged In: YES 
user_id=484961

Solution for the duplicate global variable declaration is 
available now in CVS HEAD.
Anyway, the ruleML schema do still not run properly due to a 
circular loop with redefined groups. We are currenty 
investigating this problem.

----------------------------------------------------------------------

Comment By: Kurt Riede (kriede)
Date: 2004-07-14 18:54

Message:
Logged In: YES 
user_id=484961

Hi Dave,

thanx for the problem report. There seem to be three 
problems:
1. Incompatibility of the xslt files with your version of Xalan 
(to be fixed in xslt; be carefull: your solution is incomplete)
2. bug in resolving schema locations in the mediator schema 
for multiple schema
3. The schema hornlog.xsd is not valid

For the problem: Could you please tell us which versions of 
Java and Xerces you are using? Just run the two following 
commands:

java -version
java org.apache.xalan.xslt.Process -V 

The second problem is already under investigation.
We downloaded the Schema from www.ruleml.org (in version 
0.86) and tried some fixes ehich improves the result. But 
finally we ran into a circular loop and found the third problem:
XMLSpy reports invalid redefinitions in hornlog.xsd: Circular 
groups are disallowed.

I have opened bug reports for the two problems of xsddoc. 
Please let's continue conversations there:

990990 Duplicate global variable declaration in component.xsl
http://sf.net/tracker/index.php?
func=detail&aid=990990&group_id=48863&atid=454391

989424 HTML comment in XML = bad HTML output
https://sf.net/tracker/index.php?
func=detail&aid=990990&group_id=48863&atid=454391

As soon as we have fixes for these problems, we will attach 
patches to the bug reports.

Regards
Kurt

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=990990&group_id=48863


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php