XSL-FO - SVG

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • XSL-FO - SVG

    Hi,

    ich binde in meine xsl-fo files gelegentlich svg-grafiken ein.

    Diesmal wird diese SVG-Grafik in eine Tabellenzelle eingebunden, was ohne erkennbaren Grund zur Folge hat dass das die Zeile höher wird obwohl das SVG genau hinein passt. Sollte halt...

    So siehts aus (habe den einzelnen Elementen einen Border gegeben):
    http://www.echtbruckner.at/dev/tbl.jpg

    Das Kreuz sollte genau in die Zelle hineinpassen.

    Und hier der Code:

    Quellcode

    1. <fo:table-row height="3.2mm" overflow="hidden">
    2. <fo:table-cell background-color="#E4E2E4">
    3. <fo:block />
    4. </fo:table-cell>
    5. <fo:table-cell background-color="#E4E2E4" border-bottom="0.5pt solid black">
    6. <fo:block border-bottom="0.5pt solid green">
    7. <fo:instream-foreign-object border-bottom="0.5pt solid orange">
    8. <svg:svg width="3.18mm" height="3.18mm">
    9. <svg:rect x="0" y="0" width="3.18mm" height="3.18mm" stroke-width="1pt" stroke="black" fill="none" />
    10. <svg:line x1="0mm" y1="0mm" x2="3.18mm" y2="3.18mm" stroke-width="1pt" stroke="black" />
    11. <svg:line x1="0mm" y1="3.18mm" x2="3.18mm" y2="0mm" stroke-width="1pt" stroke="black" />
    12. </svg:svg>
    13. </fo:instream-foreign-object>
    14. </fo:block>
    15. </fo:table-cell>
    16. <fo:table-cell background-color="#C4C2C4">
    17. <fo:block />
    18. </fo:table-cell>
    19. <fo:table-cell background-color="#C4C2C4">
    20. <fo:block />
    21. </fo:table-cell>
    22. <fo:table-cell background-color="#C4C2C4">
    23. <fo:block />
    24. </fo:table-cell>
    25. </fo:table-row>
    Alles anzeigen