[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] parsing xsl file in java


Subject: Re: [xsl] parsing xsl file in java
From: Jarkko.Moilanen@xxxxxx
Date: Wed, 25 Feb 2004 12:45:40 +0200

Lainaus Zahida Parveen <zahida@xxxxxxxxxxx>:

< Hi,
<
< 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.
<
< Waiting for assistance,
< zahida
<
<
<  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
<
The parsing of xsl or xslt file is the same as parsing any other xml file.

Since this is XSL-list, not java list:
Do the job with xslt something like:

<xsl:template match="theNode">
      <xsl:element name="local-name()">
          <xsl:attribute name="attr">your_value</xsl:attribute/>
      </xsl:element>
<xsl:template>

***************************************************
* Jarkko Moilanen                                 *
* Dokumentoinnin kehittäjä                        *
* Profound XML technology Expert                  *
* DokuMentori Oy                                  *
* www.dokumentori.fi                              *
***************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords