Re: Avery labels

2004-10-04 Thread Frank Daly
Thanks again for your replies.  I got the answer at

http://forums.devshed.com/t102219/s.htmlhighlight=xslt+columns

You'll be glad to know that I'm ordering an XSLT today.

Frank

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 24 September 2004 01:23
To: [EMAIL PROTECTED]
Subject: [work] Re: Avery labels

This is an XSLT question, not really related to FOP. 
http://xml.apache.org/fop/maillist.html#xslt-mulberry

You're violating XML structure like this (just like M$ does with
WordML).
That's why you're getting the error. You can't program
spaghetti-code-style in XSLT the way you were trying. Everything is
highly hierarchical.

You should put the table-cell in a named xsl:template where you can pass
in the node to use for the address. Then maybe you can do something
along these lines, for example:

xsl:for-each select=//client
  xsl:if test=position() mod 3 = 0 !--only take every third node--
fo:table-row
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=./
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[1]/
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[2]/
  /xsl:call-template/
/fo:table-row
  /xsl:if
/xsl:for-each

Untested and without guarantees!

Get a good XSLT book. I recommend XSLT and XPath - On The Edge by Jeni
Tennison.

On 24.09.2004 12:05:04 Frank Daly wrote:
 Hi
 
 I want to create an Avery labels report.  The labels I use have 3
 columns so I want a new row for the first, fourth, seventh, etc.  To
 this end I test the position and attempt to create a new row when
 position() modulus 3 = 1.
 
 xsl:for-each select=//client
   xsl:if test=position() mod 3 =1
 !-- new row --
 fo:table-row
   /xsl:if
 
 I then put in the cell and my name and address.
 
 I then have a second test
   xsl:if test=position() mod 3 =1
 /fo:table-row
   /xsl:if
 /xsl:for-each
 
 Unfortunately I get the error below
 
 The element type fo:table-row must be terminated by the matching
 end-tag .
 
 Could someone point me in the right direction please.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Avery labels

2004-09-24 Thread Frank Daly
Hi

I want to create an Avery labels report.  The labels I use have 3
columns so I want a new row for the first, fourth, seventh, etc.  To
this end I test the position and attempt to create a new row when
position() modulus 3 = 1.

xsl:for-each select=//client
  xsl:if test=position() mod 3 =1
!-- new row --
fo:table-row
  /xsl:if

I then put in the cell and my name and address.

I then have a second test
  xsl:if test=position() mod 3 =1
/fo:table-row
  /xsl:if
/xsl:for-each

Unfortunately I get the error below

The element type fo:table-row must be terminated by the matching
end-tag .

Could someone point me in the right direction please.

Frank


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [work] Re: Avery labels

2004-09-24 Thread Frank Daly
Many thanks for your thoughtful reply but I can't get it to work.
Surely someone has come across this problem before and found a solution.

Frank

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 24 September 2004 01:23
To: [EMAIL PROTECTED]
Subject: [work] Re: Avery labels

This is an XSLT question, not really related to FOP. 
http://xml.apache.org/fop/maillist.html#xslt-mulberry

You're violating XML structure like this (just like M$ does with
WordML).
That's why you're getting the error. You can't program
spaghetti-code-style in XSLT the way you were trying. Everything is
highly hierarchical.

You should put the table-cell in a named xsl:template where you can pass
in the node to use for the address. Then maybe you can do something
along these lines, for example:

xsl:for-each select=//client
  xsl:if test=position() mod 3 = 0 !--only take every third node--
fo:table-row
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=./
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[1]/
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[2]/
  /xsl:call-template/
/fo:table-row
  /xsl:if
/xsl:for-each

Untested and without guarantees!

Get a good XSLT book. I recommend XSLT and XPath - On The Edge by Jeni
Tennison.

On 24.09.2004 12:05:04 Frank Daly wrote:
 Hi
 
 I want to create an Avery labels report.  The labels I use have 3
 columns so I want a new row for the first, fourth, seventh, etc.  To
 this end I test the position and attempt to create a new row when
 position() modulus 3 = 1.
 
 xsl:for-each select=//client
   xsl:if test=position() mod 3 =1
 !-- new row --
 fo:table-row
   /xsl:if
 
 I then put in the cell and my name and address.
 
 I then have a second test
   xsl:if test=position() mod 3 =1
 /fo:table-row
   /xsl:if
 /xsl:for-each
 
 Unfortunately I get the error below
 
 The element type fo:table-row must be terminated by the matching
 end-tag .
 
 Could someone point me in the right direction please.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [work] Re: Avery labels

2004-09-24 Thread Frank Daly
Thanks again.  This has to be the most polite and friendly user group
around!

Frank

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: 24 September 2004 05:31
To: [EMAIL PROTECTED]
Subject: Re: [work] Re: Avery labels

On Sep 24, 2004, at 9:13 AM, Frank Daly wrote:
 Many thanks for your thoughtful reply but I can't get it to work.
 Surely someone has come across this problem before and found a 
 solution.

 Frank

Someone probably has. That's why Jeremias was directing you to the XSLT 
list where someone probably has already come up with a nifty solution 
to your problem. The FOP Mailing List page[1] has links to the XSLT 
List (hosted at Mulberry Tech)[2] where you can ask your question. 
Better yet, the FOP Resources page has a section called Books, 
Tutorials, Articles[3] which has links to many resources (online and 
otherwise), where you can probably find the answer to your question. I 
recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT  
XSL-FO).

