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

Re: Advice for splitting text

Subject: Re: Advice for splitting text
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Tue, 28 Oct 2003 17:18:11 +0100
splitting text
"Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx> wrote in message
news:001f01c39d65$1b3fce50$1fd96844@xxxxxxxxxxxxx
> [Dmitre Said]
> >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.
>
>
> I'm not sure if this makes a difference, but my special
> <formatting:breaknews> element is found within attribute value.

It makes tremendous difference -- the XPath 1.0 and 2.0 data model do not
allow attributes to have children. Therefore, an element cannot be "found
within attribute value".

> So I'm
> having difficulties using the text() function.

These difficulties are a natural consequence from the fact that an element
cannot be "found within attribute value".

Simply return to the structure of the xml document you provided in your
first message in this thread.



=====
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

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.