X-Application Version: 3.1.2 Tamino Version : 3.1.1 Platform : Solaris, … WebContainer : Tomcat 4.0.2 JDK Version : 1.4
I got the exception of ApplicationException: 999: Application Error! Please contact the X-Application-Team. com.softwareag.xtools.xapplication.businessdocument.InvalidSchemaException schema is non-deterministic
the problem with your schema definition is, that the parser cannot decided for a document like yours:
whether
<Title></pre> or <pre class="ip-ubbcode-code-pre"><dc></pre> is the occurring element.<BR>In this sense it's not deterministic and thus rejected. For a more detailed discussion of this topic please refer to <A HREF="http://tamino.forums.softwareag.com/viewtopic.php?p=12586" TARGET=_blank>non deterministic Schema topic</A><BR><BR>I adapted your schema by introducing a new enclosing element called <pre class="ip-ubbcode-code-pre">dcs</pre>, which contains a occurrence of <pre class="ip-ubbcode-code-pre">dc
elements. I generated an application using the X-Application Generator and it worked.
I hope that helps you.
Please find attached the modified schema.
Thank you for your contribution.
Stefan Schwalm Software AG, Darmstadt dc2.tsd (11 KB)
I really don’t understand why my scheme non-deterministic. You just add a node to my scheme and make it deterministic. Why? Can I find more information from SoftwareAG?
As I wrote before it cannot be decided for a document like
T1 T2 C1
at the time T1 is read, whether T1 belongs to a occurrence or a occurrence.
Since one has always the freedom to define an enclosing element and giving it a name, this restriction shouldn’t cause too much trouble when designing a schema.