Subject: [xsl] string replacement based on other conditions From: guru prasad <guruprasadv@xxxxxxxxx> Date: Mon, 25 Jun 2001 02:00:37 -0700 (PDT) |
hai everybody,I got a problem.This is a example xml file . here is the sample xml file: <Property> <Label>Dbms Data Type</Label> <PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName> <Value DataType="STRING">NUMBER</Value> //comment this has to be changed based on conditions </Property> <Property> <Label>Dbms Data Type Length</Label> <PermanentName>S_LDD_LEN</PermanentName> <Value DataType="INTEGER">4</Value> </Property> <Property> <Label>Data Storage Precision</Label> <PermanentName>S_LDD_PRECISION</PermanentName> <Value DataType="INTEGER">0</Value> </Property> what i want is: <PermanentName>S_LDD_DBMS_DATA_TYPE</PermanentName> <Value DataType="STRING">NUMBER</Value>,which is there in the 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>---- which has got a value less than 4 <PermanentName>S_LDD_PRECISION</PermanentName> <Value DataType="INTEGER">0</Value>------ which has got a 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>---- which has got a value between 4 and 15 <PermanentName>S_LDD_PRECISION</PermanentName> <Value DataType="INTEGER">0</Value>------which has got a 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>---- which has got a value greater than 15 <PermanentName>S_LDD_PRECISION</PermanentName> <Value DataType="INTEGER">0</Value>----which has got a 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>---- which has got a value greater than 15 <PermanentName>S_LDD_PRECISION</PermanentName> <Value DataType="INTEGER">0</Value>----which has got a precision of 1 or 2 CAN ANYBODY HELP ME IN THIS MATTER THANKS GURU __________________________________________________ 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] An HTML-forum: can you advise, Rene de Vries | Thread | RE: [xsl] string replacement based , Rene de Vries |
[xsl] An HTML-forum: can you advise, Rene de Vries | Date | [xsl] FW: xsl:transform, Benoit_Aumars |
Month |