[Framers] Another Simple Structured App
rick at rickquatro.com
rick at rickquatro.com
Tue Mar 22 08:44:27 PDT 2022
Do you have the EDD set up yet for the output FrameMaker document?
-----Original Message-----
From: Framers <framers-bounces+rick=rickquatro.com at lists.frameusers.com> On
Behalf Of cuc tu
Sent: Tuesday, March 22, 2022 11:06 AM
To: framers at lists.frameusers.com
Subject: [Framers] Another Simple Structured App
Hi Framers,
Our engineering group is giving me an XML file to build a dictionary of
programming commands. I'm still a novice at structured frame and have two
basic question s about using the XML content.
All content is in attribute values. I'm sure I can make certain attributes
visible, apply formatting, and add prefix/suffix. Can I automatically change
the order of the content? They are presenting the definition before the
command word. Can attribute values be pulled in from other elements?
Here is an example:
<Command
ClassName="PresetSetupType"
ClassLongName="Preset Setup Type"
ClassDescription="Sets the system preset setup type. Outputs the
system preset setup type."
String=":SYSTem:PRESet:TYPE"
Overlapping="false"
Lockable="false"
Type="Both">
<CommandParameters>
<Parameter Name="PresetSetupType" Type="Enum" Enum="PresetSetup"
Description="System preset setup type to be set" />
</CommandParameters>
<QueryResultParameters>
<Parameter Name="PresetSetupType" Type="Enum" Enum="PresetSetup"
Description="System preset setup type to be read" />
</QueryResultParameters>
<Examples>
<Example Name="SYST:PRES:TYPE DEF" Description="Sets the system
preset setup type to Default." />
<Example Name="SYST:PRES:TYPE?" Description="Outputs the system
preset setup type." />
</Examples>
</Command>
...
<EnumList Name="PresetSetup">
<Enum Name="Default" Value="DEF" LongValue="DEFAULT" />
<Enum Name="Saved" Value="SAV" LongValue="SAVED" />
</EnumList>
In all commands, I want to print the String value as a heading first, then
follow with ClassDescription as a paragraph, but the order is reversed.
In the CommandParameters element, I want to print the values of the
appropriate EnumList element attributes found in the appropriate element
So above would be something like:
:SYSTem:PRESet:TYPE
Description: Sets the system preset setup type. Outputs the system preset
setup type.
Command Parameters: DEFAULT, SAVED
Query Result Parameters: DEF, SAV
Examples: SYST:PRES:TYPE DEF
Sets the system preset setup type to Default.
SYST:PRES:TYPE?
Outputs the system preset setup type.
Thanks
C2
_______________________________________________
This message is from the Framers mailing list
Send messages to framers at lists.frameusers.com Visit the list's homepage at
http://www.frameusers.com Archives located at
http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listadmin at frameusers.com
More information about the Framers
mailing list