Re: [Framers] Another Simple Structured App

2022-04-07 Thread rick
As Lynne said, because FrameMaker has a built-in, enterprise-level XSLT
processor, you can specify XSLT stylesheets on import and export as part of
your structured application.

___

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


Re: [Framers] Another Simple Structured App

2022-04-07 Thread rick
You can also go in the other direction. Input:



   :SYSTem:COMMunicate:TCP:IP:ADDRess
   Outputs the IP address of the Ethernet
interface.


XSLT stylesheet:


http://www.w3.org/1999/XSL/Transform;
xmlns:xs="http://www.w3.org/2001/XMLSchema;
xmlns:math="http://www.w3.org/2005/xpath-functions/math;
exclude-result-prefixes="xs math"
version="3.0" expand-text="yes">













Output (same as your original input):





___

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


Re: [Framers] Another Simple Structured App

2022-04-07 Thread rick
Here is an example. Input:




XSLT stylesheet:


http://www.w3.org/1999/XSL/Transform;
xmlns:xs="http://www.w3.org/2001/XMLSchema;
xmlns:math="http://www.w3.org/2005/xpath-functions/math;
exclude-result-prefixes="xs math"
version="3.0" expand-text="yes">






{@String}
{@ClassDescription}





Output:



   :SYSTem:COMMunicate:TCP:IP:ADDRess
   Outputs the IP address of the Ethernet
interface.


-Original Message-
From: Framers  On
Behalf Of cuc tu
Sent: Thursday, April 7, 2022 3:12 PM
To: framers@lists.frameusers.com
Subject: Re: [Framers] Another Simple Structured App

Hi All, I'm not sure how to share the file contents wit the group here.

Simple question is how to break attribute values out into separate
paragraphs?

The XML element:



My EDD for the element:

Element (Container):  ScpiCommand
General rule:
Suffixes
s
Attribute list
Name: ClassName String Optional
Name: ClassLongName String Optional
Name: ClassDescription String Optional
Name: String String Optional
Name: Overlapping String Optional
Name: Lockable String Optional
Name: Type String Optional
Format rules for first paragraph in element In all contexts.
Use paragraph format: SCPICommand
Text format rules
In all contexts.
Use paragraph format: Indented
Format rules for last paragraph in element In all contexts.
Use paragraph format: Indented
Prefix rules
In all contexts.
Prefix: <$attribute[String]> <$attribute[ClassDescription]>


The result comes out as a run-together paragraph using the SCPICommand
paraformat. I am just wanting to print the String and ClassDescription
attribute values.

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

___

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


Re: [Framers] Another Simple Structured App

2022-04-07 Thread Lynne A. Price

C2,

   FrameMaker does not support creating separate paragraphs for 
different attribute values of one element. In simple cases you can use a 
prefix and a suffix to create such an appearance, but not with as many 
attributes as you have if you want to use different paragraph formats.


  I agree with the comments Rick and Robert made early in this thread 
to use XSLT. The idea is to change the attributes to subelements; each 
would then be a separate paragraph that you could format as you wish.


  Did you see the responses I posted yesterday? Since your message was 
getting long, I split my reply into three separate messages, giving each 
a different subject but including "Another Simple Structured App" in 
parentheses at the end.


    --Lynne

On 4/7/2022 12:11 PM, cuc tu wrote:

Simple question is how to break attribute values out into separate paragraphs?


--
Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development, and 
training
lpr...@txstruct.comhttp://www.txstruct.com
voice/fax: (510) 583-1505  cell phone: (510) 421-2284

___

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

Re: [Framers] Another Simple Structured App

2022-04-07 Thread cuc tu
Hi All, I'm not sure how to share the file contents wit the group here.

Simple question is how to break attribute values out into separate paragraphs?

The XML element:



My EDD for the element:

Element (Container):  ScpiCommand
General rule: 
Suffixes
Attribute list
Name: ClassName String Optional
Name: ClassLongName String Optional
Name: ClassDescription String Optional
Name: String String Optional
Name: Overlapping String Optional
Name: Lockable String Optional
Name: Type String Optional
Format rules for first paragraph in element
In all contexts.
Use paragraph format: SCPICommand
Text format rules
In all contexts.
Use paragraph format: Indented
Format rules for last paragraph in element
In all contexts.
Use paragraph format: Indented
Prefix rules
In all contexts.
Prefix: <$attribute[String]> <$attribute[ClassDescription]>


