Remove the template below from your XSLT, and that
should work.
<xsl:template match="meta">
<fo:block color="green">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Glen
--- Sascha Teifke <[EMAIL PROTECTED]> wrote:
> I am using fop with apache lenya to create pdf
> files.
> I'm using a simple xsl-file for transforming the
> created
> lenya xml files into pdf files:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> >
> <!-- generate PDF page structure -->
> <xsl:template match="/">
> <fo:root
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master
> master-name="page"
> page-height="29.7cm"
> page-width="21cm"
> margin-top="1cm"
> margin-bottom="2cm"
> margin-left="2.5cm"
> margin-right="2.5cm"
> >
> <fo:region-before extent="3cm"/>
> <fo:region-body
> margin-top="3cm"/>
> <fo:region-after
> extent="1.5cm"/>
> </fo:simple-page-master>
>
> <fo:page-sequence-master
> master-name="all">
>
> <fo:repeatable-page-master-alternatives>
>
> <fo:conditional-page-master-reference
> master-reference="page"
> page-position="first"/>
>
> </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
> </fo:layout-master-set>
>
> <fo:page-sequence
> master-reference="all">
> <fo:flow
> flow-name="xsl-region-body">
>
> <fo:block><xsl:apply-templates/></fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> </xsl:template>
>
> <!-- process paragraphs -->
> <xsl:template match="p">
> <fo:block><xsl:apply-templates/></fo:block>
> </xsl:template>
>
> <xsl:template match="meta">
> <fo:block color="green">
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>
> <!-- convert sections to XSL-FO headings -->
> <xsl:template match="s1">
> <fo:block font-size="24pt" color="red"
> font-weight="bold">
> <xsl:apply-templates select="@title"/>
> </fo:block>
> <xsl:apply-templates/>
> </xsl:template>
>
> </xsl:stylesheet>
>
> But ... how can I make the <lenya:meta> tags in the
> xml file not to be
> shown in the
> created pdf file???
>
> Thank you in advance!
>
> Sascha
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]