stylesheet creation - visual editor or text editor?
Hi all We are approaching the XSL-FO standard, but my boss is quite skeptical about the way to define XSL stylesheets to get formatted contents out of our XML files. He's especially worried about the time-consuming translation of graphics (e.g. tables, boxes, labels...) in XSL-FO language. I am curious to know how you solved this primary issue: do you use a visual WYSIWYG editor or just an essential text editor? Thanks for the tips! Stefano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet creation - visual editor or text editor?
Hi, i think for quick creation of stylesheets you could use a WYSIWYG editor, e.g. Altova StyleVision (problem is here, you can't reuse your old stylesheets). I use an text editor, but it's quite uncomfortable when you have large and complex stylesheets. Regards Sven Chizzolini Stefano wrote: Hi all We are approaching the XSL-FO standard, but my boss is quite skeptical about the way to define XSL stylesheets to get formatted contents out of our XML files. He's especially worried about the time-consuming translation of graphics (e.g. tables, boxes, labels...) in XSL-FO language. I am curious to know how you solved this primary issue: do you use a visual WYSIWYG editor or just an essential text editor? Thanks for the tips! Stefano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet creation - visual editor or text editor?
Hi , I am trying to create a style sheet so that the Header info appears only on page one. I want to know whether is it possible ? Appreciate your reply. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet creation - visual editor or text editor?
Hi, it's possible. You have to create different headers for first and rest pages. Regards Sven Example: fo:page-sequence master-reference=firstmaster !-- Header -- fo:static-content flow-name=xsl-region-before xsl:copy-of select=$header_first / /fo:static-content !-- Header-End -- !-- Footer -- xsl:copy-of select=$footer / !-- Footer-End -- fo:flow flow-name=xsl-region-body fo:block xsl:call-template name=first / /fo:block /fo:flow /fo:page-sequence fo:page-sequence master-reference=master !-- Header -- fo:static-content flow-name=xsl-region-before xsl:copy-of select=$header / /fo:static-content !-- Header-End -- !-- Footer -- xsl:copy-of select=$footer / !-- Footer-End -- fo:flow flow-name=xsl-region-body fo:block xsl:call-template name=first / /fo:block /fo:flow /fo:page-sequence xsl:variable name=header_first !-- Header -- /xsl:variable xsl:variable name=header !-- Header -- /xsl:variable [EMAIL PROTECTED] wrote: Hi , I am trying to create a style sheet so that the Header info appears only on page one. I want to know whether is it possible ? Appreciate your reply. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet creation - visual editor or text editor?
fo:page-sequence master-reference=firstpage fo:static-content flow-name=firstheader fo:block font-size={fontsize}pt font-family=serif line-height=10pt color=red xsl:apply-templates select=html:header/ --- xsl:apply-templates select=html:header/ --- /fo:block /fo:static-content fo:flow flow-name=xsl-region-body font-family =Times font-size=12pt fo:block xsl:apply-templates select =html:body-content/ /fo:block /fo:flow /fo:page-sequence fo:page-sequence master-reference=restpages fo:static-content flow-name=region-before fo:block font-size={fontsize}pt font-family=serif line-height=10pt color=red xsl:apply-templates select=html:header/ --- xsl:apply-templates select=html:header/ No wonder that you have same content on all pages. You apply same template like above. You have to match different content for different headers on pages. --- /fo:block /fo:static-content fo:flow flow-name=xsl-region-body font-family =Times font-size=12pt fo:block xsl:apply-templates select =html:body-content/ /fo:block /fo:flow /fo:page-sequence [EMAIL PROTECTED] wrote: Thanks Sven for the quick reply. I am trying to create a style sheet for XHMTL Content conversion to PDF. I am new at xsl and fop , hence finding it little difficult . Would appreciate if you help me out in finding where I am going wrong . Thanks and Regards Rohit !--Here is the code --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo =http://www.w3.org/1999/XSL/Format; xmlns:html =http://www.w3.org/1999/xhtml; version=1.0 xsl:output indent=yes/ !-- # -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set !-- MAJOR CHANGES START -- fo:simple-page-master master-name =firstpage page-height=11in page-width=8.5in margin-top=1.25in margin-bottom=1.0in margin-left=1.25in margin-right=1.25in fo:region-before region-name =firstheader extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-after extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-body margin-top=2.5cm margin-bottom=2.5cm / /fo:simple-page-master fo:simple-page-master master-name =restpages page-height=11in page-width=8.5in margin-top=1.25in margin-bottom=1.0in margin-left=1.25in margin-right=1.25in fo:region-before extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-after extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-body margin-top=2.5cm margin-bottom=2.5cm / /fo:simple-page-master !-- MAJOR CHANGES END -- fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position =first master-reference=firstpage/ fo:conditional-page-master-reference page-position =rest master-reference=restpages/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=firstpage fo:static-content flow-name=firstheader fo:block font-size={fontsize}pt font-family=serif line-height=10pt color=red xsl:apply-templates select =html:header/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body font-family =Times font-size=12pt
Antwort: stylesheet creation - visual editor or text editor?
Hi Stefano, We tried Stylesheetdesigner from Altova, its nice but you can´t change the generated fo source-code by hand :-( also XSLTFast ist really nice, but the same thing with the source editing. Finally we wrote some preformed template code. eg implement the basic components of your style-guide, like my Table-header always has a blue background and a height of 5px ... eg a major Footer looks like ac:fo_paragraph type=confident/ This line is transformed by a self written transformer to a fo:block section that says This information is confident! That works also with more complicated structures like tables and saves a lot of implementation time. mit freundlichen Grüßen / kind regards Manfred Weigel Raiffeisen Zentralbank Österreich AG ORG/IT - Software Development A-1030 Vienna, Am Stadtpark 9 |-+- | | | | |[EMAIL PROTECTED] | | | | | |22.11.2004 12:38 | | |Bitte antworten an | | | fop-user | | | | |-+- -| | | |An: [EMAIL PROTECTED] | |Kopie: | |Blindkopie: | |Thema: stylesheet creation - visual editor or text editor? | -| Hi all We are approaching the XSL-FO standard, but my boss is quite skeptical about the way to define XSL stylesheets to get formatted contents out of our XML files. He's especially worried about the time-consuming translation of graphics (e.g. tables, boxes, labels...) in XSL-FO language. I am curious to know how you solved this primary issue: do you use a visual WYSIWYG editor or just an essential text editor? Thanks for the tips! Stefano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any attachment (the Message) are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system , any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RZB neither makes nor accepts legally binding statements unless otherwise agreed to the contrary. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Antwort: stylesheet creation - visual editor or text editor?
[...] Finally we wrote some preformed template code. eg implement the basic components of your style-guide, like my Table-header always has a blue background and a height of 5px ... eg a major Footer looks like ac:fo_paragraph type=confident/ This line is transformed by a self written transformer to a fo:block section that says This information is confident! That works also with more complicated structures like tables and saves a lot of implementation time. Nice and effective strategy. Many thanks, Manfred. mit freundlichen Grüßen / kind regards Manfred Weigel Raiffeisen Zentralbank Österreich AG ORG/IT - Software Development A-1030 Vienna, Am Stadtpark 9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]