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

Re: RTF variables, node-set and namespaces

Subject: Re: RTF variables, node-set and namespaces
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 6 Sep 2004 12:17:47 +0100
set namespaces
PS

> That does give the expected output. But it puzzles me because I would think
> esp. the <ul> element *should* be in xmlns="http://www.w3.org/1999/xhtml"

yes it should, but your word element shouldn't.


> It also puzzles me that apparently, [self::word] is not the same as [name()='word']

that's a faq, the version using name tests the string value returned by
the name() function (which in principle at least might contain arbitrary
machine generated prefixes, and usually uses no prefix at all if there
is no prefix in the source, inwhich case all namespace information is
lost) self::foo which is the preferred form, is a normal Xpath axis so
is fully namespace aware, and in the case of self::word selects word
elements in no-namespace (as unprefixed names in Xpath always refer to
no-namespace)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.