home *** CD-ROM | disk | FTP | other *** search
/ Most Wanted 2 / MostWantedII.iso / windows / misc / hotmetal.exe / HOTMETAL / EXTID.MAP < prev    next >
Encoding:
Text File  |  1994-06-17  |  2.5 KB  |  70 lines

  1. # Copyright (c) 1994  SoftQuad Inc.    @(#)extid.shp    1.2 94/03/27
  2. # This file contains a list of mappings from 
  3. # SGML Public-System Identifier pairs to Author/Editor
  4. # compiled rules file names. (The name does not include
  5. # a path. The path is obtained from the rules_path SQCONFIG
  6. # variable or from the command line.)
  7. #
  8. # Entries in this file consist of one mapping per line. A
  9. # mapping is a Public Identifier regular expression, a System
  10. # Identifier regular expression, and a result file name.
  11. #
  12. #The important things to know are these:
  13. #   To match an unspecified public or system identifier, use the character
  14. #    '~';
  15. #   To match anything else, use a regular expression.
  16. #
  17. #So
  18. #  ~  (.*)\.dtd \1.rls
  19. #
  20. #  will match an external identifier which has no public identifier and
  21. #  whose system identifier ends in ".dtd". It will match
  22. #     SYSTEM "bob.dtd"
  23. #  for example, but it will not match
  24. #     PUBLIC "something"  "bob.dtd"
  25. #
  26. #  On the other hand,
  27. #  ".*"  (.*)\.dtd  \1.rls
  28. #
  29. #  will match an external identifier which has a public identifier and
  30. #  whose system identifier ends in ".dtd". It will match
  31. #     PUBLIC "something"  "bob.dtd"
  32. #  for example, but it will not match
  33. #     SYSTEM "bob.dtd"
  34. #
  35. #  In the case where you don't care about the public identifier at all,
  36. #  you need two (2) entries in the extid.map file.  Like this:
  37. #
  38. #    ~     (.*)\.dtd  \1.rls
  39. #    ".*"  (.*)\.dtd  \1.rls
  40. #
  41. #  Similarly, if you don't care about the system identifier, then you will
  42. #  need two (2) entries like this
  43. #
  44. #    "some public id"  ~   bob.rls
  45. #    "some public id"  .*  bob.rls
  46. #
  47. #  The first case handles mapping when no system identifier is present,
  48. #  and the second one handles mapping when it is present but you wish
  49. #  to ignore the name of the system identifier.
  50. #  You should tailor this file to suit the preferences in your user community.
  51. #
  52. #   ".*" (.*)\.dtd \1.rls
  53. # will map a System Identifier ending in ".dtd" to a rules file
  54. # name that has the same beginning as the System Identifier but
  55. # with ".dtd" replaced by ".rls". E.g. "anything.dtd" will get
  56. # mapped to "anything.rls". (Note: the "." in "\.dtd" is escaped
  57. # by the backslash since it is a regular expression special
  58. # character which, unescaped, will match any single character.)
  59. #
  60. #~ (.*)\.dtd \1.rls
  61. #".*" (.*)\.dtd \1.rls
  62. #~ (.*)\.dtd \1.rules
  63. #".*" (.*)\.dtd \1.rules
  64. #! ! html.mtl
  65. ~ html.dtd html.mtl
  66. ~ legacy.dtd legacy.mtl
  67. ".*" html.dtd html.mtl
  68. ".*" legacy.dtd legacy.mtl
  69.  
  70.