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

Re: To namespace or not to Namespace ....

  • From: Kendall Shaw <kshaw@kendallshaw.com>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 08 Apr 2010 21:08:27 -0700

Re:  To namespace or not to Namespace ....
On Thu, 2010-04-08 at 20:07 -0400, Liam R E Quin wrote:
> The price you pay, though, is high. It's as if, once you used the Math
> namespace in Java, you could no longer write arithmetic expressions with
>     a = b + c;
> but now had to use
>     math.assign(a, math.sum(math.numericvalue(b), math.numericvalue(c));

Well, it seems very likely that I'm missing your point. There is
something like the default namespace syntax in XML and java.

> You can't write, for example, /html/head/meta[@name eq 'link'] but,
> instead, /h:html/h:head/h:meta[@name eq 'link'], and you have to
> understand why (and when) it's @name and not @h:name. So this isn't
> anything to do with processing XML as text.

The expectation that you could use /html insead of /h:html in XPath,
could be because someone is thinking of an XML text file, where they see
"<html". Or, that has usually been the confusion I've seen people having
about that.

If I'm writing an XPath expression to address an element that is named
"floop" in the "http://www.example.com namespace", I would look for the
syntax required to do that.

Are attributes more trouble than they seem, because Technology X has
some syntax for addressing them that I didn't learn?





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.