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

Displaying text nodes and child nodes

Subject: Displaying text nodes and child nodes
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Thu, 23 May 2002 18:40:46 +0100
text by a child
Hi!

I've write a xsl that displays information about contacts. the problem is
that the description of a contact could have tags and tex mixed.
if i use <xsl:value-of/> it displays all the text (including the text of
child nodes), if i use the <xsl:copy> it only displays the child nodes
what i want is a way to do both so a xml like:
<Description>
 <b>some title</b>
 normal text write without beeing in a tag
 <i>italic text</i> followed by normal text.
</Description>

Displays:
 some title normal text write without beeing in a tag italic text followed
by normal text.

with <xsl:value-of/> it appears like:
 some title normal text write without beeing in a tag italic text followed
by normal text.

and with <xsl:copy> appears like:
 some title italic text

any ideas??



____________________________________________________________________________
____
Essa mensagem é destinada ao utilizador do email somente, e poderá conter
informações que são de caracter CONFIDENCIAL. Se não é o utilizador desse
email por favor fique notificado que a propagação dessa informação é
estritamente proibida. Se recebeu esse email por problemas técnicos (erro)
por favor envie-nos uma mensagem imediatamente notificando do ocorrido e
apague todas as copias e anexos que faziam parte da mensagem.
Obrigado.



 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.