Re: Apply Default Attribute Values

2005-12-19 Thread Shlomo Perets
A quick note related to previous posts in this thread: EDDs support the 
specification of a default value for attributes declared as optional, but 
not for attributes declared as required.



Shlomo Perets

MicroType, http://www.microtype.com * ToolbarPlus Express for FrameMaker
FrameMaker/Acrobat training  consulting * FrameMaker-to-Acrobat 
TimeSavers/Assistants

Template Design, Single Sourcing, FM-to-PDF  Technical Indexing seminars



___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]

or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


Re: Apply Default Attribute Values

2005-12-19 Thread Lynne A. Price

At 01:25 AM 12/19/2005, Shlomo Perets wrote:
A quick note related to previous posts in this thread: EDDs support the 
specification of a default value for attributes declared as optional, but 
not for attributes declared as required.


Shlomo,
  Of course--having a default contradicts requiring a value to be specified!

  I don't know if my previous message on this thread made it through, but 
FM's notion of attribute default values came directly from SGML/XML.

--Lynne


Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development, 
and training

[EMAIL PROTECTED]http://www.txstruct.com
voice/fax: (510) 583-1505  cell phone: (510) 421-2284 



___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]

or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


Apply Default Attribute Values

2005-12-19 Thread Shlomo Perets
A quick note related to previous posts in this thread: EDDs support the 
specification of a default value for attributes declared as optional, but 
not for attributes declared as required.


Shlomo Perets

MicroType, http://www.microtype.com * ToolbarPlus Express for FrameMaker
FrameMaker/Acrobat training & consulting * FrameMaker-to-Acrobat 
TimeSavers/Assistants
Template Design, Single Sourcing, FM-to-PDF & Technical Indexing seminars






Apply Default Attribute Values

2005-12-19 Thread Daniel Emory
--- "Lynne A. Price"  wrote:
> Shlomo,
>Of course--having a default contradicts requiring
> a value to be specified!
=
I stated:
"If such an attribute is declared to be "REQUIRED",
either the EDD, the DTD, or both MAY specify a default
value (i.e, one of the specified values in the
name-token group."

What I was attempting to say (and not very well) was
the case where the DTD specifies an atttribute to be
REQUIRED, but the EDD specifies it as optional so that
a default value can be specified, which I suspect may
be what the originator of this thread was dealing
with. Clearly, that default value would not be
exported by FrameMaker, and thus an error would occur.

If the attribute is specified as OPTIONAL in both the
EDD and the DTD, and both the EDD and the DTD specify
a default value, that value should not be exported,
because the DTD should determine the default value.



Re: Apply Default Attribute Values

2005-12-17 Thread Daniel Emory
We're mainly talking, I presume, about Choice-type
attributes (Name Token Groups in DTD parlance).

If such an attribute is declared to be REQUIRED,
either the EDD, the DTD, or both MAY specify a default
value (i.e, one of the specified values in the
name-token group), in which case the absence of an
actual value is interpreted by both the EDD and the
DTD to mean the EDD/DTD-specified default value. In
this case, it would be WRONG fo export the default
value from FrameMaker, because different versions of
the same DTD could conceivably specify different
default values for the same attribute. Note also that,
in this case, if no default value is specified for a
REQUIRED attribute, an error will be reported during
validation or export.

The other case is that the attribute is NOT specified
in the DTD as REQUIRED, and the DTD may or may not
specify a default value. In that case, any default
value specified in the EDD for such an attribute
should NEVER be exported, because the absence of a
value in that situation should dictate what takes
place during XML/SGML processing of a FrameMaker
document instance. That is, the XML/SGML side of the
processing equation should determine what happens when
such an attribute has no value.


 
--- Rick Quatro [EMAIL PROTECTED] wrote:
 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
 [EMAIL PROTECTED] **
 ** with unsubscribe framers (no quotes) in the
 body.   **
 


Dan Emory  Associates
FrameMaker/FrameMaker+SGML Document Design  Database Publishing
DW Emory [EMAIL PROTECTED]
___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


RE: Apply Default Attribute Values

2005-12-16 Thread Spreadbury, David
 Rick,
I thought you could do this in the EDD, and you can, but it might depend
on the type of attribute. Search the Structure_Dev_Guide for default
attribute. I only got seven hits. Most of the hits are concerned with
the DTD, but there is a comment that keeps popping up In FrameMaker, a
default attribute value can only be specified in the EDD,... (on page
242, last line). Then there is a reference to page 176, where there is a
discussion on Default value. The discussion leads me to think graphics,
but in other hits, with the same comment, there is an example of a
labeled list where a default is applied (see page 229 in Translating
attributes).

So my gut feel is Yes you can define default attributes in the EDD, in
fact it is the only way you can.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
m] On Behalf Of Rick Quatro
Sent: Friday, December 16, 2005 7:07 AM
To: framers@frameusers.com; [EMAIL PROTECTED]
Subject: Apply Default Attribute Values

