[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selecting child elements bar one

Subject: Re: Selecting child elements bar one
From: Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx>
Date: Mon, 13 Feb 2006 15:53:34 +0000
literate code
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.