Closed pr-apes closed 8 months ago
@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:
publisher.status
<Status> <Errors>1</Errors> <Error code='1'>[page 1] Variable "fname" 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.
@pgundlach,
I have exactly the same error with the new release (than the one reported in #537).
Layout:
Invocation:
Contents of
publisher.status
:The weird thing is that your are not getting this error, are you?
Many thanks for your help.