[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] A practical question about XML Schema
Title: Message Good morning all,
I'm writing several
schemas for a project I'm working on. I've done the work once and it works fine.
Now I'm trying to do a better job of it. Since I'm using essentially the
same constructs in many cases across a number of different document types, I
want to use a common library.
I've run into a
snag, probably caused by my "just winging it".
I'm using XLink as
the the basis for my schemas which means that I have a number of arcs and
locators around. They can easily use the following types:
<xsd:complexType
name="locatortype">
<xsd:attribute ref="xlink:type" use="optional" fixed="locator"/> <xsd:attribute ref="xlink:href" use="required"/> <xsd:attribute ref="xlink:role" use="required"/> <xsd:attribute ref="xlink:label" use="required"/> <xsd:attribute ref="xlink:title"/> <xsd:attribute ref="xml:lang"/> </xsd:complexType> <xsd:complexType> <xsd:attribute ref="xlink:type" use="optional" fixed="arc" /> <xsd:attribute ref="xlink:arcrole" use="required"/> <xsd:attribute ref="xlink:to" use="optional"/> <xsd:attribute ref="xlink:from" use="optional"/> <xsd:attribute ref="xlink:title"/> </xsd:complexType> What I want to be
able to do is say that the <content> element uses the locatortype and has
a fixed role of http://www.foo.com/bar. The
<use> element is uses the arctype and its to attribute is required, its
from is forbidden and the arcrole can be any one of these X things.
I can do all this in
a one off sense but it seems to me that I shouldn't need to. One of the things
that happened is that we decided to add an attribute to all the nodes doing arc
type stuff. Now I have to go edit all the different instances. What I want to do
is edit one.
Any thoughts on how
to do this?
H. Adam van den Hoven Web
Developer Credit Union
Central of BC p 604
7306380 e
avandenhoven@c...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|