Subject: Re: [xsl] How do i use a substring From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx> Date: Tue, 30 Apr 2002 09:50:12 +0000 |
is it very application critical that u use the namespace <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">?????
From: Suman.Sathyanarayan@xxxxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] How do i use a substring Date: Tue, 30 Apr 2002 10:01:49 +0530
Hello everybody,
I have a telephone number
1234567890ABCD which i recieve from an XML BatchResponse, i use an XML Schema
i want to seperate it in my XSL as
123-456-7890-ABCD
So any clues how to do it? <xsl:for-each select="attr[@name='telephoneNumber']"> <xsl:value-of select="substring(value, 1, 3)"></xsl:value-of> </xsl:for-each>
The substring function does'nt work here again the same
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> namespace problem i guess,
i have installed the MSXML3 in replace mode from netcrucible.com but still it does'nt recognize the substring function.
Regards, Suman
-----------------------Disclaimer------------------------
The views of the author may not necessarily reflect those of the Company. All liability is excluded to the extent permitted by law for any claims arising as a result of the use of this medium to transmit information by or to IT Solutions (India) Pvt. Ltd.
We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses.
------------------------Disclaimer------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How do i use a substring, Michael Kay | Thread | [xsl] 2 problems with variables(inc, longjohn |
[xsl] 2 problems with variables(inc, longjohn | Date | RE: [xsl] 2 problems with variables, Jarno . Elovirta |
Month |