Title: RE: Suppress new line creation in a fo:block
Sorry for posting an XML query in an FOP forum, but I reckon most folks here are Xml gurus as well.
I am using Xerces 1.2.1 (ships default with WAS 4.0.3).
 
My Xml looks like this:

... <RPP_prompt>answer &amp; question</RPP_prompt>... 

 Please note the "escaping" of the "&" character. Also note that there is a space between all three words.
 
My code looks like:
 
in characters()

else if( this.currentElement.equals( RPP_PROMPT ) )
{ 
 xmlBuf.append( text
);
 
}

in endElement()

if ( this.currentElement.equals( RPP_PROMPT ) ) 
 
{
     
this.response.getOutputInfo().setRppPrompt( xmlBuf.toString() );
     xmlBuf.delete( 0, xmlBuf.length()
);
 
}

 xmlBuf is a StringBuffer.

But the value that is set in my object after parsing is "answer&question". i.e. the spaces around the words are eaten up.

Is this a known bug, or I am doing something wrong, or ..

Anybody has a clue, please reply.

Sorry again for posting in this group.

Thanks,

Sid

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to