Re: Learning needeed

2002-06-04 Thread John Austin
On Tuesday 28 May 2002 02:09 am, you wrote:
 Ramon Maria Gallart wrote:
  Hi all! I want to learn how to use FOP well and all the


 I found the XSL FO Tutorial on www.renderx.com quite useful. Also, if

And I think there is something on the Antenna House web site:

http://www.antenna.co.jp/XML/downfree/howtoRC/Howtodevelop-en.pdf




RE: speed

2002-06-04 Thread Keiron Liddle
On Mon, 2002-06-03 at 16:18, Norr, Peter wrote:
 for example a 17 page document takes 100 seconds..
 
 it has a  header, footer and one long table as the body.
 peter

That is quite slow. Are you embedding FOP, if so is there enough memory,
are you using buffered stream etc. Is debugging off (after checking for
unusual messages). What about images.

Maybe it is simply the long table, the fixes mentioned before might
help.




SVG graphic box/size

2002-06-04 Thread Murad Sæter
Hi,

I'm making a small report with xml, xsl and svg-file.
I've put the files on http://www.stud.ntnu.no/~sater/xml.

When I generate the pdf with FOP, the svg-image is cut to
a small box. This is probably a problem with med xsl-file,
but as a xsl-newbie I can't see it.

When I look at the file with Antenna House XSL Formatter it
looks fine.

Could someone please give me a hint?

Thanks,

Murad Sæter


RE: speed

2002-06-04 Thread Cyril Rognon
check the archive list :))
http://marc.theaimsgroup.com/?l=fop-devm=101310355622557w=2
Have a nice performance boost.
Cyril
At 11:00 03/06/2002 -0400, you wrote:
do you have an example of breaking up a long table into multiple
page-sequences?



FOP: external-grahicS

2002-06-04 Thread Andre Marthaler
Hello,

i use FOP 0.20.3 under Linux and Win2k.

I have a Problem intregation External Pictures in xsl-region-before and in
xsl-region-after
i use an XML with an XSL File.
Here are my code:

fo:static-content flow-name=xsl-region-after
fo:block
fo:external-graphic 
src=file:/bild1.jpg/
/fo:block
/fo:static-content

--
I define both in the simple-page-master, but everytime he say Some static
content could not fit in the area.
I dont understand, why i can't integrate External Pictures in Before and
After.

Is this an burg or what??


André Marthaler
(Sorry for bad English :-) )




RE: SVG graphic box/size

2002-06-04 Thread Murad Sæter
Thanks, but I can't quite understand :)

I get the same portion of the image without width/height and 
content-width/height attributes. How do I set the width and height on the svg 
itself? The svg looks fine in internet explorer. Do I have to edit the svg? It 
is produced fra a awt.image to svg with batik.

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED] 
Sent: 4. juni 2002 10:50
To: [EMAIL PROTECTED]
Subject: Re: SVG graphic box/size



It is something to do with the width and height that you are setting on the svg 
through the content width and height. This is creating a view of only the 
corner of the image. Try setting the width and height on the svg itself.


On Tue, 2002-06-04 at 10:06, Murad Sæter wrote:
 Hi,
 
 I'm making a small report with xml, xsl and svg-file.
 I've put the files on http://www.stud.ntnu.no/~sater/xml.
 
 When I generate the pdf with FOP, the svg-image is cut to
 a small box. This is probably a problem with med xsl-file, but as a 
 xsl-newbie I can't see it.
 
 When I look at the file with Antenna House XSL Formatter it looks 
 fine.
 
 Could someone please give me a hint?
 
 Thanks,
 
 Murad Sæter
 




Re: FOP: external-grahicS

2002-06-04 Thread Swanil_Ruth

Hi Andre,
   Try defining it in the fo:page-sequence. Your code within the fo:root should look something like below..
fo:layout-master-set
 fo:simple-page-master master-name=Test 
   page-height=29.3cm 
   page-width=21cm
   margin-top=1cm 
   margin-bottom=2cm 
   margin-left=0.75cm 
   margin-right=0.75cm
 fo:region-body margin-top=3cm/
 fo:region-before extent=5cm/
 fo:region-after extent=1.5cm/
  /fo:simple-page-master
  
