Have a look at the DOMSource class.  This allows you to build a DOM tree
in java and then use that tree as a parameter to build a new Templates
object or to get a Transformer based on that DOM tree.

You might also have a look at SAXSource but this is a little more
complicated to work with and would be most appropriate if you have a
huge XSLT stylesheet.

Gary

Agustinus Tedja wrote:
> 
> Hello all gurus,
> I am a student working on Java and XML environment and still a newbie.
> I'd ask you a question about Xalan extension and hope in the right
> channel.
> I am very glad to see xalan project which are really helpful for
> developer. When I saw the source of org.apache.xalan.templates and
> serialize package, it contains most of XSLT  commands and possibilities
> to produce HTML result. From my point of view, it seems possible to
> create directly an HTML page in Java using these two packages without
> reading from separate XSLT file. The main point is to create XSLT draft
> directly written in Java.
> Is this idea possible and reasonable ?
> Thank you for your advices.
> 
> Regards,
> A. Tedja

Reply via email to