einar General User

Joined: 18 May 2004 Posts: 15
|
Posted: Fri Sep 10, 2004 2:47 am Post subject: changed docbook.xsl is not working in correct way |
|
|
hello i changed the sofftodocbookheadings.xsl to fit my needs.
I want to use for ex. the openoffice "bold" button to format my text. It it not supportet by docbook translation. So i added the following:
| Code: | <xsl:template match="text:p[@text:style-name='P1']">
<xsl:element name="bold">
<xsl:apply-templates/>
</xsl:element>
</xsl:template> |
This works and produces:
| Code: | | <bold>fettdfasd</bold> |
Problem: When only a portion of the text is bold then the whole paragraph is treted as bold.
in OO-xml it looks like:
| Code: | | <text:p text:style-name="Standard"/><text:p text:style-name="P1">bold written text<text:span text:style-name="T1">this should be not bold</text:span>bold again</text:p> |
so how can i solve the problem?
I need a closing </bold> when the | Code: | | <text:span text:style-name="T1"> |
begins. And also again an opening <bold> after the and of course the closing </bold> after the
Has anybody a good idea?
Thanks in advance! |
|