Commits

Anonymous committed cb6a255

[Screenplay-XML->TEI] Stylesheet should be working now.

Thanks to Sebastian Rahtz, Efraim Feinstein and Lou Burnard from the TEI
mailing list who answered my questions.

TODO : test it.

Comments (0)

Files changed (1)

perl/modules/XML-Grammar-Fiction/extradata/screenplay-xml-to-tei.xslt

 </xsl:template>
 
 <xsl:template match="sp:ulink">
-    <a>
-        <xsl:attribute name="href">
+    <ref>
+        <xsl:attribute name="terget">
             <xsl:value-of select="@url" />
         </xsl:attribute>
         <xsl:apply-templates />
-    </a>
+    </ref>
 </xsl:template>
 
 <xsl:template match="sp:bold">
-    <strong class="bold">
+    <tei:hi rend="bold">
         <xsl:apply-templates />
-    </strong>
+    </tei:hi>
 </xsl:template>
 
 <xsl:template match="sp:italics">
-    <em class="italics">
+    <tei:hi rend="italic">
         <xsl:apply-templates />
-    </em>
+    </tei:hi>
 </xsl:template>
 
 <xsl:template match="sp:inlinedesc">
-    <span class="inlinedesc">[<xsl:apply-templates />]</span>
+    <tei:stage>[<xsl:apply-templates />]</tei:stage>
 </xsl:template>
 
 <xsl:template match="sp:br">
-    <br />
+    <lb />
 </xsl:template>
 
 </xsl:stylesheet>