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

 


Help: OASIS Mailing Lists Help | MarkMail Help

s-ramp message

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


Subject: ordering of elements in our examples


In our xsds we use 'sequences', stricktly speaking this implies the order to how our elements appear. We don't seem to use this ordering in the XML fragments. Do we care to fix the element order in the examples?

--Kurt

for example look at the 'importedXsds' element in the fragments below

<s-ramp:artifact xsi:schemaLocation="http://s-ramp.org/xmlns/2010/s-ramp

http://s-ramp.org/2010/specification/schemas/xsdmodel.xsd"

xmlns:s-ramp="http://s-ramp.org/xmlns/2010/s-ramp"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<s-ramp:XsdDocument name=”accountingTypes.xsd”

description=”accountingTypes.xsd”

createdBy="Bellwood" version="1.0"

uuid="aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6a"

createdTimestamp="2009-05-26T13:13:55.013+02:00"

lastModifiedTimestamp="2009-06-26T13:13:55.013+02:00"

lastModifiedBy="Pospisil" contentEncoding="UTF-8"

contentType=“application/xml” contentSize="4096" >

<s-ramp:classifiedBy>

http://example.org/ontologies/accounting.owl/accounts

</s-ramp:classifiedBy>

<!-- Example of the “importedXsds” Derived relationship -->

<s-ramp:importedXsds>

<s-ramp:target xlink:href="" class="moz-txt-link-freetext" href="http://example.org/s-ramp/xsd/XsdDocument/">http://example.org/s-ramp/xsd/XsdDocument/

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b”>

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b

</s-ramp:target>

</s-ramp:importedXsds>

<!—

Example of a user created generic relationship called “similarXsds”

between this xsd artifact and two others with UUID values of “...a6b”

and “...a6c”), respectively:

-->

<s-ramp:relationship>

<s-ramp:relationshipType>similarXsds</s-ramp:relationshipType>

<s-ramp:relationshipTarget>

<s-ramp:target xlink:href="" class="moz-txt-link-freetext" href="http://example.org/s-ramp/xsd/XsdDocument/">http://example.org/s-ramp/xsd/XsdDocument/

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b”>

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b

</s-ramp:target>

</s-ramp:relationshipTarget>

<s-ramp:relationshipTarget>

<s-ramp:target xlink:href="" class="moz-txt-link-freetext" href="http://example.org/s-ramp/xsd/XsdDocument/">http://example.org/s-ramp/xsd/XsdDocument/

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6c”>

aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6c

</s-ramp:target>

</s-ramp:relationshipTarget>

</s-ramp:relationship>

<s-ramp:property>

<propertyName>myPropertyName</propertyName>

<propertyValue>myPropertyValue</propertyValue>

</s-ramp:property>

</s-ramp:XsdDocument>

</s-ramp:artifact>



should be

<artifact xsi:schemaLocation="http://s-ramp.org/xmlns/2010/s-ramp/xsdmodel.xsd"
                   xmlns:s-ramp="http://s-ramp.org/xmlns/2010/s-ramp"
                   xmlns:xlink="http://www.w3.org/1999/xlink"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <s-ramp:XsdDocument name="accountingTypes.xsd"
                        description="accountingTypes.xsd"
                        createdBy="Bellwood" version="1.0"
                        uuid="aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6a"
                        createdTimestamp="2009-05-26T13:13:55.013+02:00"
                        lastModifiedTimestamp="2009-06-26T13:13:55.013+02:00"
                        lastModifiedBy="Pospisil" contentEncoding="UTF-8"
                        contentType="application/xml" contentSize="4096" >
        <s-ramp:classifiedBy>http://example.org/ontologies/accounting.owl/accounts</s-ramp:classifiedBy>
        <s-ramp:relationship>
            <s-ramp:relationshipType>similarXsds</s-ramp:relationshipType>
            <s-ramp:relationshipTarget xlink:href="" class="moz-txt-link-rfc2396E" href="http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b">"http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b">aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b</s-ramp:relationshipTarget>
            <s-ramp:relationshipTarget xlink:href="" class="moz-txt-link-rfc2396E" href="http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6c">"http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6c">aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6c</s-ramp:relationshipTarget>
        </s-ramp:relationship>
        <s-ramp:property>
            <s-ramp:propertyName>myPropertyName</s-ramp:propertyName>
            <s-ramp:propertyValue>myPropertyValue</s-ramp:propertyValue>
        </s-ramp:property>
        <s-ramp:importedXsds xlink:href="" class="moz-txt-link-rfc2396E" href="http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b">"http://example.org/s-ramp/xsd/XsdDocument/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b">aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b</s-ramp:importedXsds>
    </s-ramp:XsdDocument>
</artifact>



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