Andreas L. Delmelle <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andreas L. Delmelle <> 2010-04-06 
17:04:01 UTC ---
(In reply to comment #0)

> When trying to set svg path attributes via a stylesheet, the resulting shape 
> is
> only displayed when the pdf is created from the intermediate fo file.
> If I skip the fo part and create the pdf directly the shape is not displayed.
> Same goes for the internal (-awt) viewer.

This is not a FOP issue.
The cause is that you are creating the attribute in no-namespace. If the
intermediate FO is serialized and parsed again, that attribute is interpreted
to be in the namespace of the parent element. 
However, if the SAX events are triggered directly onto the target
ContentHandler you get the effect as if the input were:

<svg xmlns=""; width="1.5cm" height="1.5cm">
   <polygon style="fill: #cccccc;" nn:points="..." xmlns:nn=""></polygon>

Notice that the points attribute is in a different namespace than the polygon
element, since the XSLT processor is not aware of the changed mapping for the
default namespace in the literal result tree fragment.

IIC, the recommended solution to get the result you desire, is to change your
XSLT to look like:

<xsl:stylesheet ... xmlns:svg="";>
<svg:svg width="1.5cm" height="1.5cm">
   <svg:polygon style="fill: #cccccc;">
      <xsl:attribute name="svg:points"><xsl:value-of

Alternatively, if you really do not want to declare the SVG namespace on the
xsl:stylesheet element, the following would also work:

<svg xmlns=""; width="1.5cm" height="1.5cm">
   <polygon style="fill: #cccccc;">
      <xsl:attribute name="points" namespace="";>
         <xsl:value-of select="points"/>

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to