Hope this helps!

Web Maestro Clay

[1]
http://xml.apache.org/fop/maillist.html
[2]
http://www.mulberrytech.com/xsl/xsl-list
[3]
http://xml.apache.org/fop/resources.html#documents
[4]
http://www.dpawson.co.uk/xsl/xslfaq.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [work] Re: Problem with External-graphic and authentication

2004-09-11 Thread Frank Daly
Never mind.  I've created a subdirectory of webapps named images with no
authentication required.

Frank 

-Original Message-
From: Frank Daly [mailto:[EMAIL PROTECTED] 
Sent: 11 September 2004 12:05
To: [EMAIL PROTECTED]
Subject: RE: [work] Re: Problem with External-graphic and authentication

Thanks very much for your reply.  Is there a way with tomcat to restrict
access to the image to localhost?

Frank

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 10 September 2004 10:11
To: [EMAIL PROTECTED]
Subject: [work] Re: Problem with External-graphic and authentication

Frank Daly wrote:
 I have switched to tomcat 5 and am using basic authentication.  I was
 able to display an image using the external-graphic fo and tomcat 4.1
 also with authentication.  I can see the image when I type the url in
 directly and then login.  Is there a way to include the authentication
 data in the url

No.

 or do I have to sacrifice the authentication?

You can restrict access to the image to localhost, or some
similar tricks.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with External-graphic and authentication

2004-09-10 Thread Frank Daly
Hi

I have switched to tomcat 5 and am using basic authentication.  I was
able to display an image using the external-graphic fo and tomcat 4.1
also with authentication.  I can see the image when I type the url in
directly and then login.  Is there a way to include the authentication
data in the url or do I have to sacrifice the authentication?

Frank


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tables in fo:static-content

2003-10-31 Thread Frank Daly
I have a table in a header so it's not the first cause.

Frank

-Original Message-
From: Daniel Easton [mailto:[EMAIL PROTECTED] 
Sent: 31 October 2003 10:14
To: [EMAIL PROTECTED]
Subject: fo:tables in fo:static-content

Dear all,

Not sure if this is the correct list to write to (if it is incorrect
please
accept my apologies) but am having some difficulty with an XSL FO
document.

Briefly my current development set up involves formatting my initial
data
into my own ML and then transforming into the fo namespace so I can
transform to a pdf using FOP.  My problem specifically is that I am
generating header and footer content (in the static-content tags) from
the
intermediary ML which is only showing on the first page and not on any
subsequent pages.  The intermediary ML uses a table (based closely on
the
html table syntax) to layout the header and footer (for convenience) and
the
XSL file converts the header and footer tables into fo:tables in the
xsl-region-before and xsl-region-after.  Unfortunately these tables only
show on the first page and not on any of the others :-(

I have narrowed this problem down to 2 possible causes:
1) fo:static-content is not able to handle fo:tables in the header and
footer (this could be a FOP problem?)
2) I am not correctly defining the page sequence and page templates
correctly (I think I have fixed this)

Attached is the input xml (called mrml) and the xslfo stylesheet to
convert
to valid fo.

Many thanks for any help in advance,

Cheers

Daniel

PS If you have received this mail already, many apologies (some
confusion
over which is the correct list)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



keep-with-next

2003-10-24 Thread Frank Daly
Hi

I have a table which will list a number of clients.  There are 2 or 3
rows displaying the details of each client.  I want to keep these rows
together and have the following code fragment which I hoped would do
this

 xsl:for-each select=client
   fo:table-row keep-with-next.within-page=always
 fo:table-cell
   fo:block
 xsl:value-of select = position()/
   /fo:block
 /fo:table-cell
 fo:table-cell
   fo:block font-size=9pt 
 Name: xsl:value-of select=first_names/nbsp;
   xsl:value-of select=surname/
   /fo:block
 /fo:table-cell
 fo:table-cell
   fo:block1/fo:block
 /fo:table-cell
 xsl:for-each select= results
   fo:table-cell
 fo:block
   xsl:value-of select=result/
 /fo:block
   /fo:table-cell
 /xsl:for-each
   /fo:table-row
   !-- row for second detail --
   fo:table-row keep-with-previous.within-page=always

I searched google and I think the above should work.

Any advice would be much appreciated.

Frank 


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: keep-with-next

2003-10-24 Thread Frank Daly
Thanks for your quick reply Chris

I've tried it and it doesn't work.  The page break splits two rows
relating to one client.

I'm not sure which version of fop I'm using.  I use cocoon 2.0.4 and fop
came with that.  This version of cocoon was released in march 2003.

Frank

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 24 October 2003 03:43
To: [EMAIL PROTECTED]
Subject: Re: keep-with-next

From: Frank Daly [EMAIL PROTECTED]

Hi

I have a table which will list a number of clients.  There are 2 or 3
rows displaying the details of each client.  I want to keep these rows
together and have the following code fragment which I hoped would do
this

Your XSL-FO looks fine. keep-* properties are implemented on table-rows
in 
FOP, so it should work. Have you tried it? What version of FOP are you 
using?

Chris

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: keep-with-next

2003-10-24 Thread Frank Daly
That worked.  Thanks very much, enjoy your weekend.

Frank

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 24 October 2003 04:25
To: [EMAIL PROTECTED]
Subject: Re: keep-with-next

Frank Daly wrote:
fo:table-row keep-with-next.within-page=always

Try keep-with-next=always. I think FOP ignores within-page
and uses within-column only.


J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]