Hi~
I'm trying to use orbeon recently and
encounter some problems.
When I use url-generator in my
XPL:
=================================================
<p:processor
name="oxf:url-generator">
<p:input name="config"> <config> <url>oxf:/apps/xforms-hello/hello.xhtml</url> </config> </p:input> <p:output name="data" id="outfile" /> </p:processor> <p:processor
name="oxf:html-serializer">
<p:input name="config"> <config /> </p:input> <p:input name="data" href="#outfile" /> </p:processor> ==================================================
and my input file hello.xhtml
is:
==================================================
<?xml version="1.0"
encoding="iso-8859-1"?>
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xhtml:head> <xhtml:title>123</xhtml:title> </xhtml:head> <xhtml:body> TEST </xhtml:body> </xhtml:html> ==================================================
but its output is:
==================================================
<xhtml:html>
<xhtml:head> <xhtml:title>123</xhtml:title> </xhtml:head> <xhtml:body> TEST </xhtml:body> </xhtml:html> ==================================================
the xml declaration and xmlns declaration
were missing.
Did I misunderstand the usage of
url-generator or I need to do something to config?
Chris, Chiu
2007/04/17
-- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Chris,
The oxf:html-serializer processor will produce HTML out, not XHTML. This means that it will not output an XML declaration or keep namespaces. You may want to use oxf:xml-serializer instead. For an example of this, look at the config/epilogue-servlet.xpl, which performs HTML and XHTML serialization. -Erik [華苓]邱猷程 wrote: > Hi~ > I'm trying to use orbeon recently and encounter some problems. > When I use url-generator in my XPL: > ================================================= > <p:processor name="oxf:url-generator"> > <p:input name="config"> > <config> > <url>oxf:/apps/xforms-hello/hello.xhtml</url> > </config> > </p:input> > <p:output name="data" id="outfile" /> > </p:processor> > <p:processor name="oxf:html-serializer"> > <p:input name="config"> > <config /> > </p:input> > <p:input name="data" href="#outfile" /> > </p:processor> > ================================================== > and my input file hello.xhtml is: > ================================================== > <?xml version="1.0" encoding="iso-8859-1"?> > <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"> > <xhtml:head> > <xhtml:title>123</xhtml:title> > </xhtml:head> > <xhtml:body> > TEST > </xhtml:body> > </xhtml:html> > ================================================== > but its output is: > ================================================== > <xhtml:html> > <xhtml:head> > <xhtml:title>123</xhtml:title> > </xhtml:head> > <xhtml:body> > TEST > </xhtml:body> > </xhtml:html> > ================================================== > the xml declaration and xmlns declaration were missing. > Did I misunderstand the usage of url-generator or I need to do > something to config? > > Chris, Chiu 2007/04/17 > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |