Hey there,
i've got a problem with my xincludeprocessor with user-defined inputs. Because of the output of my xslt-processor, which in my opinion can only give back an element not ONLY text/string, i am getting this as input $path. <path>thedocument.xml</path> This is my xinclude-processor: <p:processor name="oxf:xinclude"> <p:input name="config" href="projectProperties.xml"/> <p:input name="projectFileInput" href="#path#xpointer(data(/))"/> <p:output name="result" id="result" ref="data" /> </p:processor> - config, contains the document with this tag <project id="blubb"> <projectfile id="blubb" path='thedocument.xml'/> <xi:include href='input:projectFileInput' xxi:omit-xml-base="true"/> </project> - projectFileInput gets this : <path>thedocument.xml</path> and with xpointer i am trying to get the content (thedocument.xml) as href. PROBLEM: The output of my xinclude-Processor doesn't include the file which ist located in thedocument.xml. The ouput looks like this. <project id="blubb"> <projectfile id="blubb path="thedocument.xml"/> thedocument.xml </project> so it doesn't include anything, it only replaces the xinclude-tag with the path of my file. What am i doing wrong? Can someone help me? greetz |
Administrator
|
You are telling the XInclude processor to include the XML fragment on
input projectFileInput. So that's what it does. There is no reason the XInclude processor would look *within* that fragment and dereference URLs that might be there. What you could do is dereference the URL first, using oxf:url-generator: pass it: <config>thedocument.xml</config> and then send the output of oxf:url-generator to projectFileInput. -Erik On Tue, Oct 26, 2010 at 7:42 AM, hospbene <[hidden email]> wrote: > > Hey there, > > i've got a problem with my xincludeprocessor with user-defined inputs. > > Because of the output of my xslt-processor, which in my opinion can only > give back an element not ONLY text/string, i am getting this as input $path. > > <path>thedocument.xml</path> > > > This is my xinclude-processor: > > <p:processor name="oxf:xinclude"> > <p:input name="config" href="projectProperties.xml"/> > <p:input name="projectFileInput" href="#path#xpointer(data(/))"/> > <p:output name="result" id="result" ref="data" /> > </p:processor> > > - config, contains the document with this tag > > > <project id="blubb"> > <projectfile id="blubb" path='thedocument.xml'/> > <xi:include href='input:projectFileInput' xxi:omit-xml-base="true"/> > </project> > > > > - projectFileInput gets this : > > <path>thedocument.xml</path> > > and with xpointer i am trying to get the content (thedocument.xml) as href. > > > > PROBLEM: > > The output of my xinclude-Processor doesn't include the file which ist > located in thedocument.xml. > > The ouput looks like this. > > <project id="blubb"> > <projectfile id="blubb path="thedocument.xml"/> > thedocument.xml > </project> > > > so it doesn't include anything, it only replaces the xinclude-tag with the > path of my file. > > What am i doing wrong? > Can someone help me? > > greetz > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Dynamic-input-for-xinclude-processor-tp3013819p3013819.html > Sent from the Orbeon Forms (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 > > -- 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 |
Free forum by Nabble | Edit this page |