/fo:layout-master-set

fo:page-sequence master-reference=Test

 fo:static-content flow-name=xsl-region-before
 fo:block
  fo:external-graphic src="">
 /fo:block
 /fo:static-content
 fo:static-content flow-name=xsl-region-after
 fo:block
  fo:external-graphic src="">
 /fo:block
 /fo:static-content

 fo:flow flow-name=xsl-region-body
xsl:apply-templates/
 /fo:flow
/fo:page-sequence

Regards,
Roopa
 








Andre Marthaler [EMAIL PROTECTED]
06/04/02 02:38 PM
Please respond to fop-user


To:[EMAIL PROTECTED]
cc:
Subject:FOP: external-grahicS


Hello,

i use FOP 0.20.3 under Linux and Win2k.

I have a Problem intregation External Pictures in xsl-region-before and in
xsl-region-after
i use an XML with an XSL File.
Here are my code:

  fo:static-content flow-name=xsl-region-after
   fo:block
   fo:external-graphic src="">
   /fo:block
  /fo:static-content

--
I define both in the simple-page-master, but everytime he say Some static
content could not fit in the area.
I dont understand, why i can't integrate External Pictures in Before and
After.

Is this an burg or what??


André Marthaler
(Sorry for bad English :-) )






BMP-error and resolutions

2002-06-04 Thread Malin Norrstrand

Hello all!

I have two questions concerning Fop and PDF. 

1. In the fop specs it says that output images will have a resolution of
72 dpi. I have tried generating pdf with jpgs and gifs of both 72 dpi
and 600 dpi, and it seems like fop does not care about changing
resolution. Does anybody know how this works?

2. When trying to generate a pdf with a bmp image in it, I get an
exception. Does fop only support some types of bmp, and if so, which
ones? I have tried with screenshots and downloaded images, and some bmps
saved in Photoshop. The exception:

java.lang.ArrayIndexOutOfBoundsException
at org.apache.fop.image.BmpImage.loadImage(BmpImage.java:120)
at
org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:2
31)
at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:163)
at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1202)
at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:708)
at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217)
at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:307)
at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser
.java:559)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceB
inder.java:853)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.
java:643)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida
tor.java:2978)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja
va:918)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(X
MLDocumentFragmentScannerImpl.java:1145)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML
DocumentFragmentScannerImpl.java:988)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1148)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.run(Driver.java:554)
at
se.infologic.ibase.client.export.ExportXml.write(ExportXml.java:160)


Thanks!



Again out of Memory Error

2002-06-04 Thread Balaji Loganathan
Hi,
  Recently many people were discussing abt avoiding
out of memory error,I read previous threads but
couldn't able to find solution for me.
   Is this error related to Number of pages or input
xml size.Because i have a xml with 1588 group of
element,which i have to render into PDF in table
format.I can minimize the page size by reducing the
font size.At present its generating upto 51 pages then
it throwing out of memory error.
  Some constraints..
   1.I have to embedd a new font called Arial UniCode
MS(the ttf file size is 23mb) for Unicodes.
   2.in xsl:for loop,i have used xsl:choose with 15
xsl:when's.
So is the error is related to XML file size or number
of pdfpages or xsl coding style. ??
  
 I can send xslxml personally if needed to avoid
unnecessary bulking.
  Please suggests.

Regards
Balaji

http://www.sold.com.au - The Sold.com.au Big Brand Sale
- New PCs, notebooks, digital cameras, phones and more ... Sale ends June 12


FOP: Linebreak Problem

2002-06-04 Thread Andre Marthaler
Hello,

i use FOP 0.20.3 under Linux and Win2k.

I have a Problem using XSL Templates.
i use an XML with an XSL File.

I want integrate a Link into a Text.
I formatting the a Tag, but he'S making a break before and after the a
href Link.
I dont know how to disable this feature.

So the PDF is looking like this:

Lorem ipsum dolor sit amet, consetetur [
myLink
] sadipscing elitr.


He's making a break before and after myLink.

Here are my XSL:




?xml version=1.0 encoding=UTF-8?
!DOCTYPE fo:root [
!ENTITY nbsp #160;
]
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=A4
page-width=210mm page-height=297mm
margin-top=0.5cm margin-bottom=0.5cm
margin-left=0cm margin-right=0cm
fo:region-before extent=3.8cm/
fo:region-body margin-top=3.7cm 
margin-bottom=3cm
margin-left=1cm margin-right=1cm/
fo:region-after extent=2cm/

/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=A4 
initial-page-number=1
!-- Region Before --
fo:static-content 
flow-name=xsl-region-before
fo:block
fo:external-graphic 
src=file:/bild1.jpg/
/fo:block
fo:table table-layout=fixed
fo:table-column 
column-width=17cm/
fo:table-body
fo:table-row
fo:table-cell

fo:block margin-left=1cm margin-right=1cm color=#3C6EA0

font-family=sans-serif font-weight=bold
font-size=14pxHeadline/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:static-content

!-- Region After --
fo:static-content flow-name=xsl-region-after
fo:block
fo:external-graphic 
src=file:/bild2.jpg/
/fo:block
/fo:static-content

!-- Region Body --
fo:flow flow-name=xsl-region-body
fo:table table-layout=fixed
fo:table-column 
column-width=7cm/
fo:table-column 
column-width=10cm/
fo:table-body

xsl:apply-templates select=page/
/fo:table-body
/fo:table
/fo:flow
/fo:page-sequence
/fo:root
/xsl:template

xsl:template match=a
fo:block
fo:basic-link 
external-destination=http://www.graffitiart.de;
color=blue
fo:inline
text-decoration=underlinexsl:apply-templates//fo:inline
/fo:basic-link
/fo:block
/xsl:template

xsl:template match=br
fo:block/fo:block
/xsl:template

xsl:template match=body/content/zelle_rechts
fo:block
xsl:apply-templates /
/fo:block
/xsl:template

xsl:template match=page
fo:table-row
fo:table-cell
fo:block
fo:external-graphic 
src=file:/bild1.jpg/
/fo:block
/fo:table-cell
fo:table-cell
fo:block

external-graphic width height

2002-06-04 Thread Florence Deforge
Hi

I need to resize some gif images which are to be displayed in a pdf doc.

I tried to insert the following code inside a block or a table-cell :
fo:external-graphic width=75% height=75% text-align=center
xsl:attribute name=src
xsl:textfile:/xsl:text
xsl:value-of select=image/
/xsl:attribute
/fo:external-graphic

Whatever percentage or absolute size is set, the graphic is displayed with
same size (which is not the original size as well).

Could anyone advice please ?

Thanks in advance
Florence




Re: Again out of Memory Error

2002-06-04 Thread Cyril Rognon
I suppose you are using FOP 0.20.3...
first, what amount of memory do you give to FOP ? meaning do you use -Xms 
and -Xmx jvm parameters to give Java JVM the memory needed ?

Second please state how many tables there are in your document, and how 
many pages long the longest table is.

Do you use as many page sequences as you can ?
Long tables and long page sequences are known to increase the memory 
requierments of FOP.
error has nothing to do with xml. Xsl could be used to create additionnal 
page sequences. List Archive shows you how.

I hope that helps.
Cyril
At 00:26 05/06/2002 +1000, you wrote:
Hi,
  Recently many people were discussing abt avoiding
out of memory error,I read previous threads but
couldn't able to find solution for me.



FOP error with xsl:copy-of .../

2002-06-04 Thread normbishop1
  Hi,

  I am attaching the test xsl,xml and the java files.  The problem is that the 
description of any node could have tags and text mixed.  If I use 
xsl:value-of (with FOP), I get only
  the text and when I use xsl:copy-of (without FOP embeded), I get the 
desired result, but with FOP I am getting 'error 10231'   I have tried 
everything that I could think of and could not come up with the correct 
stylesheet.  
  I truly could use your help
  I am anxiously waiting for a solution.

  Thank you so much in advance.
  Norm

  --- ERROR -
  ERROR   10231   [fop ] (): Unknown formatting object null^chapter_title
  Exception in thread main org.apache.fop.apps.FOPException: 
java.lang.NullPoin
  erException
 at org.apache.fop.apps.Driver.render(Driver.java:486)
 at test1.main(test1.java:102)

   test.xml --
  ?xml version=1.0 encoding=iso-8859-1?
  ?xml-stylesheet type='text/xsl' href='test.xsl'?
  document id=DOCUMENT 810-005_103
 chapter id=test
 chapter_titleTesting Chapter sub3/sub/chapter_title
 /chapter
  /document

  --  test.xsl ---
  xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=document
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;  
   fo:layout-master-set
 fo:simple-page-master page-width=200mm master-name=Page1 
page-height=280mm
  margin-top=10mm margin-bottom=10mm margin-left=20mm margin-right=20mm
   fo:region-body margin-top=0mm margin-bottom=10mm
margin-left=0mm margin-right=0mm/
 /fo:simple-page-master
 fo:page-sequence-master master-name=PS1
   fo:single-page-master-reference master-name=Page1/
 /fo:page-sequence-master  
   /fo:layout-master-set
   
   fo:page-sequence  master-reference=Page1
 fo:flow  flow-name=xsl-region-body 
  xsl:apply-templates/
 /fo:flow 
   /fo:page-sequence   
 /fo:root
   /xsl:template
   
  xsl:template match=document/chapter/chapter_title
 fo:block space-after=3mm font-size=14pt text-align=center 
break-before=page
  break-after=page
   xsl:copy-of select=./
  /fo:block
/xsl:template
  /xsl:stylesheet

  --- test.java file just the main()
  public static void main () {

 File xmlFile=new File(test.xml);
 File xslFile=new File(test.xsl);
 File pdfFile=new File(test.pdf);

 Logger log = null;

   if(log == null) {
 Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
 log = hierarchy.getLoggerFor(fop);
 log.setPriority(Priority.WARN);
   }
 FileOutputStream OutFile = new FileOutputStream(pdfFile);
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 Driver driver=new Driver();
 
 driver.setLogger(log);
 driver.setRenderer(Driver.RENDER_PDF);
 InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
 XMLReader p=ih.getParser();
 driver.setOutputStream(OutFile);
 driver.render(p, ih.getInputSource());
 OutFile.close();
  }
 }//main


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience 
the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/



Re: FOP error with xsl:copy-of .../

2002-06-04 Thread Oleg Tkachenko
There are no chapter_title or sub formatting objects in xsl-fo, you have to 
transform it in xslt to fo objects, like fo:inline rather than just copying 
them to the fo.

[EMAIL PROTECTED] wrote:
  Hi,
  I am attaching the test xsl,xml and the java files.  The problem is that the description of any node could have tags and text mixed.  If I use xsl:value-of (with FOP), I get only
  the text and when I use xsl:copy-of (without FOP embeded), I get the desired result, but with FOP I am getting 'error 10231'   I have tried everything that I could think of and could not come up with the correct stylesheet.  
  I truly could use your help
  I am anxiously waiting for a solution.

  Thank you so much in advance.
  Norm
  --- ERROR -
  ERROR   10231   [fop ] (): Unknown formatting object null^chapter_title
  Exception in thread main org.apache.fop.apps.FOPException: 
java.lang.NullPoin
  erException
 at org.apache.fop.apps.Driver.render(Driver.java:486)
 at test1.main(test1.java:102)
   test.xml --
  ?xml version=1.0 encoding=iso-8859-1?
  ?xml-stylesheet type='text/xsl' href='test.xsl'?
  document id=DOCUMENT 810-005_103
 chapter id=test
 chapter_titleTesting Chapter sub3/sub/chapter_title
 /chapter
  /document

  --  test.xsl ---
  xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=document
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;  
   fo:layout-master-set
 fo:simple-page-master page-width=200mm master-name=Page1 page-height=280mm
  margin-top=10mm margin-bottom=10mm margin-left=20mm margin-right=20mm
   fo:region-body margin-top=0mm margin-bottom=10mm
margin-left=0mm margin-right=0mm/
 /fo:simple-page-master
 fo:page-sequence-master master-name=PS1
   fo:single-page-master-reference master-name=Page1/
 /fo:page-sequence-master  
   /fo:layout-master-set
   
   fo:page-sequence  master-reference=Page1
 fo:flow  flow-name=xsl-region-body 
  xsl:apply-templates/
 /fo:flow 
   /fo:page-sequence   
 /fo:root
   /xsl:template
   
  xsl:template match=document/chapter/chapter_title
 fo:block space-after=3mm font-size=14pt text-align=center break-before=page
  break-after=page
   xsl:copy-of select=./
  /fo:block
/xsl:template
  /xsl:stylesheet

  --- test.java file just the main()
  public static void main () {

 File xmlFile=new File(test.xml);
 File xslFile=new File(test.xsl);
 File pdfFile=new File(test.pdf);
 Logger log = null;
   if(log == null) {
 Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
 log = hierarchy.getLoggerFor(fop);
 log.setPriority(Priority.WARN);
   }
 FileOutputStream OutFile = new FileOutputStream(pdfFile);
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 Driver driver=new Driver();
 
 driver.setLogger(log);
 driver.setRenderer(Driver.RENDER_PDF);
 InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
 XMLReader p=ih.getParser();
 driver.setOutputStream(OutFile);
 driver.render(p, ih.getInputSource());
 OutFile.close();
  }
 }//main

__
Your favorite stores, helpful shopping tools and great gift ideas. Experience 
the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/

--
Oleg Tkachenko
Multiconn International, Israel


Re: FOP error with xsl:copy-of .../

2002-06-04 Thread normbishop1

Hi Oleg,

I am new to xsl-fo.  I thought I was doing the xsl-fo transformation correctly. 
 Will you PLEASE explaine me how I should do this?  
you have to transform it in xslt to fo objects, like fo:inline rather than 
just copying them to the fo.

Thank you
Norm

[EMAIL PROTECTED] wrote:
 Hi,
   
 I am attaching the test xsl,xml and the java files.  The problem is that 
the description of any node
  could have tags and text mixed.  If I use xsl:value-of (with FOP), I get 
only
 the text and when I use xsl:copy-of (without FOP embeded), I get the 
desired result, but with FOP I
  am getting 'error 10231'   I have tried everything that I could think of and 
could not come up with the
  correct stylesheet.  
 I truly could use your help
 I am anxiously waiting for a solution.
   
 Thank you so much in advance.
 Norm
   
 --- ERROR -
 ERROR   10231   [fop ] (): Unknown formatting object 
null^chapter_title
 Exception in thread main org.apache.fop.apps.FOPException: 
java.lang.NullPoin
 erException
at org.apache.fop.apps.Driver.render(Driver.java:486)
at test1.main(test1.java:102)
   
  test.xml --
 ?xml version=1.0 encoding=iso-8859-1?
 ?xml-stylesheet type='text/xsl' href='test.xsl'?
 document id=DOCUMENT 810-005_103
chapter id=test
chapter_titleTesting Chapter sub3/sub/chapter_title

/chapter
 /document
   
 --  test.xsl ---
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
   xsl:template match=document
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;  
  fo:layout-master-set
fo:simple-page-master page-width=200mm master-name=Page1 
page-height=280mm
 margin-top=10mm margin-bottom=10mm margin-left=20mm 
margin-right=20mm
  fo:region-body margin-top=0mm margin-bottom=10mm
   margin-left=0mm margin-right=0mm/
/fo:simple-page-master
fo:page-sequence-master master-name=PS1
  fo:single-page-master-reference master-name=Page1/
/fo:page-sequence-master  
  /fo:layout-master-set
  
  fo:page-sequence  master-reference=Page1
fo:flow  flow-name=xsl-region-body 
 xsl:apply-templates/
/fo:flow 
  /fo:page-sequence   
/fo:root
  /xsl:template
  
 xsl:template match=document/chapter/chapter_title
fo:block space-after=3mm font-size=14pt text-align=center 
break-before=page
 break-after=page
  xsl:copy-of select=./
 /fo:block
   /xsl:template
 /xsl:stylesheet
   
 --- test.java file just the main()
 public static void main () {
   
File xmlFile=new File(test.xml);
File xslFile=new File(test.xsl);
File pdfFile=new File(test.pdf);
   
Logger log = null;
   
  if(log == null) {
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
log = hierarchy.getLoggerFor(fop);
log.setPriority(Priority.WARN);
  }
FileOutputStream OutFile = new 
FileOutputStream(pdfFile);
ByteArrayOutputStream out = new 
ByteArrayOutputStream();
Driver driver=new Driver();

driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
XMLReader p=ih.getParser();
driver.setOutputStream(OutFile);
driver.render(p, ih.getInputSource());
OutFile.close();
 }
}//main
   



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience 
the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/



