Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 22nd, 2006, 01:15 PM
steve_marjoribanks
Guest
 
Posts: n/a
Default Schema attibute/complexType problem

I have a section of a schema below and I've got a problem I can'y
figure out. I'm not having a good day though so it's probably just me
being stupid!! ;-)
I need the shearStrength element to have an xink:href attribute as
shown below but I also need it to have something like:

<extension base="float">
<attributeGroup ref="ags:UoMGroup" />
</extension>

ie. i need to restrict the value of shearStrength to a float value and
associate it with an attributeGroup I already have, as well as
including the xlink:href attribute.


<element name="layerMaterialParameters">
<complexType>
<sequence>
<element name="shearStrength">
<complexType>
<attribute ref="xlink:href" use="required"/>
</complexType>
</element>
<!-- other elements here -->
</sequence>
</complexType>
</element>



Any help would be much appreciated!

Steve

  #2  
Old February 22nd, 2006, 03:15 PM
monique
Guest
 
Posts: n/a
Default Re: Schema attibute/complexType problem

Could it be this ?

<xs:element name="shearStrength">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:float">
<xs:attribute ref="xlink:href" use="required"/>
<xs:attributeGroup ref="ags:UoMGroup"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>

I'm still learnig about namespaces so I tested it without namespaces.
it's not enough, I now :-)

Cheers

Monique

  #3  
Old February 22nd, 2006, 03:55 PM
steve_marjoribanks
Guest
 
Posts: n/a
Default Re: Schema attibute/complexType problem

Yeah, after messing around in XMLSpy, I came up with that solution too.
:-)

But somehow it doesn't seem that logical though (assuming it's right!)
having both the attribut and the attribute group which are unrelated
within the same 'float' extension?!
Ah well!

Steve

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles