xsl-fo

XSLT & XSL-FO: Creating a table with multiple rows?

扶醉桌前 提交于 2019-12-02 03:46:47
I'm fairly new to XSLT and I am stuck with a problem where I have an Element with an unknown amount of children, and I need to display these children in a table such that there are 5-6 columns available to display the information. If I'm given an XML file that looks like this: <books> <book> <author>Ralls, Kim</author> <title>Midnight Rain</title> </book> <book> <author>Corets, Eva</author> <title>Maeve Ascendant</title> </book> <book> <author>Corets, Eva</author> <title>Oberon's Legacy</title> </book> <book> <author>Randall, Cynthia</author> <title>Lover Birds</title> </book> <book> <author

fo: entity referenced but not declared

我的梦境 提交于 2019-12-02 01:28:22
问题 I am getting the error "entity 0slash was referenced but not declared" whenever I try to convert .fo file to .pdf with apache fop 1.0 I found out you can declare entities in DTD, however, my .fo file has no DTD. Is it supposed to have one? If not, how can I solve this problem? Prefereably without using additional .xsl or whatever files? 回答1: (NOTE: In my answer I'm using the "Oslash" (oh slash) instead of the "0slash" (zero slash) you have in your question. Since you can't begin an entity

xsl:fo retrieve-marker not valid child

你。 提交于 2019-12-02 00:47:21
I need for my xsl:fo transformation an <fo:retrieve-marker> in an table but I don't know if this is possible because I use FOP Processor for my transformation. If i use the <fo:retrieve-marker> in my table I always get an error message that the tag has to be in an static content. Here is the table with the marker <xsl:call-template name="MMEL-Table-Header"/> <!-- Bottom table Line --> <fo:table-footer> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="footer-continued"> <fo:inline>(continued)</fo:inline></fo:marker> </fo:table-cell> </fo:table-row> </fo:table-footer> <fo:table-body

Using XSL-FO and HTML?

Deadly 提交于 2019-12-01 20:13:18
问题 I'm trying to transform some XML-data to HTML with XSLT for my bachelor thesis. My professor wants me to consider XSL-FO too, or at least to write some word about it. But I'm very noob to this. So my questions are: Can I combine FO with HTML? Can I use FO istead of HTML and CSS? If yes, how will my browser render this? Are there any examples/tutorials on how to transform xml into web pages with FO? 回答1: XSL-FO is for PDF display only (this is not strictly true, but you can take it as a

Using XSL-FO and HTML?

大憨熊 提交于 2019-12-01 20:10:52
I'm trying to transform some XML-data to HTML with XSLT for my bachelor thesis. My professor wants me to consider XSL-FO too, or at least to write some word about it. But I'm very noob to this. So my questions are: Can I combine FO with HTML? Can I use FO istead of HTML and CSS? If yes, how will my browser render this? Are there any examples/tutorials on how to transform xml into web pages with FO? XSL-FO is for PDF display only (this is not strictly true, but you can take it as a guideline). So HTML output and FO output are not related. From your XML source, you can use XSLT to generate XHTML

How to dynamically change xslt page-sequence based on node attributes?

﹥>﹥吖頭↗ 提交于 2019-12-01 18:17:12
问题 The watered-down version of the problem I'm having is this. For an XML file like: <?xml version="1.0" encoding="UTF-8"?> <items> <item cols="1">Item 1</item> <item cols="1">Item 2</item> <item cols="1">Item 3</item> <item cols="1">Item 4</item> <item cols="1">Item 5</item> <item cols="1">Item 6</item> <item cols="1">Item 7</item> <item cols="1">Item 8</item> <item cols="1">Item 9</item> <item cols="2">Item 10</item> <item cols="1">Item 11</item> <item cols="1">Item 12</item> <item cols="1"

How to dynamically change xslt page-sequence based on node attributes?

大兔子大兔子 提交于 2019-12-01 18:02:31
The watered-down version of the problem I'm having is this. For an XML file like: <?xml version="1.0" encoding="UTF-8"?> <items> <item cols="1">Item 1</item> <item cols="1">Item 2</item> <item cols="1">Item 3</item> <item cols="1">Item 4</item> <item cols="1">Item 5</item> <item cols="1">Item 6</item> <item cols="1">Item 7</item> <item cols="1">Item 8</item> <item cols="1">Item 9</item> <item cols="2">Item 10</item> <item cols="1">Item 11</item> <item cols="1">Item 12</item> <item cols="1">Item 13</item> <item cols="1">Item 14</item> <item cols="1">Item 15</item> <item cols="1">Item 16</item>

How to do an XSL:for-each in reverse order

情到浓时终转凉″ 提交于 2019-12-01 13:44:35
问题 I am looking to reverse in XSL/FO a for-each loop. for instance the xml <data> <record id="1"/> <record id="2"/> <record id="3"/> <record id="4"/> <record id="5"/> <record id="6"/> </data> with the xsl <xsl:for-each select="descendant-or-self::*/record"> <xsl:value-of select="@id"/> </xsl:for-each> I am looking for the output 654321 and not 123456 how is this possible? 回答1: Use xsl:sort not for ordering by @id but for ordering by position() : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999

a beginner question on XSLT

只愿长相守 提交于 2019-12-01 08:16:22
I just started learning XSLT,now I am following some on-line tutorial of it,and I just have a simple question now: suppose we have a original xml file,do we need to write a XSLT Stylesheet to go with it,or do we just simply pass the xml file into some software like Stylus Studio(Saxon Engine),then it will do all these things automatically for us? Sorry for the mis clarification.I need to convert this .svg file to a pdf,I am just now at the beginning of the development,so really confused about the first step.Also,I would like to know,if my initial input is a .svg file,do I have to explicitly

a beginner question on XSLT

倾然丶 夕夏残阳落幕 提交于 2019-12-01 05:49:09
问题 I just started learning XSLT,now I am following some on-line tutorial of it,and I just have a simple question now: suppose we have a original xml file,do we need to write a XSLT Stylesheet to go with it,or do we just simply pass the xml file into some software like Stylus Studio(Saxon Engine),then it will do all these things automatically for us? Sorry for the mis clarification.I need to convert this .svg file to a pdf,I am just now at the beginning of the development,so really confused about