The XML could be source XML that still needs to be combined with an XSL-T
transformation to become an XSL-FO stylesheet, or it could be an already
formatted XSL-FO stylesheet document, the term from the previous emails was
ambiguous, since they're all XML.  With that in mind, how you would treat
them differs.  In the case where you have a simple XML data document and an
XSL-T file, you could use the org.jdom.transform.JDOMSource to feed the
document to the transformer.  In the case where you already have an XSL-FO
document, you could use the org.jdom.output.SAXOutputter as input to the FOP
Driver class and skip the memory wasting step of converting the document to
an in memory string.
  (*Chris*)

----- Original Message ----- 
From: "Prabhat Kumar (IT)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 11:01 AM
Subject: RE: special characters


>>Or if your XML is already XSL-FO, you can use the
>>org.jdom.output.SAXOutputter class to directly interface with the fop

What do you mean by this? The generated XML is just that -- a bunch of tags
and values. Do you mean that when the FO style sheet is applied to an XML,
the result is another XML? Is this what you mean by 'already XSL-FO'?


-----Original Message-----
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: Re: special characters


Even better than converting it to a stream, you can use the
org.jdom.transform.JDOMSource as the XML Source parameter to the
Transformation process.  Or if your XML is already XSL-FO, you can use the
org.jdom.output.SAXOutputter class to directly interface with the fop
Driver.
  (*Chris*)

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 2:03 AM
Subject: Re: special characters


> There's a nice way to manipulate XML Data with the JDOM API :
> http://www.jdom.org
>
> Starting from strings, you can easily create a JDOM tree object and then
> output it to a stream (and then transform your xsl-fo tree). You don't
> have to worry about special characters. You just have to care for the size
> of your tree, which musn't be too big, for memory reasons.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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


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





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

Reply via email to