Hi,
-- I'm having an issue with sending params to a pipeline which uses oxf:file-serializer. The aim is simply to copy an uploaded file from the temporary directory where it is uploaded to a permanent location. The documentation at http://wiki.orbeon.com/forms/doc/developer-guide/processors-other-serializers#TOC-File-serializer describes how to achieve this with url-generator and file-serializer. When I follow the documentation and hard code the links to files, everything works perfectly, but when I try and pass in the real filenames using params I keep getting an error that says 'Cannot output a namespace node for the default namespace when the element is in no namespace'. The config for file-serializer is created like this: <xforms:instance id="serialize-config"> <config xmlns=""> <directory/> <file/> <make-directories>true</make-directories> <append>false</append> </config> </xforms:instance> with the correct directory and file locations being set by 'set-value' before the call to the pipeline. Changing the default namespace of config results in an error saying it should be changed back to "". Why is this happening, and how do I fix it? Thanks very much for your help, Tim You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Tim,
But you have this config in an XForms file? I would expect you to have it in XPL file instead. Anyhow, I'm not sure exactly why you're getting this error, but you can most likely avoid it by, in that XML file: - Remove the `xmlns=""` on `<config>`. - Remove a `xmlns="gaga"` that I have on the root element. - Add a `xmlns:ga="gaga"` and use that prefix instead of having no prefix on the elements that should be in that namespace. (And of course, choose the prefix name appropriately.) You'll let us know if this helps, Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex, I've followed your instructions (the xforms file had a default namespace of 'xhtml'), but now get an error saying 'Error tag name "url" is not allowed' from the url-generator that is in the pipeline before the file-serializer. What namespace should the url-generator configuration have? I don't seem to be able to find it in the documentation. Also, how can the config be set in the XPL file? The name of the file to copy needs to be set from the output of the image-attachment control - is it possible to just pass in part of the config object as a param, rather than fully constructing it in the xforms file? Regards, Tim On Fri, Sep 8, 2017 at 6:59 PM, Alessandro Vernet <[hidden email]> wrote: Hi Tim, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Tim,
Could you attach that XForms file you changed, so I can have a look at it? Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |