speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
296 stars 36 forks source link

[2.0.0] Using B-Tag to format Wert taken from xml-node-text (dynamic) #33

Closed MDeutschmann-Imperia closed 9 years ago

MDeutschmann-Imperia commented 9 years ago

While creating some test-layouts i'm trying to format text bold with B-Tag. In my case it works only for static input and not for value taken from xml.

      <Textblock breite="20" schriftart="Deckblatt">
        <Absatz>
<!-- works -->
          <B><Wert>Dieser statische Text erscheint fett</Wert></B>
<!-- doesn't work -->
          <B><Wert auswahl="titel" /></B>
         <!-- text of "titel"-node will be displayed, but not in bold format -->
        </Absatz>
      </Textblock>

Is this behaviour a bug and is there a workaround?

Kind regards

btw: using version 2.0.0 on MacOSX

pgundlach commented 9 years ago

It works for me in the latest unstable version. I recommend to always use the latest unstable version. It sounds worse than it is (existing features are never touched unless it is buggy, so all your layouts should always work fine with any unstable version, only new, experimental features might change in the unstable version)

This is my data file:

<data>
    <titel>Hello world!</titel>
</data>

and this is the layout file:

<?xml version="1.0"?>
<Layout xmlns:sd="urn:speedata:2009/publisher/functions/de"
  xmlns="urn:speedata.de:2009/publisher/de">

  <Datensatz element="data">
    <ObjektAusgeben>
      <Textblock >
        <Absatz>
          <B><Wert auswahl="titel"/></B>
        </Absatz>
      </Textblock>
    </ObjektAusgeben>
  </Datensatz>
</Layout>
MDeutschmann-Imperia commented 9 years ago

Thanks for the fast response. Version 2.1.26 works like a charm :+1: