My problem may overlap FOP, XSLT, SVG and XPATH, but I would like to start here, because I am basically having a problem creating a PDF using FOP. If anyone thinks I should better ask another forum, please point me in that direction.
 
I have an xml document that contains a number of svg elements. I am trying to use an XSLT stylesheet to put them into an fo document, which I then feed through FOP to create a PDF. I have control over the structure of everything.
 
The xml document is of this form
<Report>
    <TrackT1>
        <Position position="Left Front">
            <MCHistogram id="1">
                <svg...
 
                    many <g> elements
 
                </svg>
 
        and so forth...
 
As an example, I am trying to get the above svg element, in its entirety, with tags, into an fo document that looks like this:
 
    <fo:block>
        <fo:instream-foreign-object content-width="6in">
            <svg...
 
            </svg>
        </fo:instream-foreign-object>
    <fo:block>
 
If I manually paste the svg element in, the resulting PDF looks exactly how I want it to look.
 
I have been trying to do this programmatically with XSLT, without success, and I would appreciate any help or advice.
 
I have tried
 
    <xsl:value-of select="Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL PROTECTED]'1']/svg"/>
 
also
 
    <xsl:copy-of select="Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL PROTECTED]'1']/svg"/>
 
Neither approach is successful.
 
I have tried many other combinations and permutations, without any real success. What would be a proper way of getting such an svg element into my report?
 

Reply via email to