[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT - update attribute with new value

Subject: XSLT - update attribute with new value
From: Ann Marie Rubin <Annmarie.Rubin@xxxxxxx>
Date: Thu, 04 Nov 2004 08:54:19 -0500
xslt replace attribute value
Hi David,

Let me start my explaining exactly what I am trying to do.

A program needs to update the value of one or more attributes in the
following XML file:
 
<?xml version="1.0"?>
<!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application
9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd
">

<orion-web-app
        deployment-version="9.0.4.0.0"
        temporary-directory="./temp"
        internationalize-resources="false"
        default-mime-type="application/octet-stream"
>
        <!-- Uncomment this element to control web application class
loader behavior. -->
<web-app-class-loader search-local-classes-first="true" 
include-war-manifest-class-path="true" />

</orion-web-app>

The program calls the XSL stylesheet passing it the var name of the
attribute to update and the var value with the new value for that
attribute. 

The XSLT stylesheet nees to search for the var and replace its value
with the new value.  It must also rewrite the rest of the file. The
program performs other functions that are needed by the stylesheet and
best performed by the program so the XSLT stylesheet's function is just
to accept the var and value from the program and update the value in the
XML file.

I'm not sure what is the best way to do this.

thanks for your insights.

Ann Marie

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.