Re: wrong namespace??

2002-06-04 Thread J.Pietschmann
Esteban Gonzalez wrote:
 I´m running out of ideas.
For a start, if you have still stuff after this:
 trans.transform( new DOMSource( voucher ), new
SAXResult( driver.getContentHandler() ));
delete it. Especially delete the call to render().
It is possible that the error is generated by the
second attempt at rendering the DOM document. The
trans.transform() already renders the document.
Further:
?xml version=1.0 encoding=UTF-8?
?xml-stylesheet type=text/xsl
href=c:\enhydra\xml1\assistcard\com\icard\xml\voucher.xsl?
There is no need for a stylesheet to link to a
stylesheet (or itself). Delete this.
In particular:
 ?xml-stylesheet type=text/xsl
there is no such MIME type, if you use such a PI to
link a stylesheet to an XML file (for client side
processing), use text/xml.
If all else fails, use a stylesheet to extract the
version of the style sheet, like
--- dump.xsl ---
xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:template match=/
xsl:value-of select=*/@version/
  /xsl:template
/xsl:stylesheet
   Document xsl = xml.getXSL();
   Transformer trans = TransformerFactory.newInstance()
 .newTransformer(new StreamSource(dump.xsl));
   trans.transform( new DOMSource(xsl),
 new StreamResult(dump.result));
The result should be something like
 ?xml version=1.0 encoding=utf-8?1.0
J.Pietschmann


Re: FOP: external-grahicS

2002-06-04 Thread J.Pietschmann
Andre Marthaler wrote:
fo:external-graphic src=file:/bild1.jpg/
Use file:///bild1.jpg
--
I define both in the simple-page-master, but everytime he say Some static
content could not fit in the area.
I dont understand, why i can't integrate External Pictures in Before and
After.
You can use external graphics in static content.
The pictures are simply too big.
Bitmap graphics like JPG images are rendered at 72dpi
unless width and/or height is explicitely specified for
the fo:external-graphics element. This means a
100x100 Pixel image is rendered roughly at a size
of 3.53cm x 3.53cm. Your region is probably not high
enough. Increase the extent of the region, or specify
a height=1cm or something, or rescale your image.
J.Pietschmann


Re: external-graphic width height

2002-06-04 Thread J.Pietschmann
Florence Deforge wrote:
Hi
I need to resize some gif images which are to be displayed in a pdf doc.
I tried to insert the following code inside a block or a table-cell :
fo:external-graphic width=75% height=75% text-align=center
xsl:attribute name=src
xsl:textfile:/xsl:text
xsl:value-of select=image/
/xsl:attribute
/fo:external-graphic
Whatever percentage or absolute size is set, the graphic is displayed with
same size (which is not the original size as well).
Could anyone advice please ?
It seems that a percental width does not work on
fo:external-graphic. Use an absolute measure like width=5cm.
Note that 75% won't scale the image to 75% of the original
width, even if it worked, it would scale the image to 75% of
the width of the enclosing reference area. Note further that
when it comes to rendering of bitmapped images to physical
devices your definition of original size may be quite
different from anyone's else, but still everyone is right.
J.Pietschmann



Re: FOP error with xsl:copy-of .../

2002-06-04 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I am new to xsl-fo.  I thought I was doing the xsl-fo transformation
 correctly. Will you PLEASE explaine me how I should do this?
Would you ask on rec.aviation Would you PLEASE
teach me how to fly aircraft (by email)?
Search the web for formatting object tutorial and
variants, there are some available. There is also the
XSL FAQ http://www.dpawson.co.uk/, but given your
activity on the XSL list you already discovered it.
Questions regarding transformation of arbitrary XML
into anything including XSLFO are best asked on the
XSL list anyway.
J.Pietschmann