Skip to content

Commit 0701a50

Browse files
committed
fix hamlet stylesheet so it works without preserve whitespace.
1 parent 821be7b commit 0701a50

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Application/Samples/willy.xsl

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<!-- XSL designed to provide HTML output from Jon Bosak's Shakespeare XML collection -->
23
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
34
<xsl:template match="/">
@@ -113,4 +114,12 @@
113114
</xsl:template>
114115
<xsl:template match="PLAYSUBT">
115116
</xsl:template>
116-
</xsl:stylesheet>
117+
<xsl:template match="P">
118+
<xsl:value-of select="text()" />
119+
<!--add a special non-breaking space between paragraphs is it cannot be ignored whitespace. -->
120+
<span>&#xA0;</span>
121+
</xsl:template>
122+
<xsl:template match="TITLE">
123+
<!--do nothing - we don't want a duplicate title-->
124+
</xsl:template>
125+
</xsl:stylesheet>

0 commit comments

Comments
 (0)