Hello Framers,

I have a client that wants to know if it is possible to set all
attributes to default values when the EDD is imported. I suspect that
the answer is no, but I am pretty sure that it can be done with a
FrameScript script. 
However, I don't want to propose a script if it can be done without one.

Thanks in advance.

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

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs

___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


RE: Apply Default Attribute Values

2005-12-16 Thread Spreadbury, David
Rick,
I thought you could do this in the EDD, and you can, but it might depend
on the type of attribute. Search the Structure_Dev_Guide for default
attribute. I only got seven hits. Most of the hits are concerned with
the DTD, but there is a comment that keeps popping up In FrameMaker, a
default attribute value can only be specified in the EDD,... (on page
242, last line). Then there is a reference to page 176, where there is a
discussion on Default value. The discussion leads me to think graphics,
but in other hits, with the same comment, there is an example of a
labeled list where a default is applied (see page 229 in Translating
attributes). 

So my gut feel is Yes you can define default attributes in the EDD, in
fact it is the only way you can.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
m] On Behalf Of Rick Quatro
Sent: Friday, December 16, 2005 7:07 AM
To: framers@frameusers.com; [EMAIL PROTECTED]
Subject: Apply Default Attribute Values

Hello Framers,

I have a client that wants to know if it is possible to set all
attributes to default values when the EDD is imported. I suspect that
the answer is no, but I am pretty sure that it can be done with a
FrameScript script. 
However, I don't want to propose a script if it can be done without one.

Thanks in advance.

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

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs

___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


Re: Apply Default Attribute Values

2005-12-16 Thread Scott Prentice
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



Spreadbury, David wrote:


Rick,
I thought you could do this in the EDD, and you can, but it might depend
on the type of attribute. Search the Structure_Dev_Guide for default
attribute. I only got seven hits. Most of the hits are concerned with
the DTD, but there is a comment that keeps popping up In FrameMaker, a
default attribute value can only be specified in the EDD,... (on page
242, last line). Then there is a reference to page 176, where there is a
discussion on Default value. The discussion leads me to think graphics,
but in other hits, with the same comment, there is an example of a
labeled list where a default is applied (see page 229 in Translating
attributes).

So my gut feel is Yes you can define default attributes in the EDD, in
fact it is the only way you can.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
m] On Behalf Of Rick Quatro
Sent: Friday, December 16, 2005 7:07 AM
To: framers@frameusers.com; [EMAIL PROTECTED]
Subject: Apply Default Attribute Values

Hello Framers,

I have a client that wants to know if it is possible to set all
attributes to default values when the EDD is imported. I suspect that
the answer is no, but I am pretty sure that it can be done with a
FrameScript script. 
However, I don't want to propose a script if it can be done without one.


Thanks in advance.

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

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


 



___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]

or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


Re: Apply Default Attribute Values

2005-12-16 Thread Scott Prentice

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 [EMAIL PROTECTED] **
** with unsubscribe framers (no quotes) in the body.   **






___


You are currently subscribed to Framers as [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]

or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


Apply Default Attribute Values

2005-12-16 Thread Rick Quatro
Hello Framers,

I have a client that wants to know if it is possible to "set all attributes 
to default values when the EDD is imported". I suspect that the answer is 
no, but I am pretty sure that it can be done with a FrameScript script. 
However, I don't want to propose a script if it can be done without one. 
Thanks in advance.

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




Apply Default Attribute Values

2005-12-16 Thread Spreadbury, David
 Rick,
I thought you could do this in the EDD, and you can, but it might depend
on the type of attribute. Search the Structure_Dev_Guide for default
attribute. I only got seven hits. Most of the hits are concerned with
the DTD, but there is a comment that keeps popping up "In FrameMaker, a
default attribute value can only be specified in the EDD,..." (on page
242, last line). Then there is a reference to page 176, where there is a
discussion on Default value. The discussion leads me to think graphics,
but in other hits, with the same comment, there is an example of a
labeled list where a default is applied (see page 229 in Translating
attributes).

