Hi,
Can you give me detailed information about how your readInputAsDOM()
method in the processor API constructs a org.w3c.dom.document.
Code that works in a test class using a document built like this
DocumentBuilderFactory domf = DocumentBuilderFactory.newInstance();
ocumentBuilder builder = domf.newDocumentBuilder();
Document dom = builder.parse(xml);
Works fine, but when passing the same xml document into our validation
processor (which uses JARV api into MSV) the processor throws a:
javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: tt
I was under the impression that the readInputAsDOM() method creates
namespace aware document, but it seems that DOM is not reading the
namespace declaration.
The document looks like this:
<tt:Timesheet xmlns:tt="urn:berkeley:cde:platform:timetracker">
<tt:EmployeeName>String</tt:EmployeeName>
<tt:EmployeeID>1234</tt:EmployeeID>
<tt:Period>
<tt:Start>2001-12-03</tt:Start>
<tt:End>2001-12-09</tt:End>
</tt:Period>
<tt:TimesheetEntryList>
<tt:TimesheetEntry>
<tt:Date>2001-03-01</tt:Date>
<tt:Project>babl</tt:Project>
<tt:Hours>5j</tt:Hours>
</tt:TimesheetEntry>
</tt:TimesheetEntryList>
<tt:SignatureList/>
</tt:Timesheet>
Thanks
Peter
-----<CDE/>-----
Center for Document Engineering
University of California, Berkeley
cde.berkeley.edu
_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users