Subject: Re: [xsl] Convert text nodes to a single string From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 9 Mar 2022 14:00:05 -0000 |
On 09.03.2022 14:58, rick@xxxxxxxxxxxxxx wrote: > > I just want this: "This has text.b > Then the string-join(text()) is fine. > *From:* Martin Honnen martin.honnen@xxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> > *Sent:* Wednesday, March 9, 2022 8:53 AM > *To:* xsl-list@xxxxxxxxxxxxxxxxxxxxxx > *Subject:* Re: [xsl] Convert text nodes to a single string > > On 09.03.2022 14:43, rick@xxxxxxxxxxxxxx wrote: > > Thank you Martin and Wendell.B I am incorporating this one: > > normalize-space(string-join(text()))='' > > In your example, with the input beingB <root>This has <b>some > </b>text.</root> and your template matching "root", do you want to > select only the text node children (i.e. "This has " and "text.") or > all text node descendants (i.e. "This has ", "some ", and "text.")? > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/612310> > (by email) > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/582271> > (by email <>)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert text nodes to a s, rick@xxxxxxxxxxxxxx | Thread | Re: [xsl] Convert text nodes to a s, Graydon graydon@xxxx |
Re: [xsl] Convert text nodes to a s, rick@xxxxxxxxxxxxxx | Date | Re: [xsl] Convert text nodes to a s, Graydon graydon@xxxx |
Month |