home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _DA60C06C2A4345BE81B9694C61E8081C < prev    next >
Encoding:
Extensible Markup Language  |  2002-10-21  |  2.6 KB  |  124 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- 
  3. TEI XSLT stylesheet family version 1.2
  4. RCS: $Date: 2002/10/21 13:44:16 $, $Revision: 1.1.2.1 $, $Author: jdj $
  5.  
  6. XSL stylesheet to format TEI XML documents to HTML or XSL FO
  7.  
  8.  Copyright 1999-2002 Sebastian Rahtz/Oxford University  <sebastian.rahtz@oucs.ox.ac.uk>
  9.  
  10.  Permission is hereby granted, free of charge, to any person obtaining
  11.  a copy of this software and any associated documentation files (the
  12.  ``Software''), to deal in the Software without restriction, including
  13.  without limitation the rights to use, copy, modify, merge, publish,
  14.  distribute, sublicense, and/or sell copies of the Software, and to
  15.  permit persons to whom the Software is furnished to do so, subject to
  16.  the following conditions:
  17.  
  18.  The above copyright notice and this permission notice shall be included
  19.  in all copies or substantial portions of the Software.
  20. --> 
  21. <xsl:stylesheet
  22.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  23.   >
  24. <!-- elaborated by Nick  Nicholas <nicholas@uci.edu>, March 2001 -->
  25. <xsl:template match="sp">
  26. <dl>
  27.  <dt><xsl:apply-templates select="speaker"/></dt>
  28. <dd><xsl:apply-templates select="p | l | lg | seg | ab | stage"/></dd>
  29. </dl>
  30. </xsl:template>
  31.  
  32. <!-- paragraphs inside speeches do very little-->
  33.  <xsl:template match="sp/p">
  34.     <xsl:apply-templates/>
  35. </xsl:template>
  36.  
  37.  
  38. <xsl:template match="p/stage">
  39. <em><xsl:apply-templates/></em>
  40. </xsl:template>
  41.  
  42. <xsl:template match="stage">
  43. <p><em>
  44.       <xsl:apply-templates/>
  45. </em></p>
  46. </xsl:template>
  47.  
  48. <xsl:template match="castList">
  49. <ul>
  50.     <xsl:apply-templates/>
  51. </ul>
  52. </xsl:template>
  53.  
  54. <xsl:template match="castGroup">
  55. <ul>
  56.     <xsl:apply-templates/>
  57. </ul>
  58. </xsl:template>
  59.  
  60. <xsl:template match="castItem">
  61. <li>
  62.     <xsl:apply-templates/>
  63. </li>
  64. </xsl:template>
  65.  
  66. <xsl:template match="role">
  67. <strong>
  68.     <xsl:apply-templates/>
  69. </strong>
  70. </xsl:template>
  71.  
  72. <xsl:template match="roleDesc">
  73. <blockquote>
  74.     <xsl:apply-templates/>
  75. </blockquote>
  76. </xsl:template>
  77.  
  78. <xsl:template match="actor">
  79. <em>
  80.     <xsl:apply-templates/>
  81. </em>
  82. </xsl:template>
  83.  
  84. <xsl:template match="set">
  85. <em>
  86.     <xsl:apply-templates/>
  87. </em>
  88. </xsl:template>
  89.  
  90. <xsl:template match="view">
  91. <em>
  92.     <xsl:apply-templates/>
  93. </em>
  94. </xsl:template>
  95.  
  96. <xsl:template match="camera">
  97. <em>
  98.     <xsl:apply-templates/>
  99. </em>
  100. </xsl:template>
  101.  
  102. <xsl:template match="caption">
  103. <em>
  104.     <xsl:apply-templates/>
  105. </em>
  106. </xsl:template>
  107.  
  108. <xsl:template match="sound">
  109. <em>
  110.     <xsl:apply-templates/>
  111. </em>
  112. </xsl:template>
  113.  
  114. <xsl:template match="tech">
  115. <em>
  116.     <xsl:apply-templates/>
  117. </em>
  118. </xsl:template>
  119.  
  120.  
  121. </xsl:stylesheet>
  122.  
  123.  
  124.