The result of document function is changed to base64Binary?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The result of document function is changed to base64Binary?

James Gu
I upgraded to  Release 3.7.0alpha.200808080109 last week and I found an error in my app. The document function used to return xml data, now it returns a "document". Did you change this? How can I get the the xml like before.


http://localhost:7001/myapp/code-lookup/StateCode
This is the url to return xml data.
<codes>
  <code description="" /> 
  <code description="Alaska">AK</code> 
  <code description="Alabama">AL</code> 
  <code description="Arkansas">AR</code> 
</codes>


I use document function in xsl template. The state code xml is included in the result.

    <xsl:template match="/">
        <result>
           <test>
    <xsl:copy-of select="doc('http://localhost:7001/myapp/code-lookup/StateCode')"/>
            </test>
        </result>
    </xsl:template>

In 20080724 build, it returns
        <result>
           <test>
    <codes>
                    <code description="" /> 
                    <code description="Alaska">AK</code> 
                    <code description="Alabama">AL</code> 
                    <code description="Arkansas">AR</code> 
                 </codes>
            </test>
        </result>


After the upgrade to 20080808, the result is changed

        <result>
           <test>
    <document xsi:type="xs:base64Binary" content-type="application/xml; charset=utf-8" last-modified="Mon, 11 Aug 2008 08:48:20 GMT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48Y29kZXMgeG1sbnM6b3hmPSJo dHRwOi8vd3d3Lm9yYmVvbi5jb20vb3hmL3Byb2Nlc3NvcnMiIHhtbG5zOnhpPSJodHRwOi8vd3d3 />
            </test>
        </result>







Reply | Threaded
Open this post in threaded view
|

Re: The result of document function is changed to base64Binary?

Erik Bruchez
Administrator
Does the URL:

   http://localhost:7001/myapp/code-lookup/StateCode

return an XML content-type?

-Erik

On Aug 11, 2008, at 2:18 AM, JamesGu wrote:

>
> I upgraded to  Release 3.7.0alpha.200808080109 last week and I found  
> an error
> in my app. The document function used to return xml data, now it  
> returns a
> "document". Did you change this? How can I get the the xml like  
> before.
>
>
> http://localhost:7001/myapp/code-lookup/StateCode
> This is the url to return xml data.
> <codes>
>  <code description="" />
>  <code description="Alaska">AK</code>
>  <code description="Alabama">AL</code>
>  <code description="Arkansas">AR</code>
> </codes>
>
>
> I use document function in xsl template. The state code xml is  
> included in
> the result.
>
>    <xsl:template match="/">
>        <result>
>           <test>
>     <xsl:copy-of
> select="doc('http://localhost:7001/myapp/code-lookup/StateCode')"/>
>            </test>
>        </result>
>    </xsl:template>
>
> In 20080724 build, it returns
>        <result>
>           <test>
>     <codes>
>                    <code description="" />
>                    <code description="Alaska">AK</code>
>                    <code description="Alabama">AL</code>
>                    <code description="Arkansas">AR</code>
>                 </codes>
>            </test>
>        </result>
>
>
> After the upgrade to 20080808, the result is changed
>
>        <result>
>           <test>
>     <document xsi:type="xs:base64Binary" content-type="application/
> xml;
> charset=utf-8" last-modified="Mon, 11 Aug 2008 08:48:20 GMT"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48Y29kZXMgeG1sbnM6b3hmPSJo
> dHRwOi8vd3d3Lm9yYmVvbi5jb20vb3hmL3Byb2Nlc3NvcnMiIHhtbG5zOnhpPSJodHRwOi8vd3d3
> />
>            </test>
>        </result>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/The-result-of-document-function-is-changed-to-base64Binary--tp18922365p18922365.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: The result of document function is changed to base64Binary?

Erik Bruchez
Administrator
In reply to this post by James Gu
Well, I noticed a possible bug in oxf:url-generator that could explain  
this:

  http://forge.objectweb.org/tracker/index.php?group_id=168&atid=350207

I just fixed it.

-Erik

On Aug 11, 2008, at 2:18 AM, JamesGu wrote:

>
> I upgraded to  Release 3.7.0alpha.200808080109 last week and I found  
> an error
> in my app. The document function used to return xml data, now it  
> returns a
> "document". Did you change this? How can I get the the xml like  
> before.
>
>
> http://localhost:7001/myapp/code-lookup/StateCode
> This is the url to return xml data.
> <codes>
>  <code description="" />
>  <code description="Alaska">AK</code>
>  <code description="Alabama">AL</code>
>  <code description="Arkansas">AR</code>
> </codes>
>
>
> I use document function in xsl template. The state code xml is  
> included in
> the result.
>
>    <xsl:template match="/">
>        <result>
>           <test>
>     <xsl:copy-of
> select="doc('http://localhost:7001/myapp/code-lookup/StateCode')"/>
>            </test>
>        </result>
>    </xsl:template>
>
> In 20080724 build, it returns
>        <result>
>           <test>
>     <codes>
>                    <code description="" />
>                    <code description="Alaska">AK</code>
>                    <code description="Alabama">AL</code>
>                    <code description="Arkansas">AR</code>
>                 </codes>
>            </test>
>        </result>
>
>
> After the upgrade to 20080808, the result is changed
>
>        <result>
>           <test>
>     <document xsi:type="xs:base64Binary" content-type="application/
> xml;
> charset=utf-8" last-modified="Mon, 11 Aug 2008 08:48:20 GMT"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48Y29kZXMgeG1sbnM6b3hmPSJo
> dHRwOi8vd3d3Lm9yYmVvbi5jb20vb3hmL3Byb2Nlc3NvcnMiIHhtbG5zOnhpPSJodHRwOi8vd3d3
> />
>            </test>
>        </result>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/The-result-of-document-function-is-changed-to-base64Binary--tp18922365p18922365.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: The result of document function is changed to base64Binary?

James Gu
In reply to this post by Erik Bruchez
Eric,

Thank you! It works well now.

I use xml pipeline to return xml data. I checked it in firefox. The content-type is application/xml.

James