Subject: [xsl] Needed String Split with children From: Mike Ferrando <mikeferrando@xxxxxxxxx> Date: Sun, 27 Oct 2002 13:12:39 -0800 (PST) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] string manipulation, Scott Bronson | Thread | Re: [xsl] Needed String Split with , Mitch Amiano |
[xsl] Q: Calling MSXML from Java us, Anthony B. Coates | Date | Re: [xsl] Needed String Split with , Mitch Amiano |
Month |