[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Apply Default Attribute Values



Hi Rick...

You're right .. these "default" values that you can define in the EDD, are not as useful as one might hope. They aren't exported to XML and they don't seem to have much purpose. However, the FDK (and I believe the EDD itself) can read the default as a value. So a plugin or structured application may be set up to process all widget elements with the "enabled" attribute set to "on" .. if "on" is the "default", those elements would be processed if the "enabled" attribute has the explicit value of "on" or has no value (<no value>).

It would be nice if there was some read/write rule that allowed you to enable the exporting of "default" values, of some way to make them more real ..

Oh well.

...scott

Scott Prentice
Leximation, Inc.
www.leximation.com
+1.415.485.1892



Rick Quatro wrote:

Hi Scott,

I am not looking to change the attribute value from one thing to another. Here is the scenario: when you set a default value for attribute in the EDD, it will initially show in the structure view as italic. But if you double-click on the attribute, the attribute will show as <no value> in the Attribute window. And, from what I can tell, when you save the file as XML, these default attribute values don't export. You have to explicitly set the value in order for them to export. You can tell when an attribute value has been set, because they no longer display as italic in the structure view.

After experimenting, I can use FrameScript to explicitly set these default attribute values so that they export to XML.

But it does make me wonder: why have a "default" value for attributes when it doesn't seem to "register" unless you explicitly set it?

Rick Quatro
Carmen Publishing
585-659-8267
www.frameexpert.com

You can define a default value for an attribute, but as far as I know the process of importing an EDD won't change an attribute value from one thing to another. The "default" value is just the value of the attribute if it has no other value applied.

I guess the question is, in the statement .. "set all attributes to default values when the EDD is imported" .. does "default" refer to the FrameMaker concept of default (empty), or do you mean "some actual default value" ?

Unless I'm misunderstanding the original question, I think you'll have to go with the script, Rick.

...scott

Scott Prentice
Leximation, Inc.
www.leximation.com
+1.415.485.1892



** To unsubscribe, send a message to majordomo@xxxxxxxxx ** ** with "unsubscribe framers" (no quotes) in the body. **






** To unsubscribe, send a message to majordomo@xxxxxxxxx **
** with "unsubscribe framers" (no quotes) in the body.   **