Subject: | Pastor : Element 'CurrencyCodeGroup' found where unexpected! |
I don't know the underlying problem, but here's an example .xsd which
fails. The full specification is here:
http://www.opentravel.org/Specifications/Default.aspx
I attached OTA_VehResRQ.xsd.
Below, my program and results.
Thanks!
j
use XML::Pastor;
my $pastor = XML::Pastor->new();
$pastor->generate(
mode => 'offline',
style => 'multiple',
schema => '../OTA/OpenTravel2009A_XML/OTA_VehResRQ.xsd',
class_prefix => 'MyApp::Data::',
destination => '/home/jhannah/tmp/OTA_XML_Pastor/out/',
);
jhannah@dev:~/tmp/OTA_XML_Pastor> perl j.pl
Pastor : Element 'CurrencyCodeGroup' found where unexpected!
<attributeGroup name="AcceptablePaymentCardGroup" >
<annotation >
<documentation xml:lang="en" />
</annotation>
<attribute name="CardType" type="OTA_CodeType" use="optional" >
<annotation >
<documentation xml:lang="en" />
</annotation>
</attribute>
<attribute name="CardName" type="StringLength1to32" use="optional" >
<annotation >
<documentation xml:lang="en" />
</annotation>
</attribute>
<attribute name="UsagePercentage" type="Percentage" use="optional" >
<annotation >
<documentation xml:lang="en" />
</annotation>
</attribute>
<attribute name="UsageAmount" type="Money" use="optional" >
<annotation >
<documentation xml:lang="en" />
</annotation>
</attribute>
<attributeGroup ref="CurrencyCodeGroup" >
<annotation >
<documentation xml:lang="en" />
</annotation>
</attributeGroup>
</attributeGroup>
Subject: | OTA_VehResRQ.xsd |
Message body not shown because it is not plain text.