Re: How to use glyphs from the Symbol font ?

2008-07-31 Thread paul womack

Daniel Noll wrote:

Andreas Delmelle wrote:
IIC, this is a FOP limitation for all versions up to and including 
0.95. FOP Trunk should now use another font than Symbol for a 'q'. Max 
implemented basic support for character-by-character font-selection, 
which is probably what Firefox does too.


Something to look forward to. :-)


This is extremely good news.  No more requiring a massive third party 
font like Arial Unicode in order to render documents with mixed 
languages! :-)


Indeed. In an academic paper in the sphere of philosophy
or literature (surely a target demographic for FOP) multiple
languages and hence a wide range of glyphs are most likely.

  BugBear

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



Help with layout and design

2008-07-31 Thread Ashish Kulkarni
Hi

I have an XML file where the data is as below

data

line1My Name1 of 1/line1

line2My Address  01/12/2008/line2

!--more lines of data here --

/data

I need to have boxes on PDF file like below, where i will hard code Name,
page

___

Name: My Name Page: 1of 1

Address: My Address  Date: 01/12/2008

___

Is it possible to do some thing like this using XSLT and XSL-Fo

Any suggestions


RE: Help with layout and design

2008-07-31 Thread Griffin,Sean
I don't think your problem will be XSLT and certainly not XSL-FO but how you 
tell the difference between one column and the next and which data element 
you're actually dealing with.

 

Just pseudo-code, outside of any particular language, what would the algorithm 
be for determining that.  How you turn that algorithm into code in XSLT could 
be trivial, if it's even safely possible.

 

From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 11:15 AM
To: fop-users@xmlgraphics.apache.org
Subject: Help with layout and design

 

Hi

I have an XML file where the data is as below

data

line1My Name1 of 1/line1

line2My Address  01/12/2008/line2

!--more lines of data here --

/data

I need to have boxes on PDF file like below, where i will hard code Name, page 

___

Name: My Name Page: 1of 1

Address: My Address  Date: 01/12/2008

___

Is it possible to do some thing like this using XSLT and XSL-Fo

Any suggestions

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

Re: Help with layout and design

2008-07-31 Thread Andreas Delmelle

On Jul 31, 2008, at 18:14, Ashish Kulkarni wrote:

Hi

Strictly speaking this is a purely XSLT-related question, so it does  
not really belong here. Please keep that in mind for the future. This  
is a list for questions about using FOP. Thanks!


Now to answer your question:

I have an XML file where the data is as below

data

line1My Name1 of 1/line1

line2My Address  01/12/2008/ 
line2


!--more lines of data here --

/data


I need to have boxes on PDF file like below, where i will hard code  
Name, page


___

Name: My Name Page: 1of 1

Address: My Address  Date: 01/12/2008



___

Is it possible to do some thing like this using XSLT and XSL-Fo

Sure, but the input XML is far from an ideal format. You have to go  
looking for a criterion that can be used to split the text-nodes,  
and /that/ part may turn out to get messy, if I interpret  
correctly... How would you determine where the name in line1 ends? Or  
the address in line2?



Other than that, it's not very difficult. If you would have:

data
  line1My Name#1 of 1/line1
  line2My Address#01/12/2008/line2
/data

then you could XPath's substring-before() and substring-after() to  
get to the right parts.


It would then be a very straightforward matching template for the  
data-elements.


xsl:template match=data
  block-container border=solid 1pt black
table table-layout=fixed inline-progression-dimension=100%
  table-column column-width=proportional-column-width(1)  
number-columns-repeated=2 /

  table-body
table-cell starts-row=true text-align=start
  block
  wrapper font-weight=boldName:/wrapper
  xsl:text /xsl:text
  xsl:value-of select=substring-before(line1, '#') /
  /block
/table-cell
table-cell ends-row=true text-align=end
  block
  wrapper font-weight=boldPage:/wrapper
  xsl:text /xsl:text
  xsl:value-of select=substring-after(line1, '#') /
  /block
/table-cell
table-cell starts-row=true text-align=start
  block
  wrapper font-weight=boldAddress:/wrapper
  xsl:text /xsl:text
  xsl:value-of select=substring-before(line2, '#') /
  /block
/table-cell
table-cell ends-row=true text-align=end
  block
  wrapper font-weight=boldDate:/wrapper
  xsl:text /xsl:text
  xsl:value-of select=substring-after(line2, '#') /
  /block
/table-cell
  /table-body
/table
  /block-container
/xsl:template

HTH!

Andreas

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



Re: Help with layout and design

2008-07-31 Thread Ashish Kulkarni
Hi

The issue, i am not the one designing this XML file, but it is already
exisiting XML file, used in some other application,

This application some how has a templelate and then takes this XML file and
mergers with this template to create PDF file, and i have to analyize if we
can do this uing XSL-FO with out modifying the XML file.

I guess we cannot use the XML file as is, but have to modify the XML file to
add some sort of delimiter to the data

Ashish

On Thu, Jul 31, 2008 at 12:51 PM, Griffin,Sean [EMAIL PROTECTED] wrote:

  I don't think your problem will be XSLT and certainly not XSL-FO but how
 you tell the difference between one column and the next and which data
 element you're actually dealing with.



 Just pseudo-code, outside of any particular language, what would the
 algorithm be for determining that.  How you turn that algorithm into code in
 XSLT could be trivial, if it's even safely possible.



 *From:* Ashish Kulkarni [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, July 31, 2008 11:15 AM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Help with layout and design



 Hi

 I have an XML file where the data is as below

 data

 line1My Name1 of 1/line1

 line2My Address  01/12/2008/line2

 !--more lines of data here --

 /data

 I need to have boxes on PDF file like below, where i will hard code Name,
 page

 ___

 Name: My Name Page: 1of 1

 Address: My Address  Date: 01/12/2008

 ___

 Is it possible to do some thing like this using XSLT and XSL-Fo

 Any suggestions
  --
 CONFIDENTIALITY NOTICE This message and any included attachments are from
 Cerner Corporation and are intended only for the addressee. The information
 contained in this message is confidential and may constitute inside or
 non-public information under international, federal, or state securities
 laws. Unauthorized forwarding, printing, copying, distribution, or use of
 such information is strictly prohibited and may be unlawful. If you are not
 the addressee, please promptly delete this message and notify the sender of
 the delivery error by e-mail or you may call Cerner's corporate offices in
 Kansas City, Missouri, U.S.A at (+1) (816)221-1024.