Hi

I have an input string as 

(123) 456-789

And in the output I need 

123456789

 

How do I do it in xslt.

 

I did 

<xsl:value-of select = "format-number(.,'#')" />

The outut was 

  (125)4568956

It doesn't  get rid of the braces.

 

Let me know

Thanks

Alan

 

 

 

 

________________________________

From: Alan Andrade [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 23, 2007 12:50 PM
To: xalan-j-users@xml.apache.org
Subject: mege two separate xml nodes into one

 

How do I mege the 2 nodes?

INPUT:

 

<AllBooks>

 <BookList1>

   <Book id="1" upc= "1" someotherID= "booklist1" salePrice= "1"/>

   <Book id="3" upc= "3" someotherID= "booklist1" salePrice= "3"/>

   <Book id="4" upc= "4" someotherID= "booklist1" salePrice= "4"/>

 </BookList1>

 <BookList2>

   <Book id="2" upc= "2" someotherID= "booklist2" salePrice= "2"/>

   <Book id= "3" upc= "3" someotherID= "booklist2" salePrice= "3"/>

   <Book id= "4" upc= "4" someotherID= "booklist2" salePrice= "4"/>

   <Book id= "5" upc= "5" someotherID= "booklist2" salePrice= "5"/>

 </BookList2>

</AllBooks>

 

OUTPUT:

 

<AllBooks>

 <BookList>

   <Book id="1" upc= "1" someotherID= "booklist1" salePrice= "1"/>

   <Book id="2" upc= "3" someotherID= "booklist1" salePrice= "3"/>

   <Book id="3" upc= "4" someotherID= "booklist1" salePrice= "4"/>

   <Book id="4" upc= "2" someotherID= "booklist2" salePrice= "2"/>

   <Book id= "5" upc= "3" someotherID= "booklist2" salePrice= "3"/>

   <Book id= "6" upc= "4" someotherID= "booklist2" salePrice= "4"/>

   <Book id= "7" upc= "5" someotherID= "booklist2" salePrice= "5"/>

 </BookList>

</AllBooks>

 

Thanks

Alan

 

 

 

________________________________

The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above. This
message may be an attorney-client communication and/or work product and
as such is privileged and confidential. If the reader of this message is
not the intended recipient or an agent responsible for delivering it to
the intended recipient, you are hereby notified that you have received
this document in error and that any review, dissemination, distribution,
or copying of this message is strictly prohibited. If you have received
this communication in error, please notify us immediately by e-mail, and
delete the original message. 




-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.

Reply via email to