Re: [xsl] parsing xsl file in java

Subject: Re: [xsl] parsing xsl file in java
From: "Emmanuil Batsis (Manos)" <mbatsis@xxxxxxxxxxx>
Date: Wed, 25 Feb 2004 13:09:02 +0200

Zahida Parveen wrote:


Can any one please help me by guiding how can I parse an xsl file through
Java Servlets and replace a node's attribute in it.

There are many choices. You can use SAX or DOM or XSLT or JDOM etc to do that from a servlet. You can also use JSTL from JSPs.

Loading a whole XML tree in memory to change just an attribute is not eficient. I'd use SAX for that but if you are a begginer try plain DOM manipulation. There are many (J)DOM tutorials on the web.


Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/ mailto:mbatsisSPAM_TRAP@xxxxxxxxxxx tel:+302103240940

XSL-List info and archive:

Current Thread