I'm getting uri resolution failed when trying to create a ChibaBean. Am I setting the baseURI correctly?
ERROR org.chiba.xml.xforms.XFormsElement : [xforms:model:Test] link exception: /forms/hello.xml
ERROR org.chiba.xml.xforms.Container : dispatch: exception during event flow
org.chiba.xml.xforms.exception.XFormsLinkException: uri resolution failed
code snippet
chibaBean = new ChibaBean();
InputStream is = new FileInputStream(xformsFile);
chibaBean.setXMLContainer(is);
chibaBean.setBaseURI("
http://localhost:8081/forms/");
chibaBean.init();
hello.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<xhtml:html xmlns:ev="
http://www.w3.org/2001/xml-events" xmlns:xforms="
http://www.w3.org/2002/xforms" xmlns:xhtml="
http://www.w3.org/1999/xhtml" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<xhtml:head>
<xhtml:title>Hello World in XForms</xhtml:title>
<xforms:model id="Test" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<xforms:instance src="/forms/hello.xml>
</xforms:instance>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xforms:input incremental="false" ref="PersonGivenName">
<xforms:label>Please enter your first name: </xforms:label>
</xforms:input>
<xforms:output value="concat('Hello ', PersonGivenName, '!')">
<xforms:label>Output: </xforms:label>
</xforms:output>
</xhtml:body>
</xhtml:html>