[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
5.3
Shallow Expression
<..
eliminate inline math narrative NO 2
..>
+
<xsl:template
match="span[
(@class
=
’inline-math’)
and
not(
child::*[
not(self::mo)
and
not(self::mi)
and
not(self::mn)
and
not(self::mn-group-s)
and
not(
@title=’speech-extra’
)
and
not(
self::mfrac[
preceding-sibling::*[1][self::mn
]
]
)
and
not(
self::msub
/
child::*[1][
child::mo[
@class
=
’MathClass-op’
]
and
not(child::*[2])
]
)
]
)
]"
>
<xsl:copy>
<.
shallow expression
.>
</xsl:copy>
</xsl:template>
-_-_-
<..
shallow
expression
..>
<xsl:attribute
name="class">
<xsl:text>semi-math</xsl:text>
</xsl:attribute>
<PROS
PITCH="-5">
<BREAK
SIZE="small"/>
<xsl:apply-templates
select="
<.
math content element
.>
|
text()"
/>
<BREAK
SIZE="small"/>
</PROS>
-_-_-
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]