[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] ubl pricelist validation ?
Hi David Just catching up on my emails after the weekend. I managed to create a nice subset for the Catalogue but it might be too close to the requirements for just price lists to publish it as a general catalogue subset. It worked very nicely though given your PreisShare xml file format, just a few things added to the latter to get nearly full interoperability (just need to revisit the way you've done those groupings by product type and how that fits with UBL). I sent it offline. However, I'd suggest keeping your own xml format with just a few small changes (just doc ID and date and a base quantity to go accompany the price). The reason is UBL doesn't fit all software requirements such as where maximum single namespaces are required in schema validation in some products apparently. Here your own 'schema' (not yet produced I take it) would be very useful, with xslt conversions to and from UBL. All very satisfying indeed. I guess for me this exercise added good credibility to the UBL catalogue document (once it had been subsetted). I'd recommend a CAM template to defined the subset. I used XSD which doesn't really suit a subset with no change of namespace (harping on that old string again, sorry). It does the job though since it allows generation of smaples, etc. The UBL 'xpath' file format does a similar thing to CAM but CAM has the advantage of being nearer standardisation and having a nice CAM Editor/validator (thanks to David Webber and Martin Roberts). CAM is a nice intuitively designed spec with a combination of example and xpath-based assertions. I find it nicely combines the strengths of both Schematron (which doesn't seem quite as ideal) and examples or even examplotron or Ken and I's XPaths (all quite similar). I would have thought this combination would be the ideal and time will tell. In the meantime the CAM Editor (on sourceForge - see http://jcam.org.uk ) allows actual use of CAM right now (not quite 1.0 but it does a good job as it is now, I think). All the best Steve >>> David Lyon <david.lyon@preisshare.net> 04/02/07 22:54:58 >>> Stephen Green wrote: > 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 ok. So where would I get such a file from? > - 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. > How much does a sample UBL catalogue cost? and where do I have to purchase it from? --------------------------------------------------------------------- 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]