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: Validating UBL examples with xmllint


On Fri, May 21, 2004 at 06:00:10AM +0300, G. Ken Holman wrote:
> I do not mind at all, Pedro, as it is my profession to teach and consult in 
> XML to worldwide clients, and indeed you are now asking these questions in 
> the context of UBL I'm hoping the others on UBL-Dev will not find this out 
> of scope.


    Thanks :)

> 
> >    I had my ubl Orders.xml beginning with <Order>.
> >
> >    In order to be precise, I changed the XML so that suns msv validates 
> >    the
> >file.
> 
> Why did MSV not validate the file before?  Oh, had you omitted the 
> namespace declarations before?


    Exactly :)


> 
> Do the following using any namespace you wish to use:
> 
>    <xsl:stylesheet ....
>         xmlns:pedro="urn:oasis:names:tc:ubl:Order:1:0}Order"
>         xmlns:ken="urn:oasis:names:tc:ubl:CommonBasicComponents:1:0">
> 
>      <xsl:template match="pedro:Order">
>        .....
> 
>      <xsl:template match="pedro:Order/ken:IssueDate">
>        .....
> 
> Note that as editor of the UBL FPSC Formatting Specifications, I made sure 

    This is exactly how I solved the problem! Used order instead of pedro,
however :)


> why I'm allowed to use our names as prefixes), but as a *convention* the 
> entire UBL TC adopted the following set of namespace prefixes to use for 
> documentary purposes only:
> 
>  xmlns:cac="urn:oasis:names:tc:ubl:CommonAggregateComponents:1:0
>  xmlns:cbc="urn:oasis:names:tc:ubl:CommonBasicComponents:1:0
>  xmlns:ccts="urn:oasis:names:tc:ubl:CoreComponentParameters:1:0
>  xmlns:rt="urn:oasis:names:tc:ubl:RepresentationTerms:1:0"
>  xmlns:da="urn:oasis:names:tc:ubl:DespatchAdvice:1:0"
>  xmlns:in="urn:oasis:names:tc:ubl:Invoice:1:0"
>  xmlns:po="urn:oasis:names:tc:ubl:Order:1:0"
>  xmlns:xo="urn:oasis:names:tc:ubl:OrderCancellation:1:0"
>  xmlns:co="urn:oasis:names:tc:ubl:OrderChange:1:0"
>  xmlns:ro="urn:oasis:names:tc:ubl:OrderResponse:1:0"
>  xmlns:rs="urn:oasis:names:tc:ubl:OrderResponseSimple:1:0"
>  xmlns:ra="urn:oasis:names:tc:ubl:ReceiptAdvice:1:0"


    Nice! I will switch to this convention

> 
> I hope this helps.

    Indeed, indeed. Thanks again



-- 
Pedro Miguel G. Alves       pedro.alves@compta.pt
COMPTA - Parceria e Tecnologia      www.compta.pt
Tel:   +351 21 413 46 00  Av. José Gomes Ferreira
Fax:   +351 21 413 46 09     nº 13 1495-139 ALGÉS


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