Thanks to Tom for pointing me in the right direction but it has exposed
another problem.
Here are the blocs I added to our custom FO template:
<xsl:template match="phra...@condition='draft']">
<fo:inline color="red">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match="pa...@condition='draft']">
<fo:inline color="red">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
In some documents *but not all*, when I process via FOP, I get an exception:
org.apache.fop.fo.ValidationException: Error(Unknown location):
fo:inline is not a valid child element of fo:flow.
The entire exception is huge but that is the root cause. In one case I
can generate a PDF if I have no <para condition="draft"> elements, and
I'm still investigating.
Can someone point me in a direction as to a cause?
On 7/21/2010 7:13 AM, Tom Browder wrote:
On Tue, Jul 20, 2010 at 12:57, Steve Johnson<[email protected]> wrote:
I want all instances of particular profiling elements to display in red in
the PDF. From Stayton's book, I see an example of how to bold text:
...
What I think I would do is change it to something like:
<xsl:template match="[email protected]='draft']">
<xsl:call-template name="????"/>
</xsl:template>
Steve, try this:
<xsl:template match="[email protected]='draft']">
<fo:inline color='red''><xsl:apply-templates/></fo:inline>
</xsl:template>
HTH,
-Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
------------
Steve Johnson, Senior Content Developer
Caringo
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]