commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Yoder <...@zeraweb.com>
Subject namespace / quote problem in Jelly
Date Mon, 13 Sep 2004 19:37:57 GMT
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


Mime
View raw message