xml schema question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > xml schema question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    xml schema question  
Tim B


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-18-04 07:00 PM

I have the following type in use in a schema I've developed.

<xs:complexType name="Numeric"><xs:simpleContent><xs:extension base="xs:nonN
egativeInteger"><xs:attribute name="Precision" type="xs:unsignedShort" use="
required" /></xs:extension></xs:simpleContent></xs:complexType>

I would also like to apply a restriction on the number of digits allowed. I 
can see how to do this in a simple example, but also being able to keep the 
precision attribute within the type has me baffled.  Any ideas ?

Tim







[ Post a follow-up to this message ]



    RE: xml schema question  
Everett Yang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-04 02:23 AM

I will look into this and get back to you soon.

Thanks.

Sincerely,


Everett Yang
DSI - Microsoft BizTalk Server

This posting is provided “AS IS” with no warranties, and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn






[ Post a follow-up to this message ]



    RE: xml schema question  
Everett Yang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-31-04 10:39 PM

Hi Tim,

Sorry for the delay.

Let me make sure I understand the issue.   What does your schema look like
currently?  Please attach an example.  What type would you like Precision
to be?

Sincerely,


Everett Yang
DSI - Microsoft BizTalk Server

This posting is provided “AS IS” with no warranties, and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn






[ Post a follow-up to this message ]



    RE: xml schema question  
Tim B


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-04 03:50 PM

Everett,

I solved this issue by creating a simpletype that has the restrictions I wan
ted, then extending that in a complex type which adds the attribute I wanted
.

Thanks
Tim

<xs:simpleType name="NumericSimple"><xs:restriction base="xs:nonNegativeInte
ger"><xs:minInclusive value="1" /><xs:totalDigits value="5" /></xs:restricti
on></xs:simpleType><xs:complexType name="Numeric"><xs:simpleContent><xs:exte
nsion base="NumericSimple">
<xs:attribute name="Precision" type="xs:unsignedShort" use="required" /></xs
:extension></xs:simpleContent></xs:complexType>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:10 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register