You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Anupam Sood <An...@morganstanley.com> on 2002/08/26 19:16:23 UTC

Handling Attributes

Hi

how is the mapping defined for the following XML input

<Message>
    <amount currency="USD">500</amount>
     <account>70133008</account>
</Message>

how is the mapping defined for the "currency" above ?

thanks in advance

anupam

Ian Waggoner wrote:

> J.P.,
> Thanks, that's exactly what I was looking for. For the benefit of anyone else interest, let me share the remaining steps I had to take. To get xml data in the static content header, I used a marker. I discovered placing the marker at the top of the flow resulted in the data only being displayed on the first page of the sequence. I tried changing retrieve-boundary in the retrieve-marker tag to "page-sequence" instead of "page", but got a NullPointerException. Anyone know why that is? Anyway, I worked around this by placing the marker in a cell of the table that spanned pages.
> Ian
>
> ____________________________
> ian.waggoner@cs.oag.state.tx.us
>
> >>> j3322ptm@yahoo.de 08/23/02 04:13PM >>>
> Ian Waggoner wrote:
> > Thanks for the help. It would work except that I want
>  > to show the column headers *after* the "one-off header
>  > stuff".
> ...
> >
> > <fo:table table-omit-header-at-break="false">
> >   <fo:table-column ... >
> >   <fo:table-header>
> >     <fo:table-row > Summary data I want to show on every page </fo:table-row>
> >     <fo:table-row > Summary data I want to show only on the first page </fo:table-row>
> >     <fo:table-row > Column headers I want to show on every page </fo:table-row>
> >   </fo:table-header>
>
> Should the table start after a page break?
> If so:
> - put the table in it's own page sequence
> - put the first row in a table in the static content header
>    (summary data for every page)
> - use a one row table for the second row
>    (summary for first page only)
> - use the normal table header for the column headers.
> In order to get the table in the static content to match
> closely so that it seems to belong to the main table, you
> may use a space-before for adjustments.
>
> J.Pietschmann


Re: Handling Attributes

Posted by Noel Golding <no...@spearreport.com>.
Message/amount/@currency


----- Original Message -----
From: "Anupam Sood" <An...@morganstanley.com>
To: <fo...@xml.apache.org>
Sent: Monday, August 26, 2002 1:16 PM
Subject: Handling Attributes


> Hi
>
> how is the mapping defined for the following XML input
>
> <Message>
>     <amount currency="USD">500</amount>
>      <account>70133008</account>
> </Message>
>
> how is the mapping defined for the "currency" above ?
>
> thanks in advance
>
> anupam
>
> Ian Waggoner wrote:
>
> > J.P.,
> > Thanks, that's exactly what I was looking for. For the benefit of anyone
else interest, let me share the remaining steps I had to take. To get xml
data in the static content header, I used a marker. I discovered placing the
marker at the top of the flow resulted in the data only being displayed on
the first page of the sequence. I tried changing retrieve-boundary in the
retrieve-marker tag to "page-sequence" instead of "page", but got a
NullPointerException. Anyone know why that is? Anyway, I worked around this
by placing the marker in a cell of the table that spanned pages.
> > Ian
> >
> > ____________________________
> > ian.waggoner@cs.oag.state.tx.us
> >
> > >>> j3322ptm@yahoo.de 08/23/02 04:13PM >>>
> > Ian Waggoner wrote:
> > > Thanks for the help. It would work except that I want
> >  > to show the column headers *after* the "one-off header
> >  > stuff".
> > ...
> > >
> > > <fo:table table-omit-header-at-break="false">
> > >   <fo:table-column ... >
> > >   <fo:table-header>
> > >     <fo:table-row > Summary data I want to show on every page
</fo:table-row>
> > >     <fo:table-row > Summary data I want to show only on the first page
</fo:table-row>
> > >     <fo:table-row > Column headers I want to show on every page
</fo:table-row>
> > >   </fo:table-header>
> >
> > Should the table start after a page break?
> > If so:
> > - put the table in it's own page sequence
> > - put the first row in a table in the static content header
> >    (summary data for every page)
> > - use a one row table for the second row
> >    (summary for first page only)
> > - use the normal table header for the column headers.
> > In order to get the table in the static content to match
> > closely so that it seems to belong to the main table, you
> > may use a space-before for adjustments.
> >
> > J.Pietschmann