Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Palle Hansen 143 posts 396 karma points
    Jul 03, 2013 @ 21:17
    Palle Hansen
    0

    Can't get XSL-FO to work in my XSLT

    Hi,

    I need to make a table with some columns - see below - , but it' wont work.

    What it does is, that the first column for the IMG (OND IMG) is pushing the other colums below.

    I'm using Black Points PDF creator , and nedd help to the columns.

    Best regards
    Palle

    What i need help to:

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 04, 2013 @ 01:51
    Jan Skovgaard
    0

    Hi Palle

    Have you had a look at the package Darren Ferguson made for this? http://our.umbraco.org/projects/website-utilities/pdf-creator

    It would be nice with some more information - what version of Umbraco are you using? What XSLT code are you trying to use? Do you use some C# as well etc. etc.

    Cheers,
    Jan 

  • Palle Hansen 143 posts 396 karma points
    Jul 04, 2013 @ 07:29
    Palle Hansen
    0

    Hi Jan,

    I'm using vers. 6.0.6. I'm not using any C#. But i guess Blackpoints package does.

    My XSLT look like this:

    <span><img src="/images/pdftop.png" width="510px"/></span>
            <br/>
            <h2 style="color:#5c606b;"><xsl:value-of select="msxml:node-set($cars_xml_result)/car_data/car_manufacture" disable-output-escaping="yes"/>&nbsp;<xsl:value-of select="msxml:node-set($cars_xml_result)/car_data/car_model" disable-output-escaping="yes"/>, <xsl:value-of select="msxml:node-set($cars_xml_result)/car_data/model_variant" disable-output-escaping="yes"/></h2>
            <br/>
            <span style="text-align:left;"><xsl:copy-of select="msxml:node-set($carimages)"/></span>
            <br/>
            <span style="font-size:25px;color:#6b7d31;font-weight:bold;">Pris: <xsl:value-of select="format-number($cars_xml_result/prices/detailprice,'#.###','euro')"/>,-</span>
            <br/>
            <br/>
            <h3>Detaljer</h3>
            <xsl:value-of select="umbraco.library:Replace(msxml:node-set($cars_xml_result)/car_data/remarks, ',', '&nbsp;·')" disable-output-escaping="yes"/>   
            <br/>
            <br/>
            Årgang: <xsl:value-of select="msxml:node-set($cars_xml_result)/car_data/model_year"/>·                                               
            KM: <xsl:value-of select="msxml:node-set($cars_xml_result)/car_data/driven_distance/per_1"/>       
            <xsl:variable name="weighttax" select="umbraco.library:Replace($cars_xml_result/modelcatalogue/tax/weighttax, ',', '.')"/>
            Grøn ejerafgift: <xsl:value-of select="format-number($weighttax,'#.###','euro')"/>,-       
            <br/>
            <br/>
            <h3>Specifikationer</h3>
            Motor : <xsl:value-of select="$cars_xml_result/car_data/engine_volume"/> l.·
            Ydelse: <xsl:value-of select="$cars_xml_result/modelcatalogue/engine/effect"/>&nbsp;HK·
            Cylinder: <xsl:value-of select="$cars_xml_result/modelcatalogue/engine/cylinders"/>·
            Ventiler: <xsl:value-of select="$cars_xml_result/modelcatalogue/engine/valvepercylinders"/>·
            Tank: <xsl:value-of select="$cars_xml_result/modelcatalogue/measurement/tankvolume"/>&nbsp;l.·
            Gear: <xsl:value-of select="$cars_xml_result/modelcatalogue/gear/gearshifts"/>&nbsp;gear·
            Døre: <xsl:value-of select="$cars_xml_result/car_data/number_of_doors"/>&nbsp;·
            Længde: <xsl:value-of select="$cars_xml_result/modelcatalogue/measurement/length"/>&nbsp;cm·
            Højde: <xsl:value-of select="$cars_xml_result/modelcatalogue/measurement/height"/>&nbsp;cm.·
            <xsl:variable name="pr_liter" select="umbraco.library:Replace($cars_xml_result/modelcatalogue/engine/km_per_liter, ',', '.')"/>                               
            Km. pr. liter: <xsl:value-of select="format-number($pr_liter,'#.###','euro')"/>&nbsp;l.·
            Topfart: <xsl:value-of select="$cars_xml_result//modelcatalogue/speeds/topspeed"/>&nbsp;km/t·
            0-100km/t: <xsl:value-of select="$cars_xml_result/modelcatalogue/speeds/acceleration"/>&nbsp;sek. ·
            Max last: <xsl:value-of select="$cars_xml_result/modelcatalogue/maxload/vehicle"/>&nbsp;kg.·       
            Påhæng: <xsl:value-of select="format-number($cars_xml_result/modelcatalogue/maxload/pull,'#.###','euro')"/>&nbsp;kg.
            <br/>
            <br/>
            <span><img src="/images/pdfbottomline.png" width="510px"/></span>

    Blackpoint PDF creator is for Umbraco.
    I've seen Darrrens package, but if I could getthe design above, it  would be good

    Palle

Please Sign in or register to post replies

Write your reply to:

Draft