home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 May / PCW596.iso / wtest / novell / web30day.exe / DISK1 / STYLES / MODULES / LINKS.MOD < prev    next >
Text File  |  1994-08-31  |  6KB  |  167 lines

  1. <!--
  2. VeRsIoN=1994.8.31 22:19
  3. -->
  4. <!-- ******************* NOVELL HYPERTEXT ELEMENTS ****************** -->
  5.  
  6. <group name="xlink">
  7.    <foreground>         &xclr; </>
  8.    <line>               &xline; </>
  9. </group>
  10.  
  11. <!-- STANDARD ID-BASED LINK AND ITS TARGET -->
  12.  
  13. <style name="LINK" group="xlink">
  14.    <script>    if(eq(env(DHELPSTYLE),dhelp),
  15.         if(eq("bookname()","attr(book)"),
  16.             ebt-link window="specified" view="fulltext" root=1
  17.                  target="idmatch(ID, attr(LINKEND))"
  18.                 showtoc=false,
  19.              ebt-link window=new book="attr(book)"
  20.                 collection="attr(collection)" 
  21.                 target="idmatch(ID, attr(LINKEND))"
  22.                 view="fulltext" showtoc=false),
  23.         if(eq("bookname()","attr(book)"),
  24.             ebt-link window="specified" view="fulltext" root=1
  25.                  target="idmatch(ID, attr(LINKEND))",
  26.              ebt-link window=new book="attr(book)"
  27.                 collection="attr(collection)" 
  28.                 target="idmatch(ID, attr(LINKEND))"
  29.                 view="fulltext" showtoc=true))
  30.                 </>
  31. </style>
  32.  
  33. <style name="XMARK">
  34.    <hide>        all </>
  35. </style>
  36.  
  37. <!-- All other links below are local (nonstandard) extensions to
  38. the DocBook DTD -->
  39.  
  40. <!-- SIMPLE ID-BASED INTERNAL LINK (NONSTANDARD) -->
  41.  
  42. <style name="IXREF" group="xlink">
  43.    <script>             ebt-link window=selected view=fulltext root=1
  44.             showtoc=true target="idmatch(ID, attr(IDREF))" </>
  45. </style>
  46.  
  47. <!-- RESTRICTED ID-BASED INTERNAL LINK -->
  48.  
  49. <style name="IXREFR" group="xlink">
  50.    <script>     ebt-link window=selected view=fulltext 
  51.         root="idmatch(ID, attr(IDREF))"
  52.                 title="content(me())" showtoc=false </>
  53. </style>
  54.  
  55. <!-- LINK THAT OPENS AN ENTIRE BOOK -->
  56.  
  57. <style name="BXREF" group="xlink">
  58.    <font-slant>         &bodslan; </>
  59.    <script>    ebt-link window=new view=fulltext showtoc=true
  60.         root=1 book="attr(book)" collection="attr(collection)" </>
  61. </style>
  62.  
  63. <!-- LINKS BASED ON A STRING MATCH WITH THE CONTENT OF A TITLE ELEMENT -->
  64. <!-- NOTE: The destination of the link will be the immediate parent
  65.        of the TITLE element whose content exactly matches the content
  66.        of the XREF element -->
  67.  
  68. <!-- Internal link to a container whose TITLE matches link content -->
  69. <style name="TIXREF" group="xlink">
  70.    <script>    if(eq(env(DHELPSTYLE),dhelp),
  71.         ebt-link window=selected view=fulltext showtoc=false
  72.         root=queryexact(TITLE,"content(me())",1),
  73.         ebt-link window=selected view=fulltext root=1
  74.         target=queryexact(TITLE,"content(me())",1)) </>
  75. </style>
  76.  
  77. <!-- Same as TIXREF, but view is restricted to target container -->
  78. <style name="TIXREFR" group="xlink">
  79.    <script>    ebt-link window=new view=fulltext showtoc=false
  80.         root=queryexact(TITLE,"content(me())",1)
  81.                 title="content(me())" </>
  82. </style>
  83.  
  84. <!-- External link to a container whose TITLE matches link content -->
  85. <style name="TEXREF" group="xlink">
  86.    <script>    if(eq(env(DHELPSTYLE),dhelp),
  87.         ebt-link book="attr(book)" collection="attr(collection)"
  88.         window=specified view=fulltext showtoc=false
  89.         root=queryexact(TITLE,"content(me())",1),
  90.         ebt-link book="attr(book)" collection="attr(collection)"
  91.         window=new view=fulltext showtoc=true root=1
  92.         target=queryexact(TITLE,"content(me())",1)) </>
  93. </style>
  94.  
  95. <!-- Same as TEXREF, but view is restricted to target container -->
  96. <style name="TEXREFR" group="xlink">
  97.    <script>    ebt-link book="attr(book)" collection="attr(collection)"
  98.         window=new view=fulltext showtoc=false
  99.         root=queryexact(TITLE,"content(me())",1)
  100.                 title="content(me())" </>
  101. </style>
  102.  
  103. <!-- LINKS BASED ON A STRING MATCH WITH CONTENT OF A REFENTRYTITLE ELEMENT -->
  104. <!-- NOTE: The destination of the link will be the *grandparent*
  105.        of the REFENTRYTITLE element whose content
  106.        exactly matches the content of the XREF element.
  107.            The grandparent is appropriate because the immediate parent
  108.        is the REFMETA element. -->
  109.  
  110. <!-- Internal link to a REFENTRY container
  111.      whose REFENTRYTITLE matches link content -->
  112. <style name="RIXREF" group="xlink">
  113.    <script>    ebt-link window=selected view=fulltext root=1 showtoc=true
  114.         target=queryexact(REFENTRYTITLE,"content(me())",2) </>
  115. </style>
  116.  
  117. <!-- Same as RIXREF, but view is restricted to target container -->
  118. <style name="RIXREFR" group="xlink">
  119.    <script>    ebt-link window=new view=fulltext showtoc=false
  120.         root=queryexact(REFENTRYTITLE,"content(me())",2)
  121.                 title="content(me())" </>
  122. </style>
  123.  
  124. <!-- External link to a REFENTRY container whose 
  125.      REFENTRYTITLE matches link content -->
  126. <style name="REXREF" group="xlink">
  127.    <script>    ebt-link book="attr(book)" collection="attr(collection)"
  128.         window=new view=fulltext root=1 showtoc=true
  129.         target=queryexact(REFENTRYTITLE,"content(me())",2) </>
  130. </style>
  131.  
  132. <!-- Same as REXREF, but view is restricted to target container -->
  133. <style name="REXREFR" group="xlink">
  134.    <script>    ebt-link book="attr(book)" collection="attr(collection)"
  135.         window=new view=fulltext showtoc=false
  136.         root=queryexact(REFENTRYTITLE,"content(me())",2)
  137.                 title="content(me())" </>
  138. </style>
  139.  
  140. <!-- LINKS USED IN A GENERATED HYPERINDEX -->
  141.  
  142. <!-- Raw index marker (disappears when master index is made) -->
  143. <style name="INDEXTERM">
  144.    <hide>               all </>
  145. </style>
  146.  
  147. <!-- External link to an index marker from an index -->
  148. <style name="IDXREF">
  149.    <text-before>&idx2sym;</>
  150.    <script>     ebt-link book="attr(book)" collection="attr(collection)"
  151.         window=new view=fulltext showtoc=true root=1
  152.         target="idmatch(IDXID, attr(IDXMKID))" </>
  153. </style>
  154.  
  155. <style name="IDXREF,#text-before">
  156.    <foreground>         &idxclr; </>
  157.    <font-family>        &idx2fam; </>
  158.    <font-size>          &idx2siz; </>
  159.    <vertical-offset>    &idx2off; </>
  160. </style>
  161.  
  162. <!-- internal index cross-reference (for ISEE and ISEEALSO) -->
  163. <style name="ISEEREF" group="xlink">
  164.    <script>             ebt-link 
  165.             target="idmatch(ID, attr(IDREF))" </>
  166. </style>
  167.