The result comes out as a run-together paragraph using the SCPICommand 
paraformat. I am just wanting to print the String and ClassDescription 
attribute values.

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


Re: [Framers] Another Simple Structured App

2022-04-06 Thread cuc tu
Quick follow-up to the last part of my email - for whatever reason, closing FM 
and reopening my EDD allowed me to then save it as a DTD. Maybe I'm down to 
just formatting and pulling in other element data.

Thanks
C2

From: cuc tu 
Sent: Wednesday, April 6, 2022 2:58 PM
To: framers@lists.frameusers.com 
Subject: Re: Another Simple Structured App

Hi All,

Sorry, I've been remiss on this topic I've started, but I have been looking 
when I can (too many things going on).

I have built the EDD and have imported it to a sample source XML file, and have 
resolved all validation errors. Now I have a wall of attribute text to parse 
out.

Maybe if we look at how to define this one element:



  


  


  
  

  

OK, there are several elements there, but here is what I did for the parent 
element:

Element (Container):  ScpiCommand
General rule: 
Suffixes
Attribute list
Name: ClassName String Optional
Name: ClassLongName String Optional
Name: ClassDescription String Optional
Name: String String Optional
Name: Overlapping String Optional
Name: Lockable String Optional
Name: Type String Optional
Text format rules
If context is: [Attribute=”String”]
Use paragraph format: SCPICommand
If context is: [Attribute=”ClassDescription”]
Use paragraph format: Indented
Prefix rules
In all contexts.
Prefix: <$attribute[String]><$attribute[ClassDescription]>


Here is what I am getting out (in FM body):

SYSTem:LAUNch:TYPESets the launch setup type. Outputs the launch setup type.
LaunchSetupTypeEnumLaunch setup type to be set
LaunchSetupTypeEnumLaunch setup type to be read
Example: SYST:LAUN:TYPE LASTSets the launch setup type to Last.
Example: SYST:LAUN:TYPE?Outputs the launch setup type.

So I need to figure out how to get the formatting to work. It seems I can 
sometimes pick to use a para format, but the attributes do not allow different 
paragraphs for different attributes in the same element. I've tried the 
formatting as shown here and also in the Prefix/Suffix rules.

Or character format everything and figure out how to add line breaks between 
certain attributes or characters around them. Also, the  attribute 
Enum="LaunchSetup" should pull information from the correct  element 
rather than use the value of the attribute there.



  
  
  

  


Maybe something like below would be presentable. The second command query form 
must be generated when the  attribute Type="Both"; otherwise we 
print just the command or query if there are not complemenatry forms.

SYSTem:LAUNch:TYPE
Sets the launch setup type.
SYSTem:LAUNch:TYPE?
Outputs the launch setup type.

Parameter Type: Enum
Parameters: DEF, LAST, SAV (DEFAULT, LAST, SAVED)

Example: SYST:LAUN:TYPE LAST
Sets the launch setup type to Last.

Example: SYST:LAUN:TYPE?
Outputs the launch setup type.


Finally, I'm stuck with creating the DTD. I follow the instructions here to 
make the EDD and then the next section is to create the DTD, but FrameMaker 
complains there is not structured App. This feels like a chicken and egg issue.

https://help.adobe.com/en_US/framemaker/using/index.html#t=using-framemaker%2Fuser-guide%2FWS37D3BBAC-A1FA-4fe3-9217-84364402A9D9_ver12.0.html
On this page, Step 2? Why are we doing that? Isn't that already done?
Step 5 presents a dialog that says "myapplication" does not exist, but also to 
reset the application name or define a new one... Where how is that described?
Oh, I had a wild crazy idea, when setting the structured app, rather than 
picking one from the list, go black-hat rogue and randomly type something in. 
Who'd a thought? Oh, that doesn't work either.

What's next? Define this app in structapps.fm and just fill in the non-existant 
dtd file name and try again? Even doing that FM says my app does not exist. 
Seems I need a DTD to make an app, but I need an app to make a DTD.

