Re: [Framers] XML Application "x" does not exist
C2, I suspect there is a simple problem but from your notes I don't know what it is. Are you available for a quick on-line meeting? Or can you email me your structapps.fm, all files it references, and the two files you are processing (the EDD and the XML file you open). On 8/2/2022 2:56 PM, cuc tu wrote: 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. Do I understand that: 1) Structapps.fm defines two applications: XSLT-Sample and eclipse. 2) Your EDD has a StructuredApplication element. When you type "XSLT-Sample" in the StructuredApplication element and try to save the EDD as a DTD, FM reports that XSLT-Sample is not defined. However, when you type "eclipse" in the StructuredApplication element, FM creates a DTD. Importing element definitions into the template does not affect saving the EDD as a DTD. The first thing I would check is that "XSLT-Sample" is spelled identically in the EDD and in structapps.fm. The workaround of changing the application name in the EDD should not be needed. Make sure uppercase and lowercase is the same in both places, the same kind of hyphen character is used in both places, and that spacing around the hyphen is the same. 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. Sounds like FM is asking you to pick from one of the defined applications. That prompt lists all the applications it knows about, whether or not they are used in the EDD it is processing. 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. You should not have to edit the global application definitions. Does it matter that XSLT-Sample specifies the same doctype as eclipse? That is not a problem. --Lynne -- 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] XML Application "x" does not exist
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 on behalf of framers-requ...@lists.frameusers.com Sent: Tuesday, August 2, 2022 1:01 PM To: 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 + From: cuc tu To: "framers@lists.frameusers.com" Subject: [Framers] XML Application "x" does not exist Message-ID: 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" 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
Re: [Framers] XML Application "x" does not exist
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.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
[Framers] XML Application "x" does not exist
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 ___ 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