Search the web
Sign In
New User? Sign Up
dita-users · DITA users group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Specializing Elements from Base Elements   Message List  
Reply | Forward Message #4950 of 16193 |
Re: Specializing Elements from Base Elements

--- In dita-users@yahoogroups.com, "adam.solomon" <adam.solomon@...>
wrote:
> [...] As an example, we wish to derive from
> the base element <usercontrol>. We need to give the same element name
> to the derived element, in this case <usercontrol>.

Sorry, no can do. When you specialize, you have to choose an element
name that isn't already used. (Using DTDs, at least, which is the
normative DITA implementation. Using XML Schemas you might be able to
do more, but then it's not DITA any more.)

Which presents one solution that you may or may not like: ditch the
supplied software domain and clone it with the changes you need for
<uicontrol> (I assume that you are talking about <uicontrol>, because
out-of-the-box DITA doesn't have a <usercontrol>).

Or, depending on your authoring environment, you can have it fake a
default value for the attribute by inserting your desired value every
time the element is inserted by the user.

I'm sure that years from now DITA 2.0 will have support for XML
namespaces. That might have some impact on all of this, but not in
any timeframe that's immediately useful for you.





Sun Feb 18, 2007 11:03 pm

deborah_arie...
Offline Offline
Send Email Send Email

Forward
Message #4950 of 16193 |
Expand Messages Author Sort by Date

We require specialized elements derived from base elements in order to alter default attribute values. As an example, we wish to derive from the base element...
adam.solomon
Offline Send Email
Feb 18, 2007
9:16 pm

... Sorry, no can do. When you specialize, you have to choose an element name that isn't already used. (Using DTDs, at least, which is the normative DITA...
Deborah Pickett
deborah_arie...
Offline Send Email
Feb 18, 2007
11:03 pm

... name ... element ... able to ... because ... every ... Thank you for the response. We, in fact, are going to try to clone the necessary domains and remove...
adam.solomon
Offline Send Email
Feb 19, 2007
4:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help