[examplotron] Re: Choices and other markup

From: <martin.me.roberts@bt.com>
Date: Thu Apr 03 2003 - 09:04:07 UTC

I just realised I had not said how I would do choices in my last email.

        I feel that I would like to use an eg:choiceID attribute where
the ID is set to the same value for any items that are I the choice and
are at the same level in the tree.

        What do you think.

Martin Roberts
xml designer,
BTexact Technologies
e-mail: martin.me.roberts@bt.com
tel: +44(0) 1473 609785 clickdial
fax: +44(0) 1473 609834
pp 16 Floor 5, Orion Building, Adastral Park, Martlesham, Ipswich IP5
3RE, UK
        BTexact Technologies is a trademark of British
Telecommunications plc
        Registered office: 81 Newgate Street London EC1A 7AJ
        Registered in England no. 1800000
        This electronic message contains information from British
Telecommunications plc which may be privileged or confidential. The
information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this
information is prohibited. If you have received this electronic message
in error, please notify us by telephone or email (to the numbers or
address above) immediately.

-----Original Message-----
From: martin.me.roberts@bt.com [mailto:martin.me.roberts@bt.com]
Sent: 03 April 2003 09:33
To: examplotron@xmlschemata.org
Subject: [examplotron] Choices and other markup

Hi,
        I have been using the XSLT version of examplotron for some time
as I have been using subclassed schemas and examplotron has proved very
useful at making sure that subclasses exist before using a schema check.

        There are two things that I have done differently from the 0.4
version of the tool.

        1) I have marked up attributes using the following notation:
                <party eg:occursAttr=" PartyID[?] AgencyID[?]"
PartyID="1112" AgencyID="Supplier"/>

                This square bracket notation means that I have not
entered any elements into the Xpath which makes it easier to make sure
eg:assert work more directly.

        2) I have introduce namespacing that uses the same prefixes that
are in the example document. This is useful as any assert is using
expected namespaces.

        The other major plus is that we have actually used this version
of Examplotron in a delivered application that will be used by our
customers to validate test files. Which reminds me I changed the output
to be XML that can then be transformed for human or read by machines.

        As the validation is xsl it is very easy to get it put inline
with receiving and sending files.

        If any one is interested in this 0.41 version of the XSLT based
tool please feel happy to contact me.
Martin Roberts
Received on Thu Apr 3 11:04:25 2003

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:29:48 UTC