xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Bromberg <bromb...@tzi.de>
Subject XSL Question
Date Mon, 21 Nov 2005 19:05:59 GMT
Hi,

i've a short xml->xsl->fo question.

my xml is:

<text>Here is some text<B> with bold <B/><I>and italic<I/><B><I>
and 
both<I/><B/> elements in it.<text/>

when i've a template for "text", "B" and "I" how can i get the real text 
in the right order?

some xsl:

<xsl:template match="text">
<fo:block>
    <xsl:apply-tempaltes />
<fo:block/>
<xsl:template/>

<xsl:template match="B">
<fo:inline font-weight="bold"><xsl:apply-templates /><fo:inline/>
<xsl:template/>

<xsl:template match="I">
<fo:inline font-style="italic"><xsl:apply-templates /><fo:inline/>
<xsl:template/>

don't look for typos!!

Thanks

Dirk


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message