fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd4bb3a
)
Now book2html transforms text only from master element.
author
Marek Stępniowski
<marek@stepniowski.com>
Thu, 28 Aug 2008 15:07:23 +0000
(17:07 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Thu, 28 Aug 2008 15:07:23 +0000
(17:07 +0200)
bin/book2html.xslt
patch
|
blob
|
history
diff --git
a/bin/book2html.xslt
b/bin/book2html.xslt
index
6cba758
..
f3223d7
100644
(file)
--- a/
bin/book2html.xslt
+++ b/
bin/book2html.xslt
@@
-8,7
+8,7
@@
<xsl:template match="extra|uwaga" />
<xsl:template match="extra|uwaga" mode="inline" />
<xsl:template match="extra|uwaga" />
<xsl:template match="extra|uwaga" mode="inline" />
-<xsl:template match="
/
">
+<xsl:template match="
utwor
">
<html>
<head>
<title>book2html output</title>
<html>
<head>
<title>book2html output</title>
@@
-16,7
+16,7
@@
<link rel="stylesheet" href="master.css" type="text/css" media="screen" charset="utf-8" />
</head>
<body>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" charset="utf-8" />
</head>
<body>
- <xsl:apply-templates />
+ <xsl:apply-templates
select="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny"
/>
<div id="footnotes">
<h3>Przypisy</h3>
<xsl:for-each select="descendant::*[self::pe or self::pa or self::pr or self::pt][not(parent::extra)]">
<div id="footnotes">
<h3>Przypisy</h3>
<xsl:for-each select="descendant::*[self::pe or self::pa or self::pr or self::pt][not(parent::extra)]">
@@
-38,6
+38,10
@@
</html>
</xsl:template>
</html>
</xsl:template>
+<xsl:template match="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny">
+ <xsl:apply-templates />
+</xsl:template>
+
<xsl:template match="naglowek_akt|naglowek_czesc">
<h2><xsl:apply-templates mode="inline" /></h2>
</xsl:template>
<xsl:template match="naglowek_akt|naglowek_czesc">
<h2><xsl:apply-templates mode="inline" /></h2>
</xsl:template>