Hello,
I'm getting into this filter writing business and have a question: given a
XML fragment like so:
<title>
Something <i>S. cerevisiae</i>
</title>
How can I italicise the 'i' element without loosing the 'title' element
characteristics?
I tried the following, but that doesn't work:
<xsl:template match="title">
<text:h text:outline-level="1" text:style-name="Title">
<xsl:value-of select="../title"/>
</text:h>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="i">
<text:p text:style-name="Emphasis">
<xsl:value-of select="."/>
</text:p>
<xsl:apply-templates/>
</xsl:template>
Now I wonder whether I would have to write a structure which would check the
parent node and then invoke a parent node specific italicised form - that
would be a real pain ...
Please help!
Joh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]