This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Ignore childs
- To: xsl-list at mulberrytech dot com
- Subject: Re: Ignore childs
- From: Steve Tinney <stinney at sas dot upenn dot edu>
- Date: Fri, 10 Mar 2000 07:37:16 -0500
- References: <3.0.6.32.20000310115212.009a2100@mail.tcd.ie>
- Reply-To: xsl-list at mulberrytech dot com
> <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
Rather than taking the value simply of title, do something like:
<xsl:value-of select="normalize-space(title/text())"/>
<xsl:text> </xsl:text>
<xsl:value-of select="title/def-acronym/acronym"/>
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list