This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another (hopefully not stupid) newbie problem...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]