-
Notifications
You must be signed in to change notification settings - Fork 80
Description
A few questions/issue with this.
- In the interface, it says "Note: The attribute must already be defined in the DTD or in the associated schema before referring it here." The docs say "To ensure the validity of the document, the attribute must be already defined in the document DTD or schema before referring it here."
I'm not entirely sure what that means. My guess is that it means that Oxygen does not check to see if the attribute you define here actually occurs in your schema. It just inserts it. (It will, of course, report a validation error on the result.) If so, both the interface and the docs could make this much clearer by saying something like:
"Only define profiling attributes here that actually exist in your schema. This feature does not add profiling support to XML vocabularies that do not have it already."
(The second sentence is addressing what I'm guessing was the misunderstanding that led to these warnings being inserted in the first place.)
Of course, if this is not what it means, then it should say something else.
- A common language issue regarding "referring". Usage of these terms can be tricky in English, but in this case, the correct usage is "referring to". This, and saying "referred" where "referenced" would be the correct usage, are common issues in the docs.
- If my assumption about 1 is correct, then it seems like there is another restriction that should be mentioned here. This facility should only be used for languages where profiling attributes are allowed on every element. Oxygen will not check if the attribute is allowed on a particular element and only allow you to profile elements where it is allowed. (I assume this, since there is no way to restrict the attribute to a particular XPath.) Correct?
- What happens if the values of the profiling attribute are defined in the schema, or, in DITA's case, in the subject schema? Will Oxygen pick up those value automatically, or do you have to duplicate them here? Will it allow you to insert values defined here even if they are not defined in the schema?