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

Another (hopefully not stupid) newbie problem...

Subject: Another (hopefully not stupid) newbie problem...
From: Christian Cäsar <caesar@xxxxxxxxxxxx>
Date: Mon, 16 Jul 2001 10:58:52 +0200
langtext
Hello all,

here's another hopefully simple stumper. Sorry if this is a case of RTFM, I
don't seem to get it.

I have a XML structure like this:

<Product>
  <Langtext>
    <b>Some text</b> 
    more text
    <b>even more text</b> 
  </Langtext>
</Product>

and want to transform it into this:

<DESCRIPTION_LONG>
  <b>Some text</b> 
  more text
  <b>even more text</b> 
</DESCRIPTION_LONG>

with <copy-of select="./Langtext"/> I get

<DESCRIPTION_LONG>
  <Langtext>
    <b>Some text</b> 
    more text
    <b>even more text</b> 
  </Langtext>
</DESCRIPTION_LONG>

That is, there's a <Langtext> too much.

How do I get rid of the <Langtext> Element?

I already tried <copy-of select="./Langtext/*"/>, but that got
me only

<DESCRIPTION_LONG>
  <b>Some text</b> 
  <b>even more text</b> 
</DESCRIPTION_LONG>

That is, the 'more text' is missing.

Any ideas?

Thanks a lot,
Christian

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.