You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/03/22 11:47:29 UTC

DO NOT REPLY [Bug 52969] New: TLE values based on XML values

https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

             Bug #: 52969
           Summary: TLE values based on XML values
           Product: Fop
           Version: 1.0
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: simone.ranucci@xerox.com
    Classification: Unclassified


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:42:56 UTC ---
batch transition to closed for remaining resolved bugs

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

simone.ranucci@xerox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simone.ranucci@xerox.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

Pascal Sancho <pa...@takoma.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

--- Comment #4 from Pascal Sancho <pa...@takoma.fr> 2012-03-22 13:35:05 UTC ---
(In reply to comment #1)
> Hi, all. I am new to FOP.

OK, so you are asking this on FOP-user list (see [1]), witch is a good start.
There is no need to backup this thread on bug tracker, everybody monitoring FOP
buglist typically does monitor FOP user list.

> What I'd like to have is something like this:
> <afp:tag-logical-element name="User" value="@User">

as said by Alexios, this seems to be related to XSLT stage.
In order to help community to understand your issue, you should provide a short
XSL-FO demonstrating it.
That said, in your snippet the value of the [value] attribute is the string
"@User", so, unless there is a special processing in AFP renderer for such
pattern (I'm not an AFP guru), you'll get the same value "@User".

Please continue this discussion on FOP-user list before reopen this issue.
If the corresponding thread [1] conclude to an issue, feel free to reopen this.

[1] http://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18179.html

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

simone.ranucci@xerox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|                            |All

--- Comment #1 from simone.ranucci@xerox.com 2012-03-22 10:48:50 UTC ---
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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

Pascal Sancho <pa...@takoma.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Pascal Sancho <pa...@takoma.fr> 2012-03-22 15:59:54 UTC ---
XSLT related, see
http://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg18190.html

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

Alex Giotis <al...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Alex Giotis <al...@gmail.com> 2012-03-22 12:18:35 UTC ---
The typical way of doing this is writing an XSLT. This takes as input an XML
(containing the actual user name) and creates as output the XSL:FO. There are
of course other ways such as programmatically generating the XSL:FO, using a
template engine such as Apache Velocity etc.

Apache FOP's input is XSL:FO, have a look at the following links to help you
with writing an XSLT.

[1] http://www.w3schools.com/xsl/
[2] http://www.mulberrytech.com/xsl/xsl-list/

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52969] TLE values based on XML values

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52969

simone.ranucci@xerox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #3 from simone.ranucci@xerox.com 2012-03-22 13:01:08 UTC ---
(In reply to comment #2)
> The typical way of doing this is writing an XSLT. This takes as input an XML
> (containing the actual user name) and creates as output the XSL:FO. There are
> of course other ways such as programmatically generating the XSL:FO, using a
> template engine such as Apache Velocity etc.
> Apache FOP's input is XSL:FO, have a look at the following links to help you
> with writing an XSLT.
> [1] http://www.w3schools.com/xsl/
> [2] http://www.mulberrytech.com/xsl/xsl-list/

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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.