[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
12
New Theorems
<..
boundaries
on
theorems
..>
<script
element="div::newtheorem"
>
<set
name="newtheorem"
>
<.
open xslt script
.>
<.
annotate bounderies of theorems
.>
<.
tags for empty templates
.>
<.
close xslt script
.>
</set>
<xslt
name="."
xml="."
xsl="newtheorem"
/>
</script>
-_-_-
<..
annotate
bounderies
of
theorems
..>
<xsl:template
match="
div[
(@class=’newtheorem’)
and
descendant::*[
self::p
][1]
/
descendant::*[
self::span
][1]
[
@class
=
’theorem-head’
]
]
"
>
<xsl:copy>
<xsl:apply-templates
select="*|@*|text()|comment()"
/>
<div
class="begin-end"
title="speech-extra">
<BREAK
SIZE="small"/>
<xsl:value-of
select="
concat(
’
end
’,
substring-before(
<.
new theorem header
.>
,
’
’)
)
"
/>
</div>
</xsl:copy>
</xsl:template>
-_-_-
<..
new
theorem
header
..>
concat(
normalize-space(
string(
descendant::*[
self::p
][1]
/
descendant::*[
self::span
][1]
[
@class
=
’theorem-head’
]
)
)
,
’
’
)
-_-_-
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]