commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Yoder <...@zeraweb.com>
Subject Re: [jelly] namespace / quote problem in Jelly
Date Tue, 14 Sep 2004 01:42:40 GMT


Yep. I had to switch to DOM4J 1.5. The bug in my original post  is 
related to an XMLWriter problem in 1.4-dev-8

Bill Keese wrote:

> 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
>


---------------------------------------------------------------------
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