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

RE: selecting a node without its children

Subject: RE: selecting a node without its children
From: Scott Zarecor <szarecor@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Mar 2000 11:03:28 -0500
zarecor
Thanks for your help, but that doesn't do the trick. Here's what my XML
looks like:
<task>
<author>Scott Zarecor</author>
<date>03/27/00</date>
The text of the task would go here...
</task>
Using '<xsl:apply-templates select="text()"/>' and other variations upon the
'text()'-theme (with Xalan) returns the contents of the child nodes as well
as the text I'm actually after. Any ideas?
~Scott


-----Original Message-----
From: Steve Tinney [mailto:stinney@xxxxxxxxxxxxx]
Sent: Wednesday, March 29, 2000 8:05 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: selecting a node without its children


> figure out how to select just the text of a node without including that
> node's children. Microsoft provides a text() method to accomplish this,
can
> anyone help me with an alternative that will work with Xalan? Thanks.

  <xsl:apply-templates select="text()"/>

should do what you want.

 Steve


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


 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.