[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] ubl pricelist validation ?
Hi Ken, hmm.. I've tried following the links in the document but I seem to get lost. I could find lots of diagrams on the catalogue document and so forth but no actual examples. For example, I'm including a PreisShare xml document that contains a few items. I'm trying to determine what the equivilent UBL document would be. Hopefully I could just run a transform on one to end up with the other. Regards David G. Ken Holman wrote: > At 2007-02-02 11:19 +1100, David Lyon wrote: >> Currently, we have a significant number of Excel spreadsheets >> containing product information from various companies from countries >> making and selling computer equipment in Asia. Typically, it's >> HongKong, Taiwan, Korea and China. >> >> We are able to convert these spreadsheets into xml fairly easily and >> we would now like to produce an output module than can produce UBL2 >> price files. >> >> My question is can anybody help us with validating our documents >> against the UBL specification to ensure that they comply? > > To see how UBL documents are validated using the two-phase mechanism > documented in: > > http://docs.oasis-open.org/ubl/os-UBL-2.0/UBL-2.0.html > > ... read through section E.3 and then using a copy of the the > distribution go into your copy of the val/ directory: > > http://docs.oasis-open.org/ubl/os-UBL-2.0/val/ > > ... and run "test.bat" or "sh test.sh" to see how an instance of UBL > Order is validated with the two-phase validation. There is a shell > script named "validate.bat" or "validate.sh" that runs the two-phase > validation for a single file for a given document model. This is > illustrated in section E.2. > > The test scenario validates three files: one that is valid, another > that is not structurally valid, and a third that is structurally valid > but has value validation errors. > > The whole section E is written to guide people like you in > understanding how to ensure your instances conform to the UBL > structure and value constraints. > >> We would like to produce a sample run of about 20 or 30 files and >> have them validated. We're not UBL experts, we only have lots of data. > > We are hoping that the val/ directory illustrates to people who are > not UBL experts how to validate instances that they create. > > I invite you to try and use that directory with the your test UBL > files that you create from your spreadsheets, and would you please > feed back your experiences (pro or con) so that we can assess what we > might wish to include in the support file? > > Thanks for your input, and good luck in your work with UBL! > > . . . . . . . . . . . . . Ken > > > -- > World-wide corporate, govt. & user group XML, XSL and UBL training > RSS feeds: publicly-available developer resources and training > G. Ken Holman mailto:gkholman@CraneSoftwrights.com > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/u/ > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) > Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/u/bc > Legal business disclaimers: http://www.CraneSoftwrights.com/legal > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ubl-dev-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: ubl-dev-help@lists.oasis-open.org > >
<PriceList><Vendor_Information><PreisShare_ID>038454332</PreisShare_ID><Organisation_Name>Yada Computers</Organisation_Name><Address_Line_1>3a River Road</Address_Line_1><Address_Line_2/><Suburb_Town>Naremburn</Suburb_Town><State_Region>NSW</State_Region><ZIP_Postcode>2566</ZIP_Postcode><Country_Code>AU</Country_Code></Vendor_Information><Product_Information><Product_Group><Group_Description>Parts</Group_Description><Product_Items><Product><PLU>37380</PLU><Name>Net Switch 10/100 24P rt 19"</Name><Actual_Price>106.6</Actual_Price></Product><Product><PLU>GE00447</PLU><Name>Geh K Ext. LC-POWER EH-25MP Multimedia HDD Player 2,5"</Name><Actual_Price/></Product></Product_Items></Product_Group></Product_Information></PriceList>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]