So my gut feel is Yes you can define default attributes in the EDD, in
fact it is the only way you can.

-Original Message-
From: framers-bounces+david.spreadbury=tellabs@lists.frameusers.com
[mailto:framers-bounces+david.spreadbury=tellabs.com at lists.frameusers.co
m] On Behalf Of Rick Quatro
Sent: Friday, December 16, 2005 7:07 AM
To: framers at frameusers.com; framers at omsys.com
Subject: Apply Default Attribute Values

Hello Framers,

I have a client that wants to know if it is possible to "set all
attributes to default values when the EDD is imported". I suspect that
the answer is no, but I am pretty sure that it can be done with a
FrameScript script. 
However, I don't want to propose a script if it can be done without one.

Thanks in advance.

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

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs




Apply Default Attribute Values

2005-12-16 Thread Spreadbury, David
Rick,
I thought you could do this in the EDD, and you can, but it might depend
on the type of attribute. Search the Structure_Dev_Guide for default
attribute. I only got seven hits. Most of the hits are concerned with
the DTD, but there is a comment that keeps popping up "In FrameMaker, a
default attribute value can only be specified in the EDD,..." (on page
242, last line). Then there is a reference to page 176, where there is a
discussion on Default value. The discussion leads me to think graphics,
but in other hits, with the same comment, there is an example of a
labeled list where a default is applied (see page 229 in Translating
attributes). 

So my gut feel is Yes you can define default attributes in the EDD, in
fact it is the only way you can.

-Original Message-
From: framers-bounces+david.spreadbury=tellabs@lists.frameusers.com
[mailto:framers-bounces+david.spreadbury=tellabs.com at lists.frameusers.co
m] On Behalf Of Rick Quatro
Sent: Friday, December 16, 2005 7:07 AM
To: framers at frameusers.com; framers at omsys.com
Subject: Apply Default Attribute Values

Hello Framers,

I have a client that wants to know if it is possible to "set all
attributes to default values when the EDD is imported". I suspect that
the answer is no, but I am pretty sure that it can be done with a
FrameScript script. 
However, I don't want to propose a script if it can be done without one.

Thanks in advance.

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

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs




Apply Default Attribute Values

2005-12-16 Thread Scott Prentice
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



Spreadbury, David wrote:

> Rick,
>I thought you could do this in the EDD, and you can, but it might depend
>on the type of attribute. Search the Structure_Dev_Guide for default
>attribute. I only got seven hits. Most of the hits are concerned with
>the DTD, but there is a comment that keeps popping up "In FrameMaker, a
>default attribute value can only be specified in the EDD,..." (on page
>242, last line). Then there is a reference to page 176, where there is a
>discussion on Default value. The discussion leads me to think graphics,
>but in other hits, with the same comment, there is an example of a
>labeled list where a default is applied (see page 229 in Translating
>attributes).
>
>So my gut feel is Yes you can define default attributes in the EDD, in
>fact it is the only way you can.
>
>-Original Message-
>From: framers-bounces+david.spreadbury=tellabs.com at lists.frameusers.com
>[mailto:framers-bounces+david.spreadbury=tellabs.com at lists.frameusers.co
>m] On Behalf Of Rick Quatro
>Sent: Friday, December 16, 2005 7:07 AM
>To: framers at frameusers.com; framers at omsys.com
>Subject: Apply Default Attribute Values
>
>Hello Framers,
>
>I have a client that wants to know if it is possible to "set all
>attributes to default values when the EDD is imported". I suspect that
>the answer is no, but I am pretty sure that it can be done with a
>FrameScript script. 
>However, I don't want to propose a script if it can be done without one.
>
>Thanks in advance.
>
>Rick Quatro
>Carmen Publishing
>585-659-8267
>www.frameexpert.com
>
>The information contained in this message may be privileged
>and confidential and protected from disclosure. If the reader
>of this message is not the intended recipient, or an employee
>or agent responsible for delivering this message to the
>intended recipient, you are hereby notified that any reproduction,
>dissemination or distribution of this communication is strictly
>prohibited. If you have received this communication in error,
>please notify us immediately by replying to the message and
>deleting it from your computer. Thank you. Tellabs
>
>
>  
>




Apply Default Attribute Values

2005-12-16 Thread Scott Prentice
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 ().

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  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 at omsys.com **
> ** with "unsubscribe framers" (no quotes) in the body.   **
>
>
>
>