xsl-list
[Top] [All Lists]

Re: Selecting child elements bar one

2006-02-13 08:53:34

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>