Skip to content

Commit

Permalink
fix hamlet stylesheet so it works without preserve whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
clovett committed Oct 4, 2024
1 parent 821be7b commit 0701a50
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Application/Samples/willy.xsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- XSL designed to provide HTML output from Jon Bosak's Shakespeare XML collection -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
Expand Down Expand Up @@ -113,4 +114,12 @@
</xsl:template>
<xsl:template match="PLAYSUBT">
</xsl:template>
</xsl:stylesheet>
<xsl:template match="P">
<xsl:value-of select="text()" />
<!--add a special non-breaking space between paragraphs is it cannot be ignored whitespace. -->
<span>&#xA0;</span>
</xsl:template>
<xsl:template match="TITLE">
<!--do nothing - we don't want a duplicate title-->
</xsl:template>
</xsl:stylesheet>

0 comments on commit 0701a50

Please sign in to comment.