[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Re: Advice for splitting text
Subject: [xsl] Re: Advice for splitting text From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Tue, 21 Oct 2003 21:06:06 +0200 |
"Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx> wrote in message news:000901c397fe$c5b22660$1fd96844@xxxxxxxxxxxxx > Hello, > You know how in a news column online a lot of times you'll read a paragraph > of the article and then there will be a link for "Read More", and you'll > either follow an anchor on the same page to the rest of the article or jump > to a new page all together. So what I'd like to do is provide a text object > embedded in the article which signifies that the more link should be place > here. See "[BREAKARTICLE]" in this example: Why not use a true xml element -- e.g. <formatting:breakArticle/> ? Then the two text nodes already exist and do not need to be "split". When formatting:breakArticle is the current node they will be selected like this: ../text()[1] and ../text(2) Of course, in the xml document there must be a namespace declaration binding the "formatting" prefix. A prefix, bound to the same namespace-uri will be convenient to use in the xslt code. ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Advice for splitting text, Karl J. Stubsjoen | Thread | RE: [xsl] Advice for splitting text, Passin, Tom |
RE: [xsl] Advice for splitting text, Passin, Tom | Date | [xsl] Re: copy-of problem in child , Dimitre Novatchev |
Month |