Commit dc5176dc by Patryk Czarnik

Próba naprawienia błędów z XML i PDF

parent ae50d112
...@@ -35,7 +35,12 @@ ...@@ -35,7 +35,12 @@
<groupId>org.apache.xmlgraphics</groupId> <groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId> <artifactId>fop</artifactId>
<version>2.11</version> <version>2.11</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -23,10 +23,15 @@ ...@@ -23,10 +23,15 @@
</fo:page-sequence> </fo:page-sequence>
</fo:root> </fo:root>
</xsl:template> </xsl:template>
<xsl:template match="products">
<fo:block font-weight="bold" font-size="14pt">Lista produktów (<xsl:value-of select="count(product)"/> elementów)</fo:block>
</xsl:template>
<xsl:template match="product"> <xsl:template match="product">
<fo:block-container space-before.minimum="0.5em" <fo:block-container id="product_{@id}"
page-break-inside="avoid"> space-before.minimum="0.5em"
page-break-inside="avoid">
<fo:block> <fo:block>
<xsl:text>Produkt nr </xsl:text> <xsl:text>Produkt nr </xsl:text>
<xsl:value-of select="@id" /> <xsl:value-of select="@id" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment