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

Flatten a node set into a single string

Subject: Flatten a node set into a single string
From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Dec 2018 14:16:25 -0000
 Flatten a node set into a single string
Hi All,

I have this as my content:

<title><?FM MARKER [Cross-Ref] _bookmark3120?>
1914<?FM MARKER [Cross-Ref] _bookmark3121?>
 -1918 <?FM MARKER [Cross-Ref] _bookmark3123?>
- World W<?FM MARKER [Cross-Ref] _bookmark3122?>
ar One</title>

When I get this using xpath 

title/text()

I get a sequence of text nodes. What I really want is a single string:

1914-1918 - World War One

Do I need to loop through the text nodes and build up a single string? I am
using XSLT 2.0. Thank you very much.

Rick

Rick Quatro
Carmen Publishing Inc.
rick@xxxxxxxxxxxxxxx
585-729-6746
www.frameexpert.com/store/

Save on energy at quatro.mystream.com

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.