Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Opening SGML Files in Framemaker 7

New Here ,
Oct 16, 2008 Oct 16, 2008
I have Frame Maker version 7.0p492 Structure running in Windows 2000 SP4<br /><br />I have received several files from another company in SGML that were done in "Epic Editor" and I need to open them in Frame Maker. I have had some success opening them.<br /><br />When I try to open the file the SGML read report log states:<br /><file path & name> Length of name, number, or token exceeded the NAMELEN limit.<br /><br /><file path & name> Could not find external document type <document name> Then it lists a path which looks to be where the DTD was in the file's original environment.<br /><br />When I attempt to open the DTD, I get 14 pages of error messages of various sorts.<br /><br />My question is two-fold. What am I doing wrong in Frame Maker concerning the process of opening an SGML file, and two, how could an SGML file that was supposedly correct when it was done in Epic Editor now cause so many errors in Frame Maker?
TOPICS
Structured
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2008 Oct 16, 2008
Hi Alex,

  1. For the NAMELEN problem, you can fix it by setting up a structured application for importing your SGML and specifying your own SGML declaration which sets NAMELEN to some larger value. In the DocBook SGML Structured Application that comes with FrameMaker, NAMELEN is set to 239, which is the maximum, so you could reference that declaration in your structured applications definition or make your own SGML declaration and use that. FrameMaker uses a default SGML declaration if you don't specify one; I believe that the default value is 8, as specified in the reference concrete syntax (from memory, could be wrong), so if you have any NAMEs longer than 8 characters, FrameMaker will complain.

  2. For the DTD path, you could edit the SGML file to point to the location of the DTD on your system, and you can also specify the location of the DTD in your application definition.

  3. As for the errors when opening the DTD, it's hard to say based on your description.

  4. For your question on how the SGML was correct in Epic but causes errors in FrameMaker, the thing with SGML is that it's a amazingly configurable standard: you can change loads of things, and so the defaults are only helpful in circumstances where the supplier of the document didn't do anything too "whacky". So it may well be that the document is correct when viewed in Epic.


Jon
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2008 Oct 16, 2008
John,

In Relation To #3, sorry for being vague. It seems that #1 answers a lot of #3. Most of the errors appear to be name length exceeded limits. There are a few invalid characters which were ignored. It was expecting an MDC delimiter a few times. A few incorrect markup, markup terminated. There were also a few Entity nesting level out of sync errors. But probably 95% of the errors in the DTD file were NAMELEN longer than the default.

Per #4, what would help ameliorate this problem? Should I attempt to get the structure/environment in addition to the SGML files or would it be easy enough to (re)create the proper structure.

Sorry if I sound like I don't know what I'm talking about, Frame maker/SGML isn't what I normally do, it's just I was the only one with a programming/CS background.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2008 Oct 19, 2008
LATEST
Hi Alex,

It's hard to say what your best bet would be to get these files into FrameMaker. It depends among other things on:
  • Do the files have to be saved back out to SGML after you're done with them, or is this a one-way trip? If you have to round trip them back to SGML, you probably have less scope in what you can do to the files.
  • Is this a one-off, or is it a regular job? If it's a one off, you may be able to get away with hacking the files; if it's a regular thing, you may want to automate it somehow, by processing the SGML files using a script or via the import process.
  • How many files are there to be processed? If there are only a few, then editing them by hand to suit your purposes might be the way to go. If there are many, then an automated solution (again, scripting or via the import process) may be better.


As you can see, there are overlaps in the points above. I'm sorry that I can't be more specific it might be a good idea for you to consider the questions above and come back with more queries, then someone here may be able to point you in the right direction.

Jon
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines