OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

changed docbook.xsl is not working in correct way

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
einar
General User
General User


Joined: 18 May 2004
Posts: 15

PostPosted: Fri Sep 10, 2004 2:47 am    Post subject: changed docbook.xsl is not working in correct way Reply with quote

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
Code:
</text:span>
and of course the closing </bold> after the
Code:
</text:p>

Has anybody a good idea?
Thanks in advance!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group