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

Needed String Split with children

Subject: Needed String Split with children
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Sun, 27 Oct 2002 13:12:39 -0800 (PST)
hendrikson publishers
Friends,
I have been holding off on this question, but I find myself
confronting it more and more. I have not really figured out how to
get around it. So I have instead tagged the string I wanted to split
when the string is in a node with children.

What I would like is to split a string, but then be able to either
replace the children as nodes, or to replace the coded string that I
split off.

I have created a template to capture the last part of each string and
render it. However, I cannot figure out how to rebuild the rest of
the string with its original children, nor how to replace the string
I have now captured and coded.

XML:
<Books>
<FLD>Calvin, John. <I>The Bondage and Liberation of the Will</I>.
Baker Books, Inc., 1996.</FLD>
<FLD>Deissmann, Adolf. <I>Light from the Ancient East</I>. George A.
Doran, Co., 1927.</FLD>
<FLD>Lightfoot, J. B. <I>Notes on the 1<SUP>st</SUP> four Epistles of
Saint Paul.</I> Hendrikson Publishers, Inc., 1995.</FLD>
</Books>

My output:
<Books>
<FLD>Calvin, John. The Bondage and Liberation of the Will. Baker
Books, Inc., <UNITDATE>1996</UNITDATE>.</FLD>
<FLD>Deissmann, Adolf. Light from the Ancient East. George A. Doran,
Co., <UNITDATE>1927</UNITDATE>.</FLD>
<FLD>Lightfoot, J. B. Notes on the 1st four Epistles of Saint Paul.
Hendrikson Publishers, Inc., <UNITDATE>1995</UNITDATE>.</FLD>
</Books>

This example is rather simplified, but the need is still the same.

Thanks,
Mike Ferrando
Washington, DC

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.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.