We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@pgundlach,
if I invoke sp --dummy --no-local -v fname=whatever with the following layout:
sp --dummy --no-local -v fname=whatever
<Layout xmlns="urn:speedata.de:2009/publisher/en" xmlns:sd="urn:speedata:2009/publisher/functions/en"> <PDFOptions duplex="{if (contains($fname, 'sin_folleto')) then 'duplexfliplongedge' else 'duplexflipshortedge'}"/> <Record element="data"> <PlaceObject> <Textblock> <Paragraph> <Value select="."/> </Paragraph> </Textblock> </PlaceObject> </Record> </Layout>
I get the following error:
<Status> <Errors>1</Errors> <Error code='1'>[page 1] Variable "fname" undefined</Error> <DurationSeconds>1</DurationSeconds> </Status>
I think this might be a bug (probably related to the recent changes in XPath evaluation).
Many thanks for your help.
The text was updated successfully, but these errors were encountered:
Update new xpath parser
628dafa
* Simple for expression * Bugfix (#537)
Thank you for your bug report. This is resolved in 628dafa and version 4.15.9.
Sorry, something went wrong.
I have exactly the same error with the new release.
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:
Contents of publisher.status:
publisher.status
The weird thing is that your are not getting this error, are you?
No branches or pull requests
@pgundlach,
if I invoke
sp --dummy --no-local -v fname=whatever
with the following layout:I get the following error:
I think this might be a bug (probably related to the recent changes in XPath evaluation).
Many thanks for your help.
The text was updated successfully, but these errors were encountered: