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: RE: [docbook-apps] Question on CDATA in XML


Hi Dave
I think everything is explained in the previous mails on that same thread.
To make things short, I have some RTF strings that I get from a database, then transform as HTML so that I can set them as a CDATA field in the DocBook XML.
When I try to get the complete docbook document to HTML using the stylesheets, it works for the embedded CDATA in a bibliographic section, but not when in a table. So I am trying to figure out why, because I haven't found a better way to handle that stupid rtf string.
As mentioned, my recent experiments seems (I can't be sure as I am beginning with these techniques) to show that the problem is that the dummy template below is not used when converting to HTML (I have a custom xsl sheet that pass the work to docbook.xsl after some customizations).
I am really trying hard to figure out what I am doing wrong, and I spent already a couple of days on that, which is making me a bit stressed.... (as it is something I have to do)

Best regards,
Fabien

PS: I don't know how to send a link to a threaded view of the topic... otherwise, I would have done it
PPS: the real template that works within biobliographic refences is
<xsl:template match="d:rtf">
	<xsl:value-of select="text()" disable-output-escaping="yes"/>
</xsl:template>


-----Message d'origine-----
De : Dave Pawson [mailto:davep@dpawson.co.uk] 
Envoyé : vendredi 25 juin 2010 10:49
À : docbook-apps@lists.oasis-open.org
Objet : Re: [docbook-apps] Question on CDATA in XML

On Fri, 25 Jun 2010 10:26:31 +0200
"Fabien Tillier" <f.tillier@cerep.fr> wrote:

> Still on with my attempts....
> When I embed my specific tag in a table, the template I have modified
> is not call. Which explains why it doesn't work as expected....
> Thus, in part 1, my template (see the end) is never called (in none
> of the three different rtf sections) , though it is for part 2
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <article>
> <!-- ------------------------ part 1------------------------------ -->
> <section>
> <table frame="all" role="Tab1" rowsep="0" colsep="0">
> <title>
> <rtf><![CDATA[	
>       <span style="color: #000000; font-size: 10pt; font-family:
> Times New Roman"> Source
>       </span>      
>     ]]></rtf>
> </title>
> <tbody>

That isn't valid docbook Fabien?
Just what are you trying to do please?
Perhaps we could help if we knew what you were trying to achieve?


regards 

-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



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