commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <bi...@tech.beacon-it.co.jp>
Subject Re: [jelly] namespace / quote problem in Jelly
Date Tue, 14 Sep 2004 00:11:40 GMT
This is an old problem (caused by an old bug in xerces?) but I assume 
it's fixed in the new jelly beta release.

Dan Yoder wrote:

> Jelly is stripping the trailing quote from namespace declarations when 
> I try to output XML, as in:
>
> <?xml version="1.0"?>
> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:x="jelly:xml">
>    <foo foo:bar="bar" xmlns:foo="http://schemas.acme.org/foo">
>        hello world
>    </foo>
> </j:jelly>
>
> which, when run with the following code:
>
>        File file = new File( "test-data/SOAP1.xml" );
>        StringWriter writer = new StringWriter();
>        XMLOutput buffer = XMLOutput.createXMLOutput( writer );
>        JellyContext context = new JellyContext();
>        context.setVariable("operation","findById");
>        context.runScript( file, buffer );
>        String output = writer.getBuffer().toString();
>        System.out.println(output);
>
> returns the following XML (note the missing quote at the end of the 
> namepsace delcaration:
>
>    <foo xmlns:foo="http://schemas.acme.org/foo bar="bar">
>        hello world
>    </foo>
>
> Please help!
>
> regards,
> -dan
>
> dan@zeraweb.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message