Hi Lynne,

I am using the default structapps.fm file and there is defined Doctype, 
Template file, and DTD file. What's different from other simple apps is that I 
have not specified a RW file and Stylesheets and Entities are new. I copied 
this definition below as XSLT-Sample.

At the moment, I cannot understand how FM is aware of my EDD file. When I 
update the EDD file, I import its element defs into my template file, then I 
attempt to save my EDD as a DTD, which gives the error. If I change the EDD's 
StructuredApplication value to another application in my structapps (i.e., 
eclipse), then it saves the DTD. After that, I change the EDD app declaration 
back to XSLT-Sample. Then I save all files and restart FM.

When I open an XML file that is declaring the XSLT DTD, I get a dialog that 
lists only the XSLT-Sample and eclipse apps - the one I'm trying to build and 
the one I used temporarily in my EDD. Since the DTD doesn't have any 
information about eclipse, I'm not sure if there is some data/association 
stored deeply in FM. The XML opens according to the app I select. I can set the 
current structured application to XSLT-Sample. I cannot edit global application 
definition due to permission issue.

Does it matter that XSLT-Sample specifies the same doctype as eclipse?

Application name: XSLT-sample
DOCTYPE:    ScpiParser
Template:   C:\FMStructure\eclipse\XSLT-Sample-Template.fm
DTD:  C:\FMStructure\eclipse\XSLT-Sample.dtd
XSLT Preferences: 
Preprocessing:    
Stylesheet: C:\FMStructure\eclipse\XSLT-Sample-In.xsl
Postprocessing:   
Stylesheet: C:\FMStructure\eclipse\XSLT-Sample-Out.xsl
Entity locations
Public ID:  //c2/xslt-sample/ScpiParser
Filename:  C:\FMStructure\eclipse\XSLT-Sample.dtd

Application name: eclipse
DTD:  C:\FMStructure\eclipse.dtd
Read/write rules: C:\FMStructure\rw-rules.txt
Template:   C:\FMStructure\eclipse-template.fm
DOCTYPE:    ScpiParser


Thanks C2

________________________________
From: Framers <framers-bounces+cuc2u=hotmail....@lists.frameusers.com> on 
behalf of framers-requ...@lists.frameusers.com 
<framers-requ...@lists.frameusers.com>
Sent: Tuesday, August 2, 2022 1:01 PM
To: framers@lists.frameusers.com <framers@lists.frameusers.com>
Subject: Framers Digest, Vol 197, Issue 1

Send Framers mailing list submissions to framers@lists.frameusers.com
To subscribe or unsubscribe, visit
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com You
can reach the person managing the list at
framers-ow...@lists.frameusers.com When replying, please edit your
Subject line so it is more specific than "Re: Contents of Framers
digest..."

Today's Topics:

   1.  XML Application "x" does not exist (cuc tu)
   2. Re:  XML Application "x" does not exist (Lynne A. Price)


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

Message: 1
Date: Tue, 2 Aug 2022 15:16:39 +0000
From: cuc tu <cu...@hotmail.com>
To: "framers@lists.frameusers.com" <framers@lists.frameusers.com>
Subject: [Framers] XML Application "x" does not exist
Message-ID:
        
<ch2pr06mb6616f2e6aee2da3e0c1f486afd...@ch2pr06mb6616.namprd06.prod.outlook.com>

Content-Type: text/plain; charset="utf-8"

Hi All,

Rick and Lynne helped me a while back on XSLT for reading an XML file into a 
structured application. I could not get it to work because of the application 
definitions had errors. I think I still have some errors in the structapps file 
declaring this application. When saving the EDD as a DTD, I get the error 
message in the subject line. Am I missing something or have something 
improperly defined?

Application name:?XSLT-sample
DOCTYPE:????ScpiParser
Template:???C:\FMStructure\eclipse\XSLT-Sample-Template.fm
DTD:??C:\FMStructure\eclipse\XSLT-Sample.dtd
XSLT Preferences:?
Preprocessing:????
Stylesheet:?C:\FMStructure\eclipse\XSLT-Sample-In.xsl
Postprocessing:???
Stylesheet:?C:\FMStructure\eclipse\XSLT-Sample-Out.xsl
Entity locations
Public ID:  //c2/xslt-sample/ScpiParser
Filename:  C:\FMStructure\eclipse\XSLT-Sample.dtd

The translation is to simply convert all element attributes to child elements 
since all content is in an attribute, and that translation works. All child 
elements now have data, but I do not want some of those elements to show. I've 
tried to make them as an Index or add an exclusion to the element. What usually 
happens is the content either comes out of the element tags or there is a 
missing end tag. Is there a way to toss the element data into some non-printing 
state?

Element (Marker): ClassName
Initial marker type
In all contexts.
Use marker type: Index

Thanks, C2

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

Message: 2
Date: Tue, 2 Aug 2022 09:15:22 -0700
From: "Lynne A. Price" <lpr...@txstruct.com>
To: framers@lists.frameusers.com
Subject: Re: [Framers] XML Application "x" does not exist
Message-ID: <0679a9bf-3b3e-ad55-ea7c-ce75cf44b...@txstruct.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

C2,

 ? It sounds like the problem is not that your new application doesn't
work, but it either isn't define correctly or you haven't read the
definition. Make sure the new application is defined correctly and has
that the definition has been processed before any further debugging.

 ? Open any file and use the Structure > Set Structured Application
command. Is your application listed? If not, where did you define it?
You can easily open the default location for application definitions
with Structure > Application Definition > Edit Application Definitions.
Is that where your definition is? If not, did you create the definition
in a file that uses the same template as the default one.

 ?You can put your own definition in another file, but it will not be
available until you open that file and use Structure > Application
Definition > Read Application Definitions. While FrameMaker reads the
default application definition file each time it starts, you need to
read another file in each session before its definitions become available.

 ??? --Lynne

On 8/2/2022 8:16 AM, cuc tu wrote:
> Rick and Lynne helped me a while back on XSLT for reading an XML file into a 
> structured application. I could not get it to work because of the application 
> definitions had errors. I think I still have some errors in the structapps 
> file declaring this application. When saving the EDD as a DTD, I get the 
> error message in the subject line. Am I missing something or have something 
> improperly defined?

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



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

Subject: Digest Footer

_______________________________________________

This daily digest 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

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

End of Framers Digest, Vol 197, Issue 1
***************************************
_______________________________________________

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