Does not work with this Scheme

417 views
Skip to first unread message

Gerd Katzenbeisser

unread,
Aug 21, 2013, 3:12:48 PM8/21/13
to legkoxml...@googlegroups.com
I tried to generate classes from this Scheme definition:


I encountered several problems with the generated php files.

For example the legko.php created a file with the extension .php but No name. 

Another example is the generated Date class:

<?php
namespace at\stuzza\www\namespaces\eps\epi\_2011\_11;

/**
 * @xmlType xsd:date
 * @xmlName Date
 * @var at\stuzza\www\namespaces\eps\epi\_2011\_11\Date
 * @xmlDefinition The date on which the ePI was created, or was made available to the ordering customer, by or on behalf of the beneficiary
 */
class Date
extends xsd:date
{



} // end class Date

This yields a syntax error when loading the file.

greets
Gerd

den...@eye-tool.de

unread,
Mar 24, 2014, 6:38:46 AM3/24/14
to legkoxml...@googlegroups.com
Hi there,

I encountered similar problems with this xsd: http://pastebin.com/ZU8474g3

xsdtophp also generates a .php file with no name and the extended classes are wrong in some cases. For example:

<?php

use Account;
/**
 * @xmlNamespace 
 * @xmlType Account
 * @xmlName Item
 * @var Item
 */
class Item
extends Account\Account
{
...


or


<?php

use Lens;
/**
 * @xmlNamespace 
 * @xmlType Lens
 * @xmlName Pair
 * @var Pair
 */
class Pair
extends Lens\Lens
{



Before i start to fix these issues, did you already do that?

Regards,
Dennis
Reply all
Reply to author
Forward
0 new messages