Hi there Gurus!
I wonder if you can help me out here...
I have a XSL-FO document that describes how my document should be rendered when printing it to PDF format. I have a <fo:block> elemnt with some text that i want to rotate. Now, i know that this is achievable using <reference-orientation>, but in my case it wont do, because my FOP version does not support this element. I found a solution in WEB, that shows how i can do the rotation using SVG. But the problem is that when i run my app(written in C#) i get error that says that some SVG elements are not supportable. I think that it should somehow be related with my declaration of the SVG in XSL-FO.
Code:
Code:
<fo:block>
<fo:instream-foreign-object>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25pt" height="25pt">
<g x="5px" y="5px" transform="rotate(45)" style="stroke:none; fill:#000000;">Text</g>
</svg>
</fo:instream-foreign-object>
</fo:block>
and the error i get is:
Code:
Unsupported element encountered: svg (Namespace: http://www.w3.org/2000/svg). Source context: Unknown source
Expected XSL-FO (root, page-sequence, etc.), SVG (svg, rect, etc.) or elements from anothersupported language.
Unsupported element encountered: g (Namespace: http://www.w3.org/2000/svg). Source context: Unknown source
Anybody got an idea what could be wrong?!?
Thanks in advance.
BR,
Transformer