|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: selecting a element without it's child element
On 10/11/2010 11:03, srinivasan.p@xxxxxxxxxx wrote:
Thanks Pankaj, its working fine now. That's not a good solution, however. It's dependent on properties of your input that might not always hold, and that weren't specified in your description of the problem - notably, that all the text of the title other than the indexterm is in a single text node that is an immediate child of the title element. Pankaj has seen one example of your input data, and leapt to the conclusion that all other examples will be the same. You've run it on a single test case (I imagine), and concluded that it's correct because it works on that test case. Learn to use template rules: they are the right way to tackle this kind of problem. In fact, they are the right way to tackle nearly every XSLT problem. Michael Kay Saxonica
|
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








