Skip to main content
1-Visitor
March 24, 2016
Question

entities

  • March 24, 2016
  • 1 reply
  • 3964 views

I would like to use a group of entities in one file with a schema and xml is that possible?

Should it be saved as a .ent or .xml file and how do I point to it

    1 reply

    10-Marble
    May 20, 2016

    Was this ever resolved? I have the same issue.

    17-Peridot
    May 20, 2016

    Sara,

    I think you should be able to use your catalog files and reference the entities file.


    Lines from Catalog file:

    PUBLIC "-//TORO//ENTITIES General Entity Set//EN//XML" "../entities/general-ents.mod"

    PUBLIC "-//TORO//DTD Information Pool V1.0X//EN//XML"  "../entities/toro-infopool.mod"

    PUBLIC "-//TORO//DTD Hierarchy Pool V1.0X//EN//XML"  "../entities/toro-hierarchy.mod"


    Few example lines from my general-ents.mod

    <!ENTITY Toro "The Toro® Company">

    <!ENTITY ToroShort "Toro">


    Hope this helps.

    10-Marble
    May 20, 2016

    Thank you for your response. I have set the catalog up to reference an entity file stored in the entities directory, however the entity file is referencing an XML file that is accessed via URL. It's not coming up in the File entities list for insertion. When I create the file entity within the entities window it tells me the XML file is invalid.

    The XML is based off a schema not a DTD. The DTD works fine but the schema does not.

    Snippet of entity of file:

    <?xml version='1.0' encoding='UTF-8' ?>

    <!ENTITY % warning002 PUBLIC "-//USCG//ENTITIES warning//EN//XML" "http://xxxx-xxxx-ap00.osc.xxxx.mil:0000/cs/idcplg?IdcService=GET_FILE&dDocName=OSCLSLIMSAP21O1034999&RevisionSelectionMethod=LatestReleased">
    %warning002;