Hi,
This thread is related to issue #52969 (see [1]).
Please, discussing this issue on both places is not a good practice;
doing-it first on this list is a good start, then if a bug is revealed,
you can ask on buglist.
That said, I guess you set the value "@User" directly in your XSLT.
If this is the case, This will give you "@User" in resulting XSL-FO.
To get the value of User attribute, you need to use an <xsl-value-of>
element, or its short tag {}:
<afp:tag-logical-element name="User" value="{@User}"/>
If this is not the case, please give a short XSL-FO (not XSLT) that
demonstrates the issue, and explain what you expect and what you get.
[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=52969
Le 22/03/2012 14:00, Simone a écrit :
Alexios Giotis<alex.giotis<at> gmail.com> writes:
Hi Simone,
What you are writing below is not XSLT, it is XSL:FO. One usage of XSLT is
to create an XSL:FO based on the XML
data that you have. And this should be exactly what you need. The links
written by Peter are a good starting
point.
Alexios Giotis
On Mar 22, 2012, at 1:17 PM, Simone wrote:
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.
It is exacly what I am doing.
I use Altova StyleVision to create an XSLT-FO.
When I have the XSLT-FO, I add the appropriate namespace to use FOP/AFP/TLE
extension.
In FOP, then, I pass XML and XSLT-FO to print directly, create a PDF, a FO or
(in this case) an AFP.
I still thank you and Peter for links posted but I can't still find the way to
set in XSLT-FO the code tho have TLE values based on XML data. I am stuck at
this point.
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]