OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: find/replace in title


I’m trying to do a find replace in the title of my docbook (the title is dynamically generated and if it has certain words in there, I want to replace them), but I’m not sure how to go about this. In the titlepage.xsl, I have tried replacing

 

     <xsl:element name="xsl:copy-of">

      <xsl:attribute name="select"> $recto.content</xsl:attribute>   

     </xsl:element>    

 

with

 

     <xsl:element name="xsl:copy-of">

      <xsl:attribute name="select">translate($recto.content,"'FindMe'","'ReplaceMe'")</xsl:attribute>   

     </xsl:element>    

 

This ends up producing all sorts of garbage objects, and I suspect this is because I have a mediaObject on my title page.

 

I’m really just trying to do the find/replace inside the title tags of my docbook xml. Can someone point me in the right direction on this?

 

Thanks,

Jeff

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]