Skip to main content
Participant
September 13, 2013
Question

Frame 11: Do RW rules have to be in a .fm file or can they still be a .rw text file?

  • September 13, 2013
  • 2 replies
  • 739 views

I'm having problems trying to get my SGML to recognize the isoent files in the folder Structure\sgml\isoents.  I'll use ISOpub as a reference.  I've added it in my document rw rules as #include "isopub.rw".  My DTD is in the structapps.fm as Public ID and pathed with Filename.  The DTD has the entity identified with ENTITY and called with %ISOpub;.  The structapps.fm under Entity locations has the Entity Mame ISOpub and Filename isopub.ent, with an Entity Search paths 1: $STRUCTDIR\sgml\isoents. 

This topic has been closed for replies.

2 replies

Inspiring
September 13, 2013

JJ,

    R/w rules can be text filies or FM documents. FM documents can be structured or unstructured. Included rules files can be a different format than the calling file.

    Locating r/w rules is different than locating entities used in the DTD. Although the subject of your message asks about r/w rules, most of the details you've provided refer to the DTD.

    The application definition file (usually structapps.fm) can specify search paths for entities (in an EntitySearchPaths element within the Entity element) and for r/w rules in a RulesSearchPaths element. Neither is necessary for files in $STRUCTDIR\sgml\isoents since FM automatically searches this directory if it cannot find an entity or rules module in the directories explicitly listed in the search paths of your application. Thus your explicit mapping of entity %ISOpub to isopub.ent is not necessary, although it shouldn't prevent FM from finding the entity.

   FM reports entities and r/w modules it can't find. Are you getting error messages about the DTD or about the r/w rules? You can  check the DTD with StructureTools > Open DTD and the r/w rules by opening the primary rules file in FM (even if it is a text file) and using StructureTools > Check Read/Write Rules.

        --Lynne

fowlerjjAuthor
Participant
September 13, 2013

Lynne... Thanks will keep this discussion up to date.

Inspiring
September 13, 2013

Hi,

I don't know how the SGML API handles this, but for raw XML (standard API) the RWR can still be in a txt file.

Cheers Gorly

fowlerjjAuthor
Participant
September 13, 2013

Thanks Gorly