[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Selecting child elements bar one
Thanks all for your comments. I think I must have been delirious when I posted my previous message. Even I could have spotted my error if I'd waited till the following morning. The problem I was trying to solve, before going back to basics, (and becoming exasperated to the point of delirium), was this one: How can I select the text value of an element node, and 'copy-of' all the elemnt's children bar one? For example, given this XML: <literate-code> This program does everything. It's brilliant and has no bugs. Here's a line by line analysyis of how it works: First of all we must define the function <function>do-everything</function>. We decided to call it that because that's what it does. <comment>;;; define the function</comment> <code>(defun do-everything ()</code> . . . </lterate-code> I want to produce this output: <section-body> This program does everything. It's brilliant and has no bugs. Here's a line by line analysyis of how it works: First of all we must define the function <function>do-everything</function>. We decided to call it that because that's what it does. <code>(defun do-everything ()</code> . . . </section-body> Everything is preserved except for the 'comment' element and it's text value. I can ignore 'comment' alright but not without losing the text value of 'literate-code'? sdt
|
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
|