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

modifiing string based on other nodes

Subject: modifiing string based on other nodes
From: guru prasad <guruprasadv@xxxxxxxxx>
Date: Mon, 25 Jun 2001 21:53:13 -0700 (PDT)
guruprasad satyam computers
hai everybody
I just got one problem and can anybody solve it: 

here is the sample xml file:


1.<Property>
2.<Label>Dbms Data Type</Label>
3.<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
4.<Value DataType="STRING">NUMBER</Value>      
5.</Property>
6.<Property>
7.<Label>Dbms Data Type Length</Label>
8.<PermanentName>S_LDD_LEN</PermanentName>
9.<Value DataType="INTEGER">4</Value>
10.</Property>
11.<Property>
12.<Label>Data Storage Precision</Label>
13.<PermanentName>S_LDD_PRECISION</PermanentName>
14.<Value DataType="INTEGER">0</Value>
15.</Property>

what i want is:
<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
<Value DataType="STRING">NUMBER</Value>,which is there
in the line number4 of above xml file to be


<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
<Value DataType="STRING">SMALL INTEGER<value>
------NUMBER SHOULD BECOME SMALL INTEGER ONLY IF

<Value DataType="INTEGER">4</Value>---- value is less
than 4
<PermanentName>S_LDD_PRECISION</PermanentName>
<Value DataType="INTEGER">0</Value>------  precision
of 0

<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
<Value DataType="STRING">INTEGER<value> ------NUMBER
SHOULD BECOME INTEGER ONLY IF

<Value DataType="INTEGER">4</Value>---- value is
between 4 and  15
<PermanentName>S_LDD_PRECISION</PermanentName>
<Value DataType="INTEGER">0</Value>------ precision of
zero

<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
<Value DataType="STRING">BIGINT<value> ------NUMBER
SHOULD BECOME BIGINT ONLY IF 

<Value DataType="INTEGER">4</Value>---- value is
greater than 15
<PermanentName>S_LDD_PRECISION</PermanentName>
<Value DataType="INTEGER">0</Value>---- precision of
zero


<PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName>
<Value DataType="STRING">DECIMAL<value> ------NUMBER
SHOULD BECOME DECIMAL ONLY IF

<Value DataType="INTEGER">4</Value>----  value is 
greater than 15
<PermanentName>S_LDD_PRECISION</PermanentName>
<Value DataType="INTEGER">0</Value>----which has got a
precision of 1 or 2


  
  
  



THANKS in advance
GURU
Satyam Computer Services









__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


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.