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

Re: Ignore childs

Subject: Re: Ignore childs
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Fri, 10 Mar 2000 14:07:07 +0100
eric lobato
Marta,

In fact, you want to select only the text nodes within title.

This can be done by :

<xsl:value-of select="title/text()"/>

Hope this helps.

Eric

Marta Lobato wrote:
> 
> Hello,
> 
> I would be so grateful if you could help me.
> 
> I have the following XML file:
> 
>    <section>
>      <title>This is the title with the acronym
>              <def-acronym>
>                  <acronym>XML</acronym>
>                  <expansion>eXtensible Markup Language</expansion>
>              </def-acronym>
>      </title>
>      <par>Content of the section</par>
>    </section>
> 
> And I want this output:
> 
>     This is the title with the acronym XML
> 
> I am writing the style sheet with
> 
>     <xsl:value-of select="title"/>
> 
> And I get:
> 
> This is the title with the acronym
> XML
> eXtensible Markup Language
> 
> I do not want the expansion but I don't want the title in more than one
> lines because this is the parameter for a javascript function and it
> says "unterminated string constant".  I need it in the same line.
> 
> Any suggestions?  Thank you.
> 
>   Marta Lobato.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
------------------------------------------------------------------------
Eric van der Vlist                                             Dyomedea
http://xmlfr.org         http://ducotede.com        http://dyomedea.com
------------------------------------------------------------------------


 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.