[jira] [Created] (FOP-2517) keep-together.within-page=auto is not work,but the always is work.

2015-08-20 Thread zhangcui (JIRA)
zhangcui created FOP-2517:
-

 Summary: keep-together.within-page=auto is not work,but the 
always is work.
 Key: FOP-2517
 URL: https://issues.apache.org/jira/browse/FOP-2517
 Project: FOP
  Issue Type: Wish
Reporter: zhangcui


i am use Transformer to convert xml to pdf,the src is

FopFactory fF = FopFactory.newInstance();
fF.setUserConfig(..);
fF.getFontManager().setFontBaseURL(..);
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, 
foUserAgent,out);
Result result = new SAXResult(fop.getDefaultHandler());
TransformerFactory tFactory = 
TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new 
StreamSource(xslReader));
transformer.setParameter(tt, paramPath);
transformer.transform(xmlSource, result);

the xsl is
xsl:element name=fo:table-row
   xsl:attribute name=keep-together.within-page
xsl:value-of select=auto/xsl:value-of
/xsl:attribute
/xsl:element

but it's not work.but if i change it to always,it work.
why?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: FOP2.0 Docbook XSL NullPointerException

2015-08-20 Thread Chris Bowditch

Hi There,

Unfortunately not, that's the XML. We need XSL-FO (which is the input to 
FOP) to help you. Also, this is the wrong mailing list for FOP user 
questions. You should subscribe to fop-us...@xmlgraphics.apache.org to 
ask questions about using FOP.


Thanks,

Chris

On 17/08/2015 18:05, Rahman USTA wrote:

Hello;

After investigation, followed docbook content failed;

?xml version=1.0 
encoding=UTF-8??asciidoc-toc??asciidoc-numbered?article 
xmlns=http://docbook.org/ns/docbook; 
xmlns:xlink=http://www.w3.org/1999/xlink; version=5.0 xml:lang=en

info
titleSelam/title
date2015-08-17/date
/info
section xml:id=_selam
titleSelam/title
note
simparaHello world/simpara
programlisting language=javascript linenumbering=unnumbered// 
code/programlisting

/note
/section
/article

Is it enough?


2015-08-17 9:56 GMT+03:00 Pascal Sancho psancho@gmail.com 
mailto:psancho@gmail.com:


Hi,
please, add further information:
 - full error trace,
 - attached test case: short XSL-FO (the result of XML+docbook
transformation, not the XML itself) that demonstrates the issue.


2015-08-15 17:40 GMT+02:00 Rahman USTA rahman.usta...@gmail.com
mailto:rahman.usta...@gmail.com:
 Hello;

 I want to switch 1.1 to 2.0 but when converting Docbook5 to PDF
I'm getting;

 docbook/fo/docbook.xsl; Line #312; Column #54;
 java.lang.NullPointerException

 How can we solve this problem?

 Thanks.

 --
 Rahman USTA
 Istanbul JUG
 https://github.com/rahmanusta



--
pascal




--
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta http://www.kodcu.com/




buildbot success in ASF Buildbot on fop-trunk

2015-08-20 Thread buildbot
The Buildbot has detected a restored build on builder fop-trunk while building 
ASF Buildbot. Full details are available at:
http://ci.apache.org/builders/fop-trunk/builds/43

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: orcus_ubuntu

Build Reason: The Nightly scheduler named 'fopNightly' triggered this build
Build Source Stamp: [branch xmlgraphics/fop/trunk] HEAD
Blamelist: 

Build succeeded!

Sincerely,
 -The Buildbot





Re: FOP2.0 Docbook XSL NullPointerException

2015-08-20 Thread Rahman USTA
Hi Chris, I'm using default latest docbook fo xsl. I'll use fop-user for
next.

Thanks

2015-08-20 14:17 GMT+03:00 Chris Bowditch bowditch_ch...@hotmail.com:

 Hi There,

 Unfortunately not, that's the XML. We need XSL-FO (which is the input to
 FOP) to help you. Also, this is the wrong mailing list for FOP user
 questions. You should subscribe to fop-us...@xmlgraphics.apache.org to
 ask questions about using FOP.

 Thanks,

 Chris

 On 17/08/2015 18:05, Rahman USTA wrote:

 Hello;

 After investigation, followed docbook content failed;

 ?xml version=1.0
 encoding=UTF-8??asciidoc-toc??asciidoc-numbered?article xmlns=
 http://docbook.org/ns/docbook; xmlns:xlink=http://www.w3.org/1999/xlink;
 version=5.0 xml:lang=en
 info
 titleSelam/title
 date2015-08-17/date
 /info
 section xml:id=_selam
 titleSelam/title
 note
 simparaHello world/simpara
 programlisting language=javascript linenumbering=unnumbered//
 code/programlisting
 /note
 /section
 /article

 Is it enough?


 2015-08-17 9:56 GMT+03:00 Pascal Sancho psancho@gmail.com mailto:
 psancho@gmail.com:

 Hi,
 please, add further information:
  - full error trace,
  - attached test case: short XSL-FO (the result of XML+docbook
 transformation, not the XML itself) that demonstrates the issue.


 2015-08-15 17:40 GMT+02:00 Rahman USTA rahman.usta...@gmail.com
 mailto:rahman.usta...@gmail.com:
  Hello;
 
  I want to switch 1.1 to 2.0 but when converting Docbook5 to PDF
 I'm getting;
 
  docbook/fo/docbook.xsl; Line #312; Column #54;
  java.lang.NullPointerException
 
  How can we solve this problem?
 
  Thanks.
 
  --
  Rahman USTA
  Istanbul JUG
  https://github.com/rahmanusta



 --
 pascal




 --
 Rahman USTA
 Istanbul JUG
 https://github.com/rahmanusta http://www.kodcu.com/





-- 
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta http://www.kodcu.com/