C2,
Contact me off-list if you are available for a quick on-line meeting
to track this down. Or, can you email me your structapps.fm, all files
it mentions, and the files you are trying to process? What version of FM
are you using?
On 8/2/2022 2:56 PM, cuc tu wrote:
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.
R/w rules are not necessary, although many projects need them.
Stylesheets are used when you are opening an XML document in FM or
saving an FM document as XML; they are not used when creating a DTD from
an EDD or an EDD from a DTD. Thus, it doesn't sound like the elements in
the application definition are not
At the moment, I cannot understand how FM is aware of my EDD file.
FM only processes EDD files when 1) it is importing element definitions
from an EDD into a document, 2) it is saving an EDD as a DTD, or 3) it
is creating an EDD from a DTD. When you save a structured document as
XML, FM uses the internal element catalog in the structured document,
which in most projects was imported from an EDD. In particular, when you
are saving a document as XML or opening an XML document, FM does not use
an EDD itself.
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.
What do you mean by the EDD's StructuredApplication value? If the EDD
contains a StructuredApplication element, FM uses the content of that
element. It issues the error message you report if that application is
not defined. If there is no StructuredApplication element in the EDD, FM
prompts for the application. It should list the same choices as you
report below
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?
No, multiple applications can use the same DTD.
--Lynne
--
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
_______________________________________________
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