Sorry I'm rambling now.

C2
Adobe 
FrameMaker
The complete Adobe FrameMaker (2020 release) Online User Guide (Online Help)
help.adobe.com

___

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


Re: [Framers] Another Simple Structured App

2022-04-06 Thread cuc tu
Hi All,

Sorry, I've been remiss on this topic I've started, but I have been looking 
when I can (too many things going on).

I have built the EDD and have imported it to a sample source XML file, and have 
resolved all validation errors. Now I have a wall of attribute text to parse 
out.

Maybe if we look at how to define this one element:



  


  


  
  

  

OK, there are several elements there, but here is what I did for the parent 
element:

Element (Container):  ScpiCommand
General rule: 
Suffixes
Attribute list
Name: ClassName String Optional
Name: ClassLongName String Optional
Name: ClassDescription String Optional
Name: String String Optional
Name: Overlapping String Optional
Name: Lockable String Optional
Name: Type String Optional
Text format rules
If context is: [Attribute=”String”]
Use paragraph format: SCPICommand
If context is: [Attribute=”ClassDescription”]
Use paragraph format: Indented
Prefix rules
In all contexts.
Prefix: <$attribute[String]><$attribute[ClassDescription]>


Here is what I am getting out (in FM body):

SYSTem:LAUNch:TYPESets the launch setup type. Outputs the launch setup type.
LaunchSetupTypeEnumLaunch setup type to be set
LaunchSetupTypeEnumLaunch setup type to be read
Example: SYST:LAUN:TYPE LASTSets the launch setup type to Last.
Example: SYST:LAUN:TYPE?Outputs the launch setup type.

So I need to figure out how to get the formatting to work. It seems I can 
sometimes pick to use a para format, but the attributes do not allow different 
paragraphs for different attributes in the same element. I've tried the 
formatting as shown here and also in the Prefix/Suffix rules.

Or character format everything and figure out how to add line breaks between 
certain attributes or characters around them. Also, the  attribute 
Enum="LaunchSetup" should pull information from the correct  element 
rather than use the value of the attribute there.



  
  
  

  


Maybe something like below would be presentable. The second command query form 
must be generated when the  attribute Type="Both"; otherwise we 
print just the command or query if there are not complemenatry forms.

SYSTem:LAUNch:TYPE
Sets the launch setup type.
SYSTem:LAUNch:TYPE?
Outputs the launch setup type.

Parameter Type: Enum
Parameters: DEF, LAST, SAV (DEFAULT, LAST, SAVED)

Example: SYST:LAUN:TYPE LAST
Sets the launch setup type to Last.

Example: SYST:LAUN:TYPE?
Outputs the launch setup type.


Finally, I'm stuck with creating the DTD. I follow the instructions here to 
make the EDD and then the next section is to create the DTD, but FrameMaker 
complains there is not structured App. This feels like a chicken and egg issue.

https://help.adobe.com/en_US/framemaker/using/index.html#t=using-framemaker%2Fuser-guide%2FWS37D3BBAC-A1FA-4fe3-9217-84364402A9D9_ver12.0.html
On this page, Step 2? Why are we doing that? Isn't that already done?
Step 5 presents a dialog that says "myapplication" does not exist, but also to 
reset the application name or define a new one... Where how is that described?
Oh, I had a wild crazy idea, when setting the structured app, rather than 
picking one from the list, go black-hat rogue and randomly type something in. 
Who'd a thought? Oh, that doesn't work either.

What's next? Define this app in structapps.fm and just fill in the non-existant 
dtd file name and try again? Even doing that FM says my app does not exist. 
Seems I need a DTD to make an app, but I need an app to make a DTD.

Sorry I'm rambling now.

C2
Adobe 
FrameMaker
The complete Adobe FrameMaker (2020 release) Online User Guide (Online Help)
help.adobe.com

___

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


Re: [Framers] Another Simple Structured App

2022-03-23 Thread Robert Lauriston
FrameMaker's not the only way to get that. Though seeing page breaks
while you're editing is a big plus, especially if PDF / print are your
primary or only deliverables.

