|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [string to node]
Hi Aditya,
You declare "test-phone" but only use "temp-phone" so I assume that this is a typo. You do not initialize it either, so I will assume that it holds a string. What kind of node are you trying to convert your string to, element, attribute, text? Why? Your code does not use count() so I am trying to guess how you hope to use it ... What is it that you are trying to count? a string is atomic so there is one. If you are looking for the number of characters that the string has, you could use string-length($temp-phone). If the string is tokenizable and you wish to count the tokens, you should probably tokenize it first, somehow. How are tokens defined? We may need more information on what you are trying to do to have a chance of better helping you. At least I do. Cheers, ac Hello, I am looking to convert a string to a single node type. Using Xalan C 1.10 processor.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![Re: [string to node]](/images/get_stylus.gif)





