Shane Curcuru wrote:

Have you looked at:

http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/TransformerFactory.html#getAssociatedStylesheet(javax.xml.transform.Source,
java.lang.String, java.lang.String, java.lang.String)

The TransformerFactory can go and get the PI's for you, although this
doesn't give the PI back to you, it gives you back the stylesheets.  If
you're looking for simple, this is it; if you're looking for custom
processing it may not be it.

Ah, sweet. That is exactly what I was looking for. Thanks.

If anyone is interested [newbies or maybe for the xalan web site docs] I have a servlet class that can be used in a web-app to handle xml content pages, re-using the templates object for the associated stylesheet. Seems to work pretty well. By passing in xsl parameters you can even do some dynamic things (e.g. pass in current time, or username / email from cookie).

--

* Guy McArthur* * [EMAIL PROTECTED] http{guymcarthur.com}
*LPL Rm. /#/538* * w{520.621.6373} h{ 520.326.4555} icq{17470307}





Reply via email to