Re: Difficulty setting up an enumeration
Subject : Re: Difficulty setting up an enumeration
From: Christopher Nebel <email@hidden >
Date: Thu, 15 Nov 2007 10:18:03 -0800
Delivered-to: email@hidden
Delivered-to: email@hidden
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
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.