Title says it all :) ...

I have noticed that the RequestGenerator doesn't declare a namespace for
prefix xsi as you can see on this snippet:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<request>
   <parameters>
      <parameter>
         <name>foo</name>
         <value>foo</value>
      </parameter>
      <parameter>
         <name>bar</name>
         <filename>rss.css</filename>
         <content-type>text/css</content-type>
         <content-length>1816</content-length>
         <value xmlns:xs="http://www.w3.org/2001/XMLSchema";
xsi:type="xs:base64Binary">LyogQ29weXJpZ2h0IDE5OTctMjAwMyBXM0MgKE1JVCwgRVJDSU0sIEtlaW8pLiBBbGwgUmlnaHRz
...

In the code, you are using:

valueElement.addAttribute(XMLConstants.XSI_TYPE_QNAME,
fileItem.isInMemory() ? XMLConstants.BASE64BINARY_TYPE :
XMLConstants.ANYURI_TYPE); 

and I would have assumed that the DOM4J implementation would have added
the namespace declaration but that doesn't seem to be the case and
you'll probably have to add it explicitly as you do for the xs: prefix!

I was writing a RELAX NG schema to validate a request when I have
noticed that. The flexibility of RELAX NG makes it possible (if not
simple) to do useful tests but Schematron would really fly for that
purpose. Do you plan to support it in a future version?

Eric
-- 
Lisez-moi sur XMLfr.
                       http://xmlfr.org/index/person/eric+van+der+vlist/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to