Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difficulty setting up an enumeration



Also useful is xmllint(1), which can check your sdef against the DTD. It won't find everything, but it will find structural errors such as putting an <enumeration> inside a <class>.

	% xmllint --valid --noout my.sdef


--Chris Nebel AppleScript Engineering

On Nov 15, 2007, at 6:18 AM, Christiaan Hofman wrote:

man sdef

Christiaan

On 15 Nov 2007, at 2:43 PM, Paul Bruneau wrote:

On Nov 14, 2007, at 9:25 PM, Philip Aker wrote:

Hi Paul,

I think your sdef portion should look a little closer the following:

<suite name="Shipping Orders" code="Ship" description="Shipping order classes">
<enumeration name="shipping states" code="SHPS">
<enumerator name="on time" code="ONTM" description="On time."/>
<enumerator name="almost late" code="ALLT" description="Almost late."/>
<enumerator name="late" code="LATE" description="Late."/>
<enumerator name="on time promised" code="OTPR" description="On time (promised)."/>
<enumerator name="late promised" code="LTPR" description="Late Promised."/>
</enumeration>
<class name="product order" code="Prod" description="A product order.">
<cocoa name="ProductOrder"/>
<property name="shipping status" code="STAT" type="shipping states" description="The shipping status of an order.">
<cocoa key="shippingStatus"/>
</property>
</class>
</suite>

Dear Philip-

Moving my enumeration out of my class tag and into the suite was the key! Thank you so much, I am in your debt! Is it documented anywhere that specifies where in the sdef such things are allowed?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden
References: 
 >Difficulty setting up an enumeration (From: Paul Bruneau <email@hidden>)
 >Re: Difficulty setting up an enumeration (From: Philip Aker <email@hidden>)
 >Re: Difficulty setting up an enumeration (From: Paul Bruneau <email@hidden>)
 >Re: Difficulty setting up an enumeration (From: Christiaan Hofman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.