Peter Hancock <peter.hancock <at> gmail.com> writes:

> 
> Hi Simone,
> 
> Have you considered applying an XSLT transform to the fo document, or
> during any process you may have that generates the fo?  An explanation
> of the steps required to achieve this are outside of the scope of this
> mailing list:  If you are new to XSLT, try taking a look at [1] and
> browsing [2].
> 
> Good luck!
> 
> Peter
> 
> [1] http://www.w3schools.com/xsl/
> [2] http://www.mulberrytech.com/xsl/xsl-list/
> 
> On Wed, Mar 21, 2012 at 9:58 PM, Simone <simone.ranucci <at> xerox.com> 
wrote:
> > Hi, all. I am new to FOP.
> > I am successfully creating AFP files but now I am facing a problem with TLE
> > values.
> >
> > It seems I can only set fixed values for TLE. I mean:
> > <afp:tag-logical-element name="User" value="John Doe"/>.
> >
> > What I'd like to have is something like this:
> > <afp:tag-logical-element name="User" value="@User>
> >
> > Is there someway to have this done? regards,
> >
> > Simone
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
> >
> 


Hi, Peter. Thanks for your reply.
I am already applyng an XSLT transformation using FOP and its Tag Logical 
Element (TLE) Extension.
As in http://xmlgraphics.apache.org/fop/1.0/output.html#afp-tag-logical-
element, I declared the appropriate namespace in the fo:root element like this:

      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
               xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp";>

then set in XSLT something like

<fo:page-sequence master-reference="simple">
        <afp:tag-logical-element name="foo" value="bar"/>
        <fo:flow flow-name="xsl-region-body">

and it works.

The problem is that I have to create dynamic TLE values based on XML data and 
was looking for a suggestion to accomplish this since anything I tried did not 
work.

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to