speedata / publisher

speedata Publisher - a professional database Publishing system

Home Page:https://www.speedata.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

same error again (#537)

pr-apes opened this issue · comments

@pgundlach,

I have exactly the same error with the new release (than the one reported in #537).

Layout:

<Layout
  xmlns="urn:speedata.de:2009/publisher/en"
  xmlns:sd="urn:speedata:2009/publisher/functions/en">

  <PDFOptions duplex="{if (contains($fname, 'whatever')) then 'duplexfliplongedge' else 'duplexflipshortedge'}"/>
  <Record element="data">
    <PlaceObject>
      <Textblock>
        <Paragraph>
          <Value select="."/>
        </Paragraph>
      </Textblock>
    </PlaceObject>
  </Record>
</Layout>

Invocation:

sp --dummy --no-local -v fname=whatever

Contents of publisher.status:

<Status>
  <Errors>1</Errors>
  <Error code='1'>[page 1] Variable &quot;fname&quot; undefined</Error>
  <DurationSeconds>1</DurationSeconds>
</Status>

The weird thing is that your are not getting this error, are you?

Many thanks for your help.

I've only tested the new XPath parser, not the old one. I will publish a fix.

Many thanks for the fix, @pgundlach.