[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] ubl pricelist validation ?
Hi Stephen, I looked through those files and couldn't find any files to process or build the ubl catalogue document that you mentioned. is there a particular place that I should be looking at? Regards David Stephen Green wrote: > What's pretty cool though is you can take the final instance > and use the CAM Editor (see http://jcam.org.uk/ ) with it > as a starting point to create a CAM template against which > to validate instances > > see also examples of resulting CAM files (albeit illustrative > only) in our freeb-ubl package > > http://xml.coverpages.org/freeb-ubl-Announce.html > > downloadable at > http://downloads.sourceforge.net/freeb-ubl/freeb-ubl-kit-v1-0.zip > (see 'CAM/' directory) > > Then you can send the CAM template to price list producers > willing to use UBL and they can use it to prevalidate test > instances during development stages (and the might try > using jCAM if they have java and want an API). They can > just use the CAM Editor to look at the subset and to run > validations of instances against the template. They can > even change the template and use it to negotiate such > changes with you (so they could have templates which are > compatible with your own or not as the case may be and > use contexts to manage them all, as could you). > > To me this is the coolest thing I've ever seen in e-business !!! > > And David RR Webber isn't even paying me to say that :-) > > All the best > > Steve > > >>>> "Stephen Green" <stephen.green@bristol.gov.uk> 02/02/07 11:33:05 >>> >>>> > Hi David > > What I would do would be to use something like Stylus Studio and > load in your xml on the left, then get something like XML Spy and > create a sample instance from the UBL catalogue price list (or > equivalent) and load that in to the mapper on the right - then join > tag to tag as it were, then run the transformation. Quite simple > if you have such software. Not so simple with spreadsheets but > possible - you could just take the UBL catalogue price list > spreadsheet and cut out all but the UBL Name column (you might have > to copy and paste that column as strings if there are still formulas > in it, I can't remember, to avoid the formulas breaking and losing the > data) and add a new column into which you put your own element > names from your own xml. Then it gets a bit more onerous when > you want to create the instance though, hence my preference for > the specialist software. Unfortunately the above doesn't seem to > come free to get this functionaility. > > All the best > > Steve > > >>>> David Lyon <david.lyon@preisshare.net> 02/02/07 02:30:05 >>> >>>> > 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 >> >> >> > > ______________________________________________________________________ > Please note the new simpler name for our website: http://www.bristol.gov.uk > > Our email addresses have also changed - visit http://www.bristol.gov.uk/bigchange for further details. > > Sign-up for our email bulletin giving news, have-your-say and event information at: http://www.bristol.gov.uk/newsdirect > > > ______________________________________________________________________ > Please note the new simpler name for our website: http://www.bristol.gov.uk > > Our email addresses have also changed - visit http://www.bristol.gov.uk/bigchange for further details. > > Sign-up for our email bulletin giving news, have-your-say and event information at: http://www.bristol.gov.uk/newsdirect > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ubl-dev-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: ubl-dev-help@lists.oasis-open.orgpcification to ensure that they comply? > > ______________________________________________________________________ > Please note the new simpler name for our website: http://www.bristol.gov.uk > > Our email addresses have also changed - visit http://www.bristol.gov.uk/bigchange for further details. > > Sign-up for our email bulletin giving news, have-your-say and event information at: http://www.bristol.gov.uk/newsdirect > > > > ______________________________________________________________________ > Please note the new simpler name for our website: http://www.bristol.gov.uk > > Our email addresses have also changed - visit http://www.bristol.gov.uk/bigchange for further details. > > Sign-up for our email bulletin giving news, have-your-say and event information at: http://www.bristol.gov.uk/newsdirect > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ubl-dev-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: ubl-dev-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]