Re: [css2xslfo-support] Fw: An empty output .fo file with no complaints
Brought to you by:
wdonne
From: USHAKOV, S. <us...@in...> - 2008-10-16 12:45:33
|
Thanks Werner for the clarification. I agree that XML is a strict stuff that requires equally strict approach :) Still thinking about the newbies, I might propose that maybe not only a warning to be issued when 'html' tag is found without a proper namespace, but moreover a warning like "No formattable data found" or something similar to be issued whenever the output file is going to be empty. This would give the user a warm feeling that at least he has no problem with tool configuration, and the problem is only in the data supplied... :) Thanks and best regards, Sergey ----- Original Message ----- From: "Werner Donné" <wer...@re...> To: "USHAKOV, Sergey" <us...@in...> Cc: <css...@li...> Sent: Thursday, October 16, 2008 3:54 PM Subject: Re: [css2xslfo-support] Fw: An empty output .fo file with no complaints Hi Sergey, Thank you for the message. In your case the tool is silent because technically speaking there is no problem. Using XHTML tags without the XHTML namespace is considered to be another XML language. Since CSSToXSLFO is intended to work with any XML language it goes through the document and finds no match, which is legal in CSS. You would have the same behaviour with an XSLT style sheet for example. Technically, the built-in User Agent style sheet is written for the XHTML namespace, which is why nothing matches. If you would write an alternative User Agent style sheet without a namespace, your document would work. Of course, since there is built-in support for XHTML I could write out a warning when the "html" tag is used without the XHTML namespace, which is what I will do for the next release. Best regards, Werner. On 16 Oct 2008, at 13:11, USHAKOV, Sergey wrote: > Hi Werner, > > this is a copy of my message for the topic similar to the one being > discussed now, that recently got bounced from sourceforge mail server. > The > reason of my problem is evidently different, and it is just a > coinncidence > that two similar subjects got spoken of simultaneously. > > The problem is solved for me now, so my message is just for your > information. > > My best regards, > Sergey > > > ----- Original Message ----- > From: "USHAKOV, Sergey" <us...@in...> > To: <css...@li...> > Sent: Tuesday, October 14, 2008 8:18 AM > Subject: An empty output .fo file with no complaints > > >> Hi Werner, >> >> I have recently come across a case when the output .fo file was created >> with zero size, and no complaints were visible. >> >> Finally it came out that the namespace identifier of the source xhtml >> file >> was wrong, and fixing it solved the problem. >> >> I am not sure if keeping silence about encountered problems is the >> intended behavior for your tool :) so I thought it might be good to let >> you know... >> >> Thanks and best regards, >> Sergey > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |