OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [ubl-dev] Ken's example (UBL 2.0 and Schema Extensibility)


A bit of detour... I didn't quite understand how parsing
the fragment at

                   <hello xmlns="">...</hello>

would get by without producing an error of invalid namespace value.

Unless the entire content within <LineItemExtension> was wrapped
within CDATA section, wouldn't <hello> need to conform to XML
spec and so end up as a parsed entity within processor memory
(instead of, say, pure textual segment)?

Anyone able to lend me some insight?  Thanks.



Best Regards,
Chin Chee-Kai
SoftML
Tel: +65-6820-2979
Fax: +65-6820-2979
Email: cheekai@SoftML.Net
http://SoftML.Net/




>>On 18/05/06, G. Ken Holman <gkholman@cranesoftwrights.com> wrote:
>>> At 2006-05-18 00:20 +0100, Fraser Goffin wrote:
>>>
>>> t:\fraser>type exaeroorder2.xml
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <Order xmlns="urn:oasis:names:draft:ubl:schema:xsd:Order-2"
>>>        xmlns:a="urn:x-aerospace:ubl:lineitem">
>>>   <OrderNumber>123</OrderNumber>
>>>   <LineItem>
>>>     <Description>747 Repair Kit</Description>
>>>     <PriceAmount>1200000.54</PriceAmount>
>>>     <LineItemExtension>
>>>       <a:LineItemDetail>
>>>         <a:Part>
>>>           <a:Description>Starboard wing</a:Description>
>>>           <a:Amount>600000.00</a:Amount>
>>>         </a:Part>
>>>         <a:Part>
>>>           <a:Description>Port wing</a:Description>
>>>           <a:Amount>600000.00</a:Amount>
>>>         </a:Part>
>>>         <a:Part>
>>>           <a:Description>Bolt</a:Description>
>>>           <a:Quantity>2</a:Quantity>
>>>           <a:Amount>.27</a:Amount>
>>>         </a:Part>
>>>       </a:LineItemDetail>
>>>     </LineItemExtension>
>>>   </LineItem>
>>>   <LineItem>
>>>     <Description>DC3 Repair Kit</Description>
>>>     <PriceAmount>37.25</PriceAmount>
>>>     <LineItemExtension>
>>>       <a:LineItemDetail>
>>>         <a:Part>
>>>           <a:Description>Rubber band</a:Description>
>>>           <a:Amount>37.25</a:Amount>
>>>         </a:Part>
>>>       </a:LineItemDetail>
>>>       <hello xmlns="">
>>>         <world/>
>>>       </hello>
>>>     </LineItemExtension>
>>>   </LineItem>
>>>   <TotalAmount>1200037.79</TotalAmount>
>>> </Order>
>>> t:\fraser>xjparse -S exublorder2.xsd exaeroorder2.xml
>>> No validation errors.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]