On Wed, Mar 23, 2022 at 11:11 AM  wrote:
>
> Because they may need high-quality PDF and print output.
>
> -Original Message-
> From: Framers  On
> Behalf Of Robert Lauriston
> Sent: Wednesday, March 23, 2022 2:08 PM
> To: An email list for people using Adobe FrameMaker software.
> 
> Subject: Re: [Framers] Another Simple Structured App
>
> Also, if you're writing DITA, why use FrameMaker rather than Oxygen?
___

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


Re: [Framers] Another Simple Structured App

2022-03-23 Thread rick
Because they may need high-quality PDF and print output.

-Original Message-
From: Framers  On
Behalf Of Robert Lauriston
Sent: Wednesday, March 23, 2022 2:08 PM
To: An email list for people using Adobe FrameMaker software.

Subject: Re: [Framers] Another Simple Structured App

Also, if you're writing DITA, why use FrameMaker rather than Oxygen?
___

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

___

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


Re: [Framers] Another Simple Structured App

2022-03-23 Thread Robert Lauriston
Also, if you're writing DITA, why use FrameMaker rather than Oxygen?
___

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


Re: [Framers] Another Simple Structured App

2022-03-23 Thread Lynne A. Price

C2,

   Just to add a few details to the other responses, XSLT is a 
programming language for transforming an XML document into another XML 
document, HTML, or any text format. For example, XSLT can insert, 
delete, or rearrange content, change attribute values to element content 
or the reverse, and add, delete, or modify content or attribute values . 
The processing you need is all typical of XSLT transformations. As Rick 
has explained, when you open an XML document in FrameMaker, you can 
optionally use XSLT to transform the input XML into another XML 
document. FrameMaker then creates a structured document from this second 
XML document.


  Robert also makes a valid point. How will your command dictionary be 
delivered? If the eventual goal is to produce HTML, you have the option 
of using XSLT to create HTML and skip FrameMaker formatting.


    --Lynne

On 3/22/2022 8:05 AM, cuc tu wrote:

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?


--
Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development, and 
training
lpr...@txstruct.comhttp://www.txstruct.com
voice/fax: (510) 583-1505  cell phone: (510) 421-2284

___

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

Re: [Framers] Another Simple Structured App

2022-03-22 Thread rick
Hi C2,

If you can mock up a sample of your output XML, even if it is not final, I
can show you how it would work. Thanks.

Rick

-Original Message-
From: Framers  On
Behalf Of cuc tu
Sent: Tuesday, March 22, 2022 4:41 PM
To: framers@lists.frameusers.com
Subject: Re: [Framers] Another Simple Structured App

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: 
To: "'An email list for people using Adobe FrameMaker software.'"

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: 
To: "'An email list for people using Adobe FrameMaker software.'"
    
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  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:



  


  


  
  

  
...

  
  



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

___

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


Re: [Framers] Another Simple Structured App

2022-03-22 Thread Robert Lauriston
https://www.w3schools.com/xml/xsl_intro.asp

Click Next near the bottom to page through the tutorial.

If you're creating XSLT transformations, consider whether there's any
reason to import it into FrameMaker. When I used XSLT to document
something similar I just went straight to a standalone HTML doc.

On Tue, Mar 22, 2022 at 1:50 PM cuc tu  wrote:
>
> Looks like I'll need to learn about XSLT. Is there a brute force path to 
> getting something simple like this workable?
___

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


Re: [Framers] Another Simple Structured App

2022-03-22 Thread cuc tu
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: 
To: "'An email list for people using Adobe FrameMaker software.'"

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: 
To: "'An email list for people using Adobe FrameMaker software.'"
    
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  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:



  


  


  
  

  
...

  
  



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


Re: [Framers] Another Simple Structured App

2022-03-22 Thread rick
Do you have the EDD set up yet for the output FrameMaker document?

-Original Message-
From: Framers  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:



  


  


  
  

  
...

  
  



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

___

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


Re: [Framers] Another Simple Structured App

2022-03-22 Thread rick
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



-Original Message-
From: Framers  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:



  


  


  
  

  
...

  
  



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

___

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


[Framers] Another Simple Structured App

2022-03-22 Thread cuc tu
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:



  


  


  
  

  
...

  
  



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