Hi all, I am working with a XE 1.3.8295 installation where RTF export works fine. But it will be great programmatically control the output layout (namely, pictures printed size, space before and after paragraphs or headings, space before and after pictures, footnotes,... Please, could you point me in the right direction to face this requirement? Thanks indeed for your help. Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi! [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi all,
I am working with a XE 1.3.8295 installation where RTF export works fine. But it will be great programmatically control the output layout (namely, pictures printed size, space before and after paragraphs or headings, space before and after pictures, footnotes,...
Please, could you point me in the right direction to face this requirement?
Thanks indeed for your help.
Ricardo
After a looooong monolog from Sergiu in XWiki IRC channel (thanks Sergiu!, I've started to draw a general schema for rtf exporting, but I am far from being able to understand it. Time is running out and I do need to solve an apparently simple problem. Let me show you an example: Here a simple dummy-document... http://tinyurl.com/6n348s Here the document exported as PDF... http://tinyurl.com/6auum6 Here the document exported as RTF... http://tinyurl.com/6npxe4 Here the content of pdf.css h1 { font-size: 30px; } h2 { font-size: 25px; } h3 { font-size: 20px; } h4 { font-size: 15px; } h5 { font-size: 10px; } h6 { font-size: 10px; } The first problem: I am not able to control the separation between paragraphs. I've tried a bunch of different margin flavors, but no one affects the apparently "default" settings. But font-size does work fine: it is possible to control it by modifying pdf.css The "default" settings could be acceptable for the PDF version, but never for the RTF one (the one I need now). Please, see the examples. So, please, if margins can not be set by modifying pdf.css, where must I look for the right place to control it? And, why the pdf export does set a given paragraph separation and rtf works in a different way? Thanks!!! Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi, I keep trying to understand how does this work. I've drawn a schema from what Sergiu explained to me, what I've not used any standard to represent files, objects or processes. Please, could you propose any existing standard to try to better represent what is happening in the whole process? Thanks. Here it is the diagram... http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export As per the creation of the rtf/pdf or whatever format is possible to create from a xsl-fo document, it seems that there are two points to "inject" CSS rules for the formatting: pdf.css and/or any ad hoc template. Please, what do we need pdf.css? I've created a XWiki.PDFClass class with style as only property. Then, I've created a new document, instantiated XWiki.PDFClass and tried with some simple CSS rules like these: h1 { font-size: 30px; color: red;} h2 { font-size: 30px; color: green;} h3 { font-size: 60px; } Those rules work fine. Both in the template and in pdf.css. But I am not able to change margins, spaces before and after any hx paragraph,... I guess that any rule not accepted in pdf.css, won't be accepted in a template. After all, both set of rules are used by css4j. It this is true, only xhtml2fo.xls seems the only solution to get a customized output. Please, am I right? Is the use of templates documented anywhere? Sorry for posting such an amount of queries with no answer. To control minimally the appearance of a exported rtf file is a must for me right now. As Sergiu said, if we found a suitable library, to export do Word format could be contemplated. I don't know if the GSoC project on Office Import could relate with this export issue. But until any of these advanced issues crystallizes, please, could you point me to a way to getting at least the separation of paragraphs and font for paragraphs controlled by CSS during the export action? Thank you so much, Ricardo [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi!
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi all,
I am working with a XE 1.3.8295 installation where RTF export works fine. But it will be great programmatically control the output layout (namely, pictures printed size, space before and after paragraphs or headings, space before and after pictures, footnotes,...
Please, could you point me in the right direction to face this requirement?
Thanks indeed for your help.
Ricardo
After a looooong monolog from Sergiu in XWiki IRC channel (thanks Sergiu!, I've started to draw a general schema for rtf exporting, but I am far from being able to understand it.
Time is running out and I do need to solve an apparently simple problem. Let me show you an example:
Here a simple dummy-document...
Here the document exported as PDF...
Here the document exported as RTF...
Here the content of pdf.css
h1 { font-size: 30px; } h2 { font-size: 25px; } h3 { font-size: 20px; } h4 { font-size: 15px; } h5 { font-size: 10px; } h6 { font-size: 10px; }
The first problem: I am not able to control the separation between paragraphs. I've tried a bunch of different margin flavors, but no one affects the apparently "default" settings. But font-size does work fine: it is possible to control it by modifying pdf.css
The "default" settings could be acceptable for the PDF version, but never for the RTF one (the one I need now). Please, see the examples.
So, please, if margins can not be set by modifying pdf.css, where must I look for the right place to control it?
And, why the pdf export does set a given paragraph separation and rtf works in a different way? Thanks!!!
Cheers,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
I keep trying to understand how does this work. I've drawn a schema from what Sergiu explained to me, what I've not used any standard to represent files, objects or processes. Please, could you propose any existing standard to try to better represent what is happening in the whole process? Thanks.
Here it is the diagram...
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export
I've modified the diagram with some Vincent's ideas. I've left the former version in the same page for further reference. http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export All files are now solid green. Temporary ones are lighter than permanent ones. Solid lilac form contents a draft of XWiki.PDFClass: it only includes three properties, all derived from conversations with Sergiu and Vicent as I am not able yet of following XWiki code logic. At this point, I don't know how xhtmlxsl and fopxsl properties can affect both production of the second intermediary XHTML document and the xsl-fo one. Please, let me write down again a couple of questions I need to resolve: 1. How do I control <p></p> text by using CSS rules passed in either with pdf.css or with the style XWiki.PDFClass property? 2. How do I control upper and lower margins for the different levels of headings? Thank you so much for your help, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Ricardo, On May 18, 2008, at 4:01 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
I keep trying to understand how does this work. I've drawn a schema from what Sergiu explained to me, what I've not used any standard to represent files, objects or processes. Please, could you propose any existing standard to try to better represent what is happening in the whole process? Thanks.
Here it is the diagram...
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export
I've modified the diagram with some Vincent's ideas. I've left the former version in the same page for further reference.
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export
The diagram is not completely correct. The PDFClass's xhtmlxsl and fopxsl properties are not indicated correctly. The xhtmlxsl one overrides (replaces, if defined) the default xhtml2fo.xsl one and the fopxsl one overrides (replaces, if defined) the fop.xsl one. Also the style property doesn't replace the pdf.css file (and not pdf.class as mentioned on the diagram) but comes in addition to it. The resulting CSS is pdf.css + the css specified in the style property. Thanks -Vincent
All files are now solid green. Temporary ones are lighter than permanent ones. Solid lilac form contents a draft of XWiki.PDFClass: it only includes three properties, all derived from conversations with Sergiu and Vicent as I am not able yet of following XWiki code logic.
At this point, I don't know how xhtmlxsl and fopxsl properties can affect both production of the second intermediary XHTML document and the xsl-fo one.
Please, let me write down again a couple of questions I need to resolve:
1. How do I control <p></p> text by using CSS rules passed in either with pdf.css or with the style XWiki.PDFClass property?
2. How do I control upper and lower margins for the different levels of headings?
Thank you so much for your help,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Vincent Massol wrote:
The diagram is not completely correct. The PDFClass's xhtmlxsl and fopxsl properties are not indicated correctly. The xhtmlxsl one overrides (replaces, if defined) the default xhtml2fo.xsl one and the fopxsl one overrides (replaces, if defined) the fop.xsl one.
Also the style property doesn't replace the pdf.css file (and not pdf.class as mentioned on the diagram) but comes in addition to it. The resulting CSS is pdf.css + the css specified in the style property.
Thanks -Vincent
Thanks, Vincent, I've uploaded a new release http://tinyurl.com/5oatx4 Please, what process does use xhtmlfo.xsl stylesheet to transform intermediary XHTML 2 to the XSL-FO document? At this point and considering that the resulting CSS is pdf.css + the css specified in the style property as you said before, the main issue is to know what CSS rules will be accepted there. For instance, how could I control the appearance of text within paragraph tags? I've tried a number of options without success. Thanks! Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
On May 18, 2008, at 11:17 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Vincent Massol wrote:
The diagram is not completely correct. The PDFClass's xhtmlxsl and fopxsl properties are not indicated correctly. The xhtmlxsl one overrides (replaces, if defined) the default xhtml2fo.xsl one and the fopxsl one overrides (replaces, if defined) the fop.xsl one.
Also the style property doesn't replace the pdf.css file (and not pdf.class as mentioned on the diagram) but comes in addition to it. The resulting CSS is pdf.css + the css specified in the style property.
Thanks -Vincent
Thanks, Vincent,
I've uploaded a new release http://tinyurl.com/5oatx4
Please, what process does use xhtmlfo.xsl stylesheet to transform intermediary XHTML 2 to the XSL-FO document?
a XSL Transformation.
At this point and considering that the resulting CSS is pdf.css + the css specified in the style property as you said before, the main issue is to know what CSS rules will be accepted there.
For instance, how could I control the appearance of text within paragraph tags? I've tried a number of options without success.
I don't know offhand sorry. Thanks -Vincent
Thanks!
Ricardo
Vincent Massol wrote:
On May 18, 2008, at 11:17 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Vincent Massol wrote:
The diagram is not completely correct. The PDFClass's xhtmlxsl and fopxsl properties are not indicated correctly. The xhtmlxsl one overrides (replaces, if defined) the default xhtml2fo.xsl one and the fopxsl one overrides (replaces, if defined) the fop.xsl one.
Also the style property doesn't replace the pdf.css file (and not pdf.class as mentioned on the diagram) but comes in addition to it. The resulting CSS is pdf.css + the css specified in the style property.
Thanks -Vincent Thanks, Vincent,
I've uploaded a new release http://tinyurl.com/5oatx4
Please, what process does use xhtmlfo.xsl stylesheet to transform intermediary XHTML 2 to the XSL-FO document?
a XSL Transformation.
... performed with standard JDK APIs (actually uses xalan inside). See http://www.w3.org/TR/xslt and http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/package-summary....
At this point and considering that the resulting CSS is pdf.css + the css specified in the style property as you said before, the main issue is to know what CSS rules will be accepted there.
For instance, how could I control the appearance of text within paragraph tags? I've tried a number of options without success.
I don't know offhand sorry.
There could be a problem with paragraphs, as Radeox doesn't output correct tags, so instead of having <p>the text</p>, it outputs <p/>the text (the paragraph is outside the text, not around it). As for heading margins, I don't know, maybe FOP has a bug here, or rtf doesn't support that. I'll play around when I have more free time. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu, Vicent, Thanks for your inputs. Sergiu Dumitriu wrote:
Vincent Massol wrote:
a XSL Transformation.
... performed with standard JDK APIs (actually uses xalan inside). See http://www.w3.org/TR/xslt and http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/package-summary....
OK. Please, could you take a look to the modified diagram? My main concern is to find a "standard" way of representing processes within XWiki. I know I am not the only one looking for such a thing! :-) So, any idea will be welcome. http://tinyurl.com/3ge3me I think the pieces are now clear for me. A quite different thing is to be able to deal with each of them to modify the output.
There could be a problem with paragraphs, as Radeox doesn't output correct tags, so instead of having <p>the text</p>, it outputs <p/>the text (the paragraph is outside the text, not around it).
As for heading margins, I don't know, maybe FOP has a bug here, or rtf doesn't support that. I'll play around when I have more free time.
Is this a Radeox bug or does it make sense in this environment? As for heading margins, I've been playing with a rtf file with different indentations and margins applied to headings and paragraphs. It seems to move fine at least between Word, Pages and OpenOffice. In Mac, Suse Linux and Windows. As far as I see, the next step for me is to configure a developing environment for XWiki here and learn at least how to trap at least the two intermediary XHTMLs and the XSL-FO documents to keep track of changes and issues. Please, if you have any idea about how to modify heading margins, pictures size and <p> appearance, it will be really welcome! Thanks! -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Ricardo, On May 19, 2008, at 11:52 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Sergiu, Vicent,
Thanks for your inputs.
Sergiu Dumitriu wrote:
Vincent Massol wrote:
a XSL Transformation.
... performed with standard JDK APIs (actually uses xalan inside). See http://www.w3.org/TR/xslt and http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/package-summary....
OK. Please, could you take a look to the modified diagram? My main concern is to find a "standard" way of representing processes within XWiki. I know I am not the only one looking for such a thing! :-) So, any idea will be welcome.
The diagram is great. We should put it on xwiki.org. Here's what I would do: * In DevGuide/Architecture, create a section about Export and put the diagram there with one or 2 lines of explanations. * In the AdminGuide/Configuration page, create a section for customizing the PDF/RTF output and include the image from the DevGuide/ Architecture page * In DevGuide/Architecture create a link to AdminGuide/ Configuration#... to point users to if they want to customize the PDF/ RTF outputs Thanks! -Vincent PS: You ask about how to represent processes and such. What I usually use is a FlowChart diagram for this. http://en.wikipedia.org/wiki/Flowchart. I have a FlowChart stencil in OmniGrafle. That said, I like your diagram as it is so no worries.
I think the pieces are now clear for me. A quite different thing is to be able to deal with each of them to modify the output.
There could be a problem with paragraphs, as Radeox doesn't output correct tags, so instead of having <p>the text</p>, it outputs <p/
the text (the paragraph is outside the text, not around it).
As for heading margins, I don't know, maybe FOP has a bug here, or rtf doesn't support that. I'll play around when I have more free time.
Is this a Radeox bug or does it make sense in this environment?
As for heading margins, I've been playing with a rtf file with different indentations and margins applied to headings and paragraphs. It seems to move fine at least between Word, Pages and OpenOffice. In Mac, Suse Linux and Windows.
As far as I see, the next step for me is to configure a developing environment for XWiki here and learn at least how to trap at least the two intermediary XHTMLs and the XSL-FO documents to keep track of changes and issues.
Please, if you have any idea about how to modify heading margins, pictures size and <p> appearance, it will be really welcome! Thanks!
Hi Vincent, Vincent Massol wrote:
The diagram is great. We should put it on xwiki.org. Here's what I would do:
* In DevGuide/Architecture, create a section about Export and put the diagram there with one or 2 lines of explanations. * In the AdminGuide/Configuration page, create a section for customizing the PDF/RTF output and include the image from the DevGuide/ Architecture page * In DevGuide/Architecture create a link to AdminGuide/ Configuration#... to point users to if they want to customize the PDF/ RTF outputs
Thanks! -Vincent
PS: You ask about how to represent processes and such. What I usually use is a FlowChart diagram for this. http://en.wikipedia.org/wiki/Flowchart. I have a FlowChart stencil in OmniGrafle. That said, I like your diagram as it is so no worries.
Glad to know you consider it can be useful! I will follow your guidelines as soon as possible. This Flowchart entry in Wikipedia is also an useful reminder about this topic. I used these symbols time ago, but I have not a clear idea about how to draw a "small" diagram with the pieces/languages described there. I will investigate further from this document. Thanks! Best regards, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Vincent, Vincent Massol wrote:
* In DevGuide/Architecture, create a section about Export and put the diagram there with one or 2 lines of explanations. * In the AdminGuide/Configuration page, create a section for customizing the PDF/RTF output and include the image from the DevGuide/ Architecture page * In DevGuide/Architecture create a link to AdminGuide/ Configuration#... to point users to if they want to customize the PDF/ RTF outputs
Thanks! -Vincent I've been trying to find/reach the concerned documents to no avail. Initially thought that I was doing something wrong, but I am consistently getting a access denied message. Please, must I be able to read/edit this files bu identifying myself with me XWiki.org account? Thanks!
Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
On May 24, 2008, at 1:06 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi Vincent,
Vincent Massol wrote:
* In DevGuide/Architecture, create a section about Export and put the diagram there with one or 2 lines of explanations. * In the AdminGuide/Configuration page, create a section for customizing the PDF/RTF output and include the image from the DevGuide/ Architecture page * In DevGuide/Architecture create a link to AdminGuide/ Configuration#... to point users to if they want to customize the PDF/ RTF outputs
Thanks! -Vincent I've been trying to find/reach the concerned documents to no avail. Initially thought that I was doing something wrong, but I am consistently getting a access denied message. Please, must I be able to read/edit this files bu identifying myself with me XWiki.org account?
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration Are these the pages you were trying to edit? Thanks -Vincent
Thanks Vicent. Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit?
Yes, those are the pages. Here it is what I see when accessing them with my XWiki user... http://tinyurl.com/4ee5c7 I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you. Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago... -Vincent On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit?
Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
Please, let me now if I can be of any further help from here testing any other action. Thanks for your work! Ricardo Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
-Vincent
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
-- Ricardo Rodríguez Your EPEC Network ICT Team
Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
As far as I can see, the wiki is working correctly, but the rights are wrongly set. Guest is explicitly allowed view rights, and this implicitly denies view rights to all other users. It has always been like this.
-Vincent
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit? Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu wrote:
Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
As far as I can see, the wiki is working correctly, but the rights are wrongly set.
Guest is explicitly allowed view rights, and this implicitly denies view rights to all other users. It has always been like this.
Forget that, I should have looked closer before sending the message...
-Vincent
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit? Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
-- Sergiu Dumitriu http://purl.org/net/sergiu/
On Mon, May 26, 2008 at 3:54 PM, Sergiu Dumitriu <[email protected]> wrote:
Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
Guest is explicitly allowed view rights, and this implicitly denies view rights to all other users. It has always been like this.
Yes but xwiki:XWiki.XWikiAllGroup and all the other groups have explicit view rights too. -- Jean-Vincent Drean
Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
This looks strange to me: http://fisheye2.atlassian.com/browse/xwiki/xwiki-platform/core/trunk/xwiki-c...
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit? Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Yes I removed this code as it can do anything cause of : String database = context.getDatabase(); [...] if (!database.equals(context.getDatabase())) { [...] } And it was like that since a long time ago when I reviewed the svn history... On Mon, May 26, 2008 at 4:06 PM, Sergiu Dumitriu <[email protected]> wrote:
Vincent Massol wrote:
Apparently we have a big bug, possibly in XE 1.4 since we just upgraded 2 days ago...
This looks strange to me: http://fisheye2.atlassian.com/browse/xwiki/xwiki-platform/core/trunk/xwiki-c...
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit? Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi Ricardo, In addition to the 2 locations specified below I've also created an Export page in the features guide at: http://platform.xwiki.org/xwiki/bin/view/Features/Exports I've also created the section for you here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi... Jean-Vincent is looking into the permission problem as I write. Thanks -Vincent On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit?
Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
Thanks Vincent, all! I will regain access to this thread once back in my place. I am on the road now. Greetings, Ricardo Vincent Massol wrote:
Hi Ricardo,
In addition to the 2 locations specified below I've also created an Export page in the features guide at: http://platform.xwiki.org/xwiki/bin/view/Features/Exports
I've also created the section for you here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
Jean-Vincent is looking into the permission problem as I write.
Thanks -Vincent
On May 24, 2008, at 11:57 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks Vicent.
Vincent Massol wrote:
I've checked http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture and I don't see anything wrong with it. You should be able to edit it just fine. Same for http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration
Are these the pages you were trying to edit?
Yes, those are the pages. Here it is what I see when accessing them with my XWiki user...
I can see the pages if I am not logged, but get this error once identified. Both Safari and Firefox through the same error. I hope this makes sense for you.
Cheers,
Ricardo
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Vicent, all, Sorry for being late following this thread. Vincent Massol wrote:
Hi Ricardo,
In addition to the 2 locations specified below I've also created an Export page in the features guide at: http://platform.xwiki.org/xwiki/bin/view/Features/Exports
I've also created the section for you here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
Jean-Vincent is looking into the permission problem as I write.
I am still not able to access these files logged with my user there. No problem to view them as guess. Are this working as expected of there is still some problem there? Thanks!
Thanks -Vincent
Cheers! -- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Sergiu, Vicent,
Thanks for your inputs.
Sergiu Dumitriu wrote:
Vincent Massol wrote:
a XSL Transformation.
... performed with standard JDK APIs (actually uses xalan inside). See http://www.w3.org/TR/xslt and http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/package-summary....
OK. Please, could you take a look to the modified diagram? My main concern is to find a "standard" way of representing processes within XWiki. I know I am not the only one looking for such a thing! :-) So, any idea will be welcome.
I think the pieces are now clear for me. A quite different thing is to be able to deal with each of them to modify the output.
There could be a problem with paragraphs, as Radeox doesn't output correct tags, so instead of having <p>the text</p>, it outputs <p/>the text (the paragraph is outside the text, not around it).
As for heading margins, I don't know, maybe FOP has a bug here, or rtf doesn't support that. I'll play around when I have more free time.
Is this a Radeox bug or does it make sense in this environment?
It is a bug, but an unfixable one. The problem is that Radeox works with regular expressions, and regular expressions are not strong enough to capture an paragraph.
As for heading margins, I've been playing with a rtf file with different indentations and margins applied to headings and paragraphs. It seems to move fine at least between Word, Pages and OpenOffice. In Mac, Suse Linux and Windows.
As far as I see, the next step for me is to configure a developing environment for XWiki here and learn at least how to trap at least the two intermediary XHTMLs and the XSL-FO documents to keep track of changes and issues.
Please, if you have any idea about how to modify heading margins, pictures size and <p> appearance, it will be really welcome! Thanks!
We could try to use a newer version of fop and css4j. I already updated fop in the trunk. css4j needs some testing, as the version we're using is pretty old (0.4, compared to 0.9.1), and the API might have changed. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu wrote:
It is a bug, but an unfixable one. The problem is that Radeox works with regular expressions, and regular expressions are not strong enough to capture an paragraph.
As for heading margins, I've been playing with a rtf file with different indentations and margins applied to headings and paragraphs. It seems to move fine at least between Word, Pages and OpenOffice. In Mac, Suse Linux and Windows.
As far as I see, the next step for me is to configure a developing environment for XWiki here and learn at least how to trap at least the two intermediary XHTMLs and the XSL-FO documents to keep track of changes and issues.
Please, if you have any idea about how to modify heading margins, pictures size and <p> appearance, it will be really welcome! Thanks!
We could try to use a newer version of fop and css4j. I already updated fop in the trunk. css4j needs some testing, as the version we're using is pretty old (0.4, compared to 0.9.1), and the API might have changed.
Thanks Sergiu. I will adjust the rtf export I've to produce now by hand and follow this issue as close as possible! I am taking land with my new responsibilities and the new group clearly needs XWiki :-) And this css4j/Xalan/FOP thing is a key component of its current and future use. One of my concerns is to establish a link between this world an a different issue we have talked about before: TeX and related environments (LaTeX, LyX,...). I don't know how these two worlds could link. Even if they are different worlds or just facets of the same topic. Or perhaps I am completely lost! Keep trying to understand it, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Sergiu Dumitriu wrote:
It is a bug, but an unfixable one. The problem is that Radeox works with regular expressions, and regular expressions are not strong enough to capture an paragraph.
As for heading margins, I've been playing with a rtf file with different indentations and margins applied to headings and paragraphs. It seems to move fine at least between Word, Pages and OpenOffice. In Mac, Suse Linux and Windows.
As far as I see, the next step for me is to configure a developing environment for XWiki here and learn at least how to trap at least the two intermediary XHTMLs and the XSL-FO documents to keep track of changes and issues.
Please, if you have any idea about how to modify heading margins, pictures size and <p> appearance, it will be really welcome! Thanks!
We could try to use a newer version of fop and css4j. I already updated fop in the trunk. css4j needs some testing, as the version we're using is pretty old (0.4, compared to 0.9.1), and the API might have changed.
Thanks Sergiu. I will adjust the rtf export I've to produce now by hand and follow this issue as close as possible!
I managed to get those margins in pdf and rtf, using the 0.95beta release of fop (now used in the trunk). You should take into account the different bugs css4j has (most of them are still present in the most recent version). So, I have this working: h2 { margin-left: 2cm; margin-bottom: 1cm; color: yellow; } You can also use margin: 1cm; to set all 4 margins to the same length, but you cannot use margin: 2cm 0cm 1cm; to set different values. Also, you cannot use !important. You just have to upgrade http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.95... and http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3... (replace the older jars in WEB-INF/libs)
I am taking land with my new responsibilities and the new group clearly needs XWiki :-) And this css4j/Xalan/FOP thing is a key component of its current and future use.
One of my concerns is to establish a link between this world an a different issue we have talked about before: TeX and related environments (LaTeX, LyX,...). I don't know how these two worlds could link. Even if they are different worlds or just facets of the same topic. Or perhaps I am completely lost!
Well, TeX is different, because fop only accepts xsl-fo documents as its input, and TeX is a standalone applications hard to combine with a Java application directly. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi! Sergiu Dumitriu wrote:
I managed to get those margins in pdf and rtf, using the 0.95beta release of fop (now used in the trunk). You should take into account the different bugs css4j has (most of them are still present in the most recent version). So, I have this working:
h2 {
margin-left: 2cm; margin-bottom: 1cm; color: yellow; } You can also use margin: 1cm; to set all 4 margins to the same length, but you cannot use margin: 2cm 0cm 1cm; to set different values. Also, you cannot use !important.
You just have to upgrade http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.95... and http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3... (replace the older jars in WEB-INF/libs)
Thanks! Those are great news! I'll test this along the day and report back results here! It seems that I have to consider to subscribe css4j as well :-)
I am taking land with my new responsibilities and the new group clearly needs XWiki :-) And this css4j/Xalan/FOP thing is a key component of its current and future use.
One of my concerns is to establish a link between this world an a different issue we have talked about before: TeX and related environments (LaTeX, LyX,...). I don't know how these two worlds could link. Even if they are different worlds or just facets of the same topic. Or perhaps I am completely lost!
Well, TeX is different, because fop only accepts xsl-fo documents as its input, and TeX is a standalone applications hard to combine with a Java application directly.
Yeap, but there must exist a "link" between xls-fo documents and TeX. I am sure you remember a former discussion about mathematical expressions... I think it has been not much active lately. The point is that in scientific environments. TeX or TeX-based "languages" are a must (nowadays), so we have to find how to move out our documents from XWiki to TeX and vice-versa. I must recognize that I have not advanced since the times of this named discussion :-( I'll catch up with this issue! Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
On May 21, 2008, at 8:37 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote: [snip]
Yeap, but there must exist a "link" between xls-fo documents and TeX. I am sure you remember a former discussion about mathematical expressions... I think it has been not much active lately. The point is that in scientific environments. TeX or TeX-based "languages" are a must (nowadays), so we have to find how to move out our documents from XWiki to TeX and vice-versa. I must recognize that I have not advanced since the times of this named discussion :-( I'll catch up with this issue!
It depends on your timeframe. If you can wait till September then the new rendering mechanism should (hopefully) be in place. Please read http://dev.xwiki.org/xwiki/bin/view/Design/NewRenderingArchitecture if you want to know how it'll work. Thanks -Vincent
I do love to receive good news! :-) Well, I would prefer to contribute to generate good news, but this is not easy at all :-) May-September is a perfect time frame for us! Things must mature here as well, so I think that by September we will be ready to use, and I hope contribute to, the new architecture. I had already bookmarked the suggested document, but I am afraid that bookmarking is not enough!!! Thanks for your work, Ricardo Vincent Massol wrote:
On May 21, 2008, at 8:37 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
[snip]
Yeap, but there must exist a "link" between xls-fo documents and TeX. I am sure you remember a former discussion about mathematical expressions... I think it has been not much active lately. The point is that in scientific environments. TeX or TeX-based "languages" are a must (nowadays), so we have to find how to move out our documents from XWiki to TeX and vice-versa. I must recognize that I have not advanced since the times of this named discussion :-( I'll catch up with this issue!
It depends on your timeframe. If you can wait till September then the new rendering mechanism should (hopefully) be in place. Please read http://dev.xwiki.org/xwiki/bin/view/Design/NewRenderingArchitecture if you want to know how it'll work.
Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ricardo Rodríguez Your EPEC Network ICT Team
Hi, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Sergiu Dumitriu wrote:
I managed to get those margins in pdf and rtf, using the 0.95beta release of fop (now used in the trunk). You should take into account the different bugs css4j has (most of them are still present in the most recent version). So, I have this working:
h2 {
margin-left: 2cm; margin-bottom: 1cm; color: yellow; } You can also use margin: 1cm; to set all 4 margins to the same length, but you cannot use margin: 2cm 0cm 1cm; to set different values. Also, you cannot use !important.
You just have to upgrade http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.95... and http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3... (replace the older jars in WEB-INF/libs)
Thanks! Those are great news! I'll test this along the day and report back results here!
I've replaced the concerned files but I keep getting weird results. Briefly: 1. I am still using XE 1.3.8295 2. I've replaced the concerned libs following your instruction. Tomcat was restarted. 3. On right margin and color seems to work. 4. There is a number of error entries in catalina.out. Here you can find it... http://tinyurl.com/3lvonz I am using this sample documet... http://tinyurl.com/6n348s With this CSS held in XWikiPDFTemplate. It seem that only first heading rule causes any effect. The other ones simply have no effect. Here the current content in XWiki.PDFTemplate.stylus... h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; } h2 { margin: 3cm; color: yellow; } And here the generated rtf file... http://tinyurl.com/658vy5 I hope any of this information makes any sense for you. Thanks for your help, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; }
h2 { margin: 3cm; color: yellow; }
Remove the blank line between the 2 rules. The field is parsed and rendered, so the blank line causes a paragraph to appear there, which breaks the CSS. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi, Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; }
h2 { margin: 3cm; color: yellow; }
Remove the blank line between the 2 rules. The field is parsed and rendered, so the blank line causes a paragraph to appear there, which breaks the CSS.
Removed! Colors and margin do work, but margin-left doesn't. Does it work for you? Thanks! Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; }
h2 { margin: 3cm; color: yellow; }
Remove the blank line between the 2 rules. The field is parsed and rendered, so the blank line causes a paragraph to appear there, which breaks the CSS.
Removed! Colors and margin do work, but margin-left doesn't. Does it work for you? Thanks!
Yes, it does. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks. So, I have to update my XWiki XE and then try again. Thanks for your help. Best, Ricardo Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; }
h2 { margin: 3cm; color: yellow; }
Remove the blank line between the 2 rules. The field is parsed and rendered, so the blank line causes a paragraph to appear there, which breaks the CSS.
Removed! Colors and margin do work, but margin-left doesn't. Does it work for you? Thanks!
Yes, it does.
-- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Thanks. So, I have to update my XWiki XE and then try again. Thanks for your help.
Best,
Ricardo
Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
Sergiu Dumitriu wrote:
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
h3 { margin-left: 2cm; margin-bottom: 1cm; color: red; }
h2 { margin: 3cm; color: yellow; }
Remove the blank line between the 2 rules. The field is parsed and rendered, so the blank line causes a paragraph to appear there, which breaks the CSS.
Removed! Colors and margin do work, but margin-left doesn't. Does it work for you? Thanks!
Yes, it does.
Actually I tried on http://xepecnet.environmentalchange.net/xwiki/bin/view/Sandbox/SanAgustin and it seems to work there, too. I used OpenOffice 3 to open the files. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Ummm... Thanks, Sergiu. This is the rtf I get... http://tinyurl.com/6npxe4 and by opening it using Word:mac 2008 or some different Word for Windows flavours I see this... http://tinyurl.com/54uu4f If you see the right margin by opening this rtf in OpenOffice 3, something is wrong with this rtf file being interpreted by Word! Thanks for your help, Ricardo Sergiu Dumitriu wrote:
Actually I tried on http://xepecnet.environmentalchange.net/xwiki/bin/view/Sandbox/SanAgustin and it seems to work there, too. I used OpenOffice 3 to open the files.
-- Ricardo Rodríguez Your EPEC Network ICT Team
On May 21, 2008, at 12:55 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote: [snip]
One of my concerns is to establish a link between this world an a different issue we have talked about before: TeX and related environments (LaTeX, LyX,...). I don't know how these two worlds could link. Even if they are different worlds or just facets of the same topic. Or perhaps I am completely lost!
Keep trying to understand it,
Remember that I'm completely rewriting the rendering subsystem of XWiki and the new mechanism will work differently. The good news is that there's already a LaTex working solution. Thanks -Vincent
participants (5)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Jean-Vincent Drean -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol