RE: xs:Unique was Advanced patterns for consideration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: xs:Unique was Advanced patterns for consideration

paul.downey

any reason why these are two separate patterns?


-----Original Message-----
From: [hidden email] on behalf of [hidden email]
Sent: Thu 12/21/2006 11:08 AM
To: [hidden email]
Cc: Calladine,J,Jon,XSE6 R
Subject: Advanced patterns for consideration
 
As agreed on the call this week we will not be adding new issues for each advanced pattern but recording them on the list and cracking through them in plenary at the next f2f in Sophia Antipolis in February.

   pattern xml:id="UniqueField"
      .//xs:element/xs:unique/xs:field[@xpath]/(.,..,@xpath)
   
   
   pattern xml:id="UniqueSelector"
      .//xs:element/xs:unique/xs:selector[@xpath]/(.,..,@xpath)

        <element name="TopicSpace" type="wstop:TopicSpaceType">
                <unique name="rootTopicUniqueness">
                        <selector xpath="wstop:Topic"/>
                        <field xpath="@name"/>
                </unique>
        </element>

Jon Calladine
Matrix Engineering
OneIT Platform Design and Build
BT Exact
UK: 01732 475445 Int: +44 (1732) 475445
MeetMe 0870 241 2994. Passcode: 6611646

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.
Activity and use of the British Telecommunications plc E-mail system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes.



Reply | Threaded
Open this post in threaded view
|

RE: xs:Unique was Advanced patterns for consideration

jon.calladine

 
just doing a thorough job .....

could equally go with something like:

pattern xml:id="UniqueFieldOrSelector"

//xsd:element/xsd:unique[xsd:selector[xpath] or
xsd:field[@xpath]]/(.,xsd:selector,xsd:selector/@xpath,xsd:field,xsd:fie
ld/@xpath)

although not sure this is the most elegant way of collecting the node
set?

JonC

-----Original Message-----
From: Downey,P,Paul,XSL1 R
Sent: 21 December 2006 12:45
To: Calladine,J,Jon,XSE6 R; [hidden email]
Cc: Calladine,J,Jon,XSE6 R
Subject: RE: xs:Unique was Advanced patterns for consideration

any reason why these are two separate patterns?


-----Original Message-----
From: [hidden email] on behalf of
[hidden email]
Sent: Thu 12/21/2006 11:08 AM
To: [hidden email]
Cc: Calladine,J,Jon,XSE6 R
Subject: Advanced patterns for consideration
 
As agreed on the call this week we will not be adding new issues for
each advanced pattern but recording them on the list and cracking
through them in plenary at the next f2f in Sophia Antipolis in February.

   pattern xml:id="UniqueField"
      .//xs:element/xs:unique/xs:field[@xpath]/(.,..,@xpath)
   
   
   pattern xml:id="UniqueSelector"
      .//xs:element/xs:unique/xs:selector[@xpath]/(.,..,@xpath)

        <element name="TopicSpace" type="wstop:TopicSpaceType">
                <unique name="rootTopicUniqueness">
                        <selector xpath="wstop:Topic"/>
                        <field xpath="@name"/>
                </unique>
        </element>

Jon Calladine
Matrix Engineering
OneIT Platform Design and Build
BT Exact
UK: 01732 475445 Int: +44 (1732) 475445 MeetMe 0870 241 2994. Passcode:
6611646

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.
Activity and use of the British Telecommunications plc E-mail system is
monitored to secure its effective operation and for other lawful
business purposes. Communications using this system will also be
monitored and may be recorded to secure effective operation and for
other lawful business purposes.