---
title: "Problem med XSL-FO"
type: "forum-thread"
url: "https://www.webforum.nu/amne/xml/164761-problem-med-xsl-fo"
topic: "XML"
topic_url: "https://www.webforum.nu/amne/xml"
author: "Vinnaren"
published: "2007-09-22T16:04:41.000Z"
updated: "2007-09-23T14:13:12.000Z"
replies: 1
views: 500
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/xml/164761-problem-med-xsl-fo"
---

# Problem med XSL-FO

## #1 — Vinnaren, 2007-09-22T16:04Z

tjoo

har problem med att få ut min tabell i pdf filen.
har följande kod:

```
        <fo:simple-page-master master-name="sida"
                               margin="2cm">

          <fo:region-body margin="2cm"/>
          <fo:region-before extent="2cm" />
          <fo:region-after extent="2cm" />
        </fo:simple-page-master>

      <fo:page-sequence master-reference="sida">

        <fo:static-content flow-name="xsl-region-before">
          <fo:block text-align="left">top</fo:block>
        </fo:static-content>        

        <fo:flow flow-name="xsl-region-body">

          <fo:block font-size="18pt" font-family="Helvetica" font-weight="bold" text-align="center">
            Vanliga
          </fo:block>

          <fo:table-and-caption>
            <fo:table>
              <fo:table-column column-width="25mm"/>
              <fo:table-column column-width="25mm"/>

              <fo:table-header>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block font-weight="bold">Namn</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block font-weight="bold">Plats</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-header>

              <fo:table-body>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>Volvo</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>$50000</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>SAAB</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>$48000</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>

            </fo:table>
          </fo:table-and-caption>

        </fo:flow>
      </fo:page-sequence>
```

 

Får inget felmeddelande, utan den visas inte. (varken texten eller tabellen)

Vad har jag gjort för fel??

Tacksam för all hjälp   :stud

Permalänk: https://www.webforum.nu/p/164761

## #2 — Vinnaren, 2007-09-23T14:13Z

det löste sig genom att ta bort
\<fo:table-and-caption\>
   :i   :bla

Permalänk: https://www.webforum.nu/p/2030827

---

Tråden på webben: https://www.webforum.nu/amne/xml/164761-problem-med-xsl-fo
