Hallo!
Ich möchte aus einem XML-Dokument ein FO-Dokument erzeugen. Ich habe eine XSL-Datei geschrieben. Wenn ich nun die Transformation starte, erhalte ich den im Betreff genannten Cast-Fehler und der Transformator bricht mittendrin ab. Ich wüsste aber nicht, dass ich an irgendeiner Stelle einen String "common" in double konvertieren möchte. Es kommt ja nicht mal das Wort "common" vor. Das Fo-Dokument bricht mitten bei der Erzeugung einer neuen Tabellenzeile ab:
Dann ist das Dokument zu Ende. Das ist im dazugehörigen XSLT mitten in einer Schleife:
Das Attribut-Set sieht wie folgt aus:
Wie kann ich das beheben bzw. wie finde ich raus, woran es nun genau liegt? Die Zeile, an der es scheitert, ist die vierte und letzte Zeile dieser Tabelle.
Danke!
Schnoof
Ich möchte aus einem XML-Dokument ein FO-Dokument erzeugen. Ich habe eine XSL-Datei geschrieben. Wenn ich nun die Transformation starte, erhalte ich den im Betreff genannten Cast-Fehler und der Transformator bricht mittendrin ab. Ich wüsste aber nicht, dass ich an irgendeiner Stelle einen String "common" in double konvertieren möchte. Es kommt ja nicht mal das Wort "common" vor. Das Fo-Dokument bricht mitten bei der Erzeugung einer neuen Tabellenzeile ab:
Code:
</fo:table-cell></fo:table-row><
Code:
<xsl:for-each select="./param"> <fo:table-row> <xsl:if test="./@optional='y'"><xsl:attribute name="background-color">rgb(221, 221, 221)</xsl:attribute></xsl:if> <xsl:if test="./@productSpecific!=''"><xsl:attribute name="background-color">rgb(219, 236, 210)</xsl:attribute></xsl:if> <fo:table-cell><fo:block xsl:use-attribute-sets="p"> <xsl:if test="./@outdated='y'"><xsl:attribute name="text-decoration">line-through</xsl:attribute></xsl:if> <xsl:value-of select="./@id" /> <xsl:if test="./@outdated='y'"> (outdated)</xsl:if> <xsl:if test="./@productSpecific!=''"> (<xsl:value-of select="./@productSpecific" /> only)</xsl:if> </fo:block></fo:table-cell> <fo:table-cell><fo:block xsl:use-attribute-sets="p"> <xsl:choose> <xsl:when test="./@optional='y'">Yes</xsl:when> <xsl:when test="./@optional='n'">No</xsl:when> </xsl:choose> </fo:block></fo:table-cell> <fo:table-cell><fo:block xsl:use-attribute-sets="p"><xsl:value-of select="./@default" /></fo:block></fo:table-cell> <fo:table-cell><xsl:apply-templates /></fo:table-cell> </fo:table-row> </xsl:for-each>
Code:
<xsl:attribute-set name="p"> <xsl:attribute name="text-indent">0pt</xsl:attribute> <xsl:attribute name="space-before">0pt</xsl:attribute> <xsl:attribute name="space-after">6pt</xsl:attribute> <xsl:attribute name="text-align">left</xsl:attribute> <xsl:attribute name="line-height">1.5</xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="$font-std"/></xsl:attribute> <xsl:attribute name="font-size">9pt</xsl:attribute> <xsl:attribute name="keep-together.within-page">always</xsl:attribute> </xsl:attribute-set>
Danke!
Schnoof
Comment