Hi Rick,

I have not yet begun, so DTD, EDD, template, and RW rules need to be defined. I 
think I can do this.

Looks like I'll need to learn about XSLT. Is there a brute force path to 
getting something simple like this workable?

Thanks C2

Message: 5
Date: Tue, 22 Mar 2022 11:41:58 -0400
From: <r...@rickquatro.com>
To: "'An email list for people using Adobe FrameMaker software.'"
        <framers@lists.frameusers.com>
Subject: Re: [Framers] Another Simple Structured App
Message-ID: <01de01d83e03$5e2f45d0$1a8dd170$@rickquatro.com>
Content-Type: text/plain;       charset="us-ascii"

Hi C2,

You can apply an XSLT stylesheet automatically on import or export (or
both). The stylesheet file would be part of your custom structured
application. XSLT allows you completely transform your XML, including
changing the order of elements, converting attributes to elements, etc.

Rick

Rick Quatro
Carmen Publishing Inc.
585-729-6746
r...@frameexpert.com
http://www.frameexpert.com/store


------------------------------

Message: 6
Date: Tue, 22 Mar 2022 11:44:27 -0400
From: <r...@rickquatro.com>
To: "'An email list for people using Adobe FrameMaker software.'"
        <framers@lists.frameusers.com>
Subject: Re: [Framers] Another Simple Structured App
Message-ID: <01e601d83e03$b7104370$2530ca50$@rickquatro.com>
Content-Type: text/plain;       charset="us-ascii"

Do you have the EDD set up yet for the output FrameMaker document?

-----Original Message-----
From: Framers <framers-bounces+rick=rickquatro....@lists.frameusers.com> On
Behalf Of cuc tu
Sent: Tuesday, March 22, 2022 11:06 AM
To: framers@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@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 listad...@frameusers.com

Reply via email to