Re: Basic output of instance doc?

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Basic-output-of-instance-doc-tp26306p26321.html

Duane,

This could have happened with older versions of OPS, but not with recent
ones, although I can't right now tell you exactly at what point the
change was made. When version are you using?

-Erik

Duane Gran wrote:

> Erik,
>
> Thank you for the suggestion below.  I corrected a typo near the  bottom
> (converted, rather than converter) and it works, however the  output
> appears to have some entities inserted in place of angle  brackets for
> the elements.  It is easier for me to paste a little bit  of the output
> than to explain:
>
> <?xml version="1.0" encoding="utf-8"?>
> <document xsi:type="xs:string" content-type="application/xml;  
> charset=utf-8">&lt;?xml version="1.0" encoding="utf-8"?&gt;
> &lt;form xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:oxf="http://
> www.orbeon.com/oxf/processors" xmlns:xi="http://www.w3.org/2003/ 
> XInclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"  
> xmlns:context="java:org.orbeon.oxf.pipeline.StaticExternalContext"  
> xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:p="http://
> www.orbeon.com/oxf/pipeline" xmlns:ev="http://www.w3.org/2001/xml- 
> events" xmlns:xforms="http://www.w3.org/2002/xforms"&gt;
>                                                       &lt;action/&gt;
>                                                       &lt;show-
> details&gt;true&lt;/show-details&gt;
>                                                        
> &lt;view&gt;form&lt;/view&gt;
>                                                       &lt;global-
> validation/&gt;
>                                                       &lt;mods  
> xml:base="oxf:/examples/xforms/xforms-mods/mods_v3-1_instance.xml"&gt;
>                                                            
> &lt;titleInfo&gt;
>
> Immediately I notice two xml declarations at the top of the file, but  
> I'm not sure why this is happening.  Any ideas on what is happening  here?
>
> Duane
>
>> > Any ideas why this may be happening?  I'm at a loss and  appreciate  
>> any
>> > suggestions on this.
>>
>> Your pipeline does not declare an "instance" parameter. Then you also
>> need an oxf:xml-converter processor before the oxf:file-serializer.
>>
>> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>>           xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>
>>     <p:param name="instance" type="input"/>
>>
>>     <p:processor name="oxf:xml-converter">
>>         <p:input name="config">
>>             <config/>
>>         </p:input>
>>         <p:input name="data" href="#instance"/>
>>         <p:output name="data" id="converted"/>
>>     </p:processor>
>>
>>     <p:processor name="oxf:file-serializer">
>>         <p:input name="config">
>>             <config>
>>                 <file>mods-result.xml</file>
>>                 <directory>/tmp</directory>
>>             </config>
>>         </p:input>
>>         <p:input name="data" href="#converter"/>
>>     </p:processor>
>> </p:config>
>>
>> Be also sure to check in the logs that your submission in fact is
>> calling /xforms-mods/results. If it is not, you will have to check
>> your xforms:submission element. Also remember that a submission will
>> work only if the instance is valid and if required values are not
>> empty. Otherwise, an xforms-submit-error event is thrown.
>>
>> -Erik


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws