> -----Original Message-----
> From: Lawrence, Scott AVAYA (BL60:9D30)
> Sent: Thursday, February 18, 2010 2:41 PM
> To: M. Ranganathan
> Cc: Chu, Xingjun AVAYA (CAR:9D70); [email protected]
> Subject: Re: [sipX-dev] A proposal regarding model of gateway <->ITSP
> account in sipX
> 
> On Thu, 2010-02-18 at 14:22 -0500, M. Ranganathan wrote:
> >
> > <gateways>
> >     <gateway>
> >          <id>a</id>
> >     </gateway>
> >     <gateway>
> >          <id>b</id>
> >     </gateway>
> > </gateways>
> 
> This would be better XML design to make this:
> 
>         <gateways>
>             <gateway id='a'>
> 
>             </gateway>
>             <gateway id='b'>
> 
>             </gateway>
>         </gateways>
> 
> if you use an attribute, you can:
> 
>       * include the uniqueness constraint on id values in the schema
>         definition
>       * use xpath expressions to address a gateway definition
> 

Sorry for the flippancy here since I told range "we agree on". Just had
second thought, actually I kind of like 

<line-identifiers>
     <line-id> id1 </line-id>
     <line-id> id2 </line-id>
</line-identifiers>

Since it is just a reference list. And the format is simpler.

The following format is kind of like gateway definition here.

        <gateways>
            <gateway id='a'>

            </gateway>
            <gateway id='b'>

            </gateway>
        </gateways>

The uniqueness/xpath is not really used/matters here since it's just a
reference, and we won't put any more values here other than the id, the
xpath will be never used. 

Thanks
Jason


_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to