Arbortext Command Language > Functions by Alphabetical Listing > graphic_attr_name
  
graphic_attr_name
graphic_attr_name (tagname, role[, doc])
This function returns the name of the graphic tagname attribute for the graphic trait role defined in the document type's .dcf file.
* 
In SGML, if the SGML declaration for the document type definition includes the NAMECASE GENERAL NO setting, then the tagname parameter is case-sensitive. In XML, the tagname parameter is always case-sensitive.
The optional doc argument specifies the identifier of the document to query. If omitted or 0, the current document is used.
Valid values for role correspond to graphic element attributes that are set in the document type's .dcf file. The following table associates the valid values for role to the graphic attributes in the .dcf file.
Valid role values associated with graphic attributes
Value for role
Attribute in .dcf file
croph
<Graphic cropHeight="AttributeName">
cropllx
<Graphic cropLowerLeftX="AttributeName">
croplly
<Graphic cropLowerLeftY="AttributeName">
cropw
<Graphic cropWidth="AttributeName">
entity
<Graphic entity="AttributeName">
filename
<Graphic filename="AttributeName">
horzadjamt
<Graphic horizOffsetAmount="AttributeName">
horzadjpct
<Graphic horizOffsetPercent="AttributeName">
horzscale
<Graphic horizScale="AttributeName">
notation
<Graphic notation="AttributeName">
proctype
<Graphic processor="AttributeName">
reprodep
<Graphic reproDepth="AttributeName">
reprowid
<Graphic reproWidth="AttributeName">
res
<Graphic resolution="AttributeName">
scalefit
<Graphic scaleToFit="AttributeName">
vertadjamt
<Graphic vertOffsetAmount="AttributeName">
vertadjpct
<Graphic vertOffsetPercent="AttributeName">
vertscale
<Graphic vertScale="AttributeName">
view
<Graphic view="AttributeName">
If tagname is not defined as a graphic element in the .dcf file, or if no attribute is assigned to the specified role, this function returns the null string.
* 
Executing the function graphic_attr_name(tagname, "entity") returns the same value as the function graphic_entity_attr_name(tagname). Similarly, the function graphic_attr_name(tagname, "filename") returns the same value as the function graphic_file_attr_name(tagname).
Related Topics
graphic_entity_attr_name function
graphic_file_attr_name function
Enabling graphics support for a document type