Subject: Re: [xsl] Selecting child elements bar one From: Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx> Date: Mon, 13 Feb 2006 15:53:34 +0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting child elements , Vasu Chakkera | Thread | Re: [xsl] Selecting child elements , David Carlisle |
Re: [xsl] Does anyone know how to m, Emmanouil Batsis | Date | Re: [xsl] Sudoku stylesheet, andrew welch |
Month |