473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Is there a term for this?


I often find it useful to refer to elements in an XML document using a
limited XPath construct: the contacentated string of element
names only, from root to any particular node in the XML. Is there a
term for this
idea--for XPaths constructed from concatenated element names, without
attributes
included in any way?
/book[@name="xml_stuff"] ...not what I'm talking about

/book/chapter/paragraph/sentance/ ...this is what I mean, is there a
term for this?

Jul 20 '05 #1
6 1340
sa*********@montana-riverboats.com wrote:

: I often find it useful to refer to elements in an XML document using a
: limited XPath construct: the contacentated string of element
: names only, from root to any particular node in the XML. Is there a
: term for this
: idea--for XPaths constructed from concatenated element names, without
: attributes
: included in any way?
: /book[@name="xml_stuff"] ...not what I'm talking about

: /book/chapter/paragraph/sentance/ ...this is what I mean, is there a
: term for this?

Perhaps an element path.

Or
an xpath expression

a location path

a compound location path

an abreviated compound location path

a predicate-less abreviated compound location path
and in this particular case,

an absolute predicate-less abreviated compound location path
Perhaps a "child-only path" or a "simple path".
--

This space not for rent.
Jul 20 '05 #2
sa*********@montana-riverboats.com wrote:
I often find it useful to refer to elements in an XML document using a
limited XPath construct: the contacentated string of element
names only, from root to any particular node in the XML. Is there a
term for this
idea--for XPaths constructed from concatenated element names, without
attributes
included in any way?
/book[@name="xml_stuff"] ...not what I'm talking about

/book/chapter/paragraph/sentance/ ...this is what I mean, is there a
term for this?


I personnally use the term "Canonical path" ; here is my definition :

==============
Canonical path
The ·canonical path· of a node is an XPath expression that starts
from the root node and descends from child to child until the node
(without using the "*" joker). The sole predicate allowed in a step is
the "indexing predicate", such as [n] where n is a non nul positive
integer ; this predicate is not involved if the step would return a
unique node. For example,
/xcl:active-sheet/xcl:logic[3]/xcl:if[2]/xcl:then/xcl:parse is a valid
·canonical path· . When a node test involved an attribute or an element,
the prefix used is not necessary the same used in the document, for
example when prefixes are redefined ; a canonical path can't be used by
an XPath engine safely if a namespace mapping is not provided.
==============

In order to process a canonical path safely with an XPath engine, I put
such canonical paths in a "path element", that hosts namespace mappings
needed in the expression.
--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
Jul 20 '05 #3
Thanks. I've wanted to say "canonical xpath" myself.
But I thought that meant something else.

Jul 20 '05 #4
sa*********@montana-riverboats.com writes:
I often find it useful to refer to elements in an XML document using a
limited XPath construct: the contacentated string of element
names only, from root to any particular node in the XML. Is there a
term for this
idea--for XPaths constructed from concatenated element names, without
attributes
included in any way?
/book[@name="xml_stuff"] ...not what I'm talking about

/book/chapter/paragraph/sentance/ ...this is what I mean, is there a
term for this?


SGML veterans frequently use the term 'fully qualified generic
identifier' for this. That term isn't in wide use now, but
I think I prefer it to 'canonical XPath'.

The first version of the TEI Guidelines (in a section
drafted by Steve DeRose) defines a similar method of
pointing to an element in which each step has a
position indicator; in XPath notation something like

/book[1]/chapter[4]/paragraph[32]/sentence[3]

The term given there is 'typed path' (as opposed to
the numeric path /1/4/32/3).

-C. M. Sperberg-McQueen
World Wide Web Consortium
Jul 20 '05 #5
Thank you everybody for your input.
It seems there is no commonly adopted term for an xpath
as I described above (an xpath containing only the concatenated element
names,
without including any possible attributes in any way).

For my own purposes, I now feel free to invent my own term, and refer
to this as an 'elemental xpath'

Jul 20 '05 #6
sa*********@montana-riverboats.com wrote:
: Thank you everybody for your input.
: It seems there is no commonly adopted term for an xpath
: as I described above (an xpath containing only the concatenated element
: names,
: without including any possible attributes in any way).

: For my own purposes, I now feel free to invent my own term, and refer
: to this as an 'elemental xpath'
which I guess is a more generalized version of the noble elemental xpath

/He/Ne/Ar/Kr/Xe/Rn

and closely related to the more complex possibilities of the molecular
xpath, e.g.

/H2O/NaCl
both being excellent paths for aspiring chemists to follow.
--

This space not for rent.
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Watson | last post by:
I am trying to build Python 2.3.3 on AIX. I believe that we are using gcc 2.95.3, but later in the ./configure output, it appears to say that gcc is not being used. Does this suggest a real...
34
by: jblazi | last post by:
Let us assume I have a list like and would like to transoform it into the string '{1,2},{7,8},{12,13}' Which is the simplest way of achiebing this? (The list is in fact much longer and...
0
by: John C. Worsley | last post by:
I've got an extremely inscrutable problem here using Perl's Term::ReadLine::Gnu module. I'm using Perl 5.8.0, readline 4.3 and Term::ReadLine::Gnu 1.14. The problem is specific to catching INT...
4
by: Ken Fine | last post by:
I'm looking to find or create an ASP script that will take a string, examine it for a search term, and if it finds the search term in the string, return the highlighted search term along with the...
9
by: Matt Kruse | last post by:
In the past couple of weeks, I've heard a number of references to the term "Ajax". A fellow developer asked me if we should use ajax on a web app, and I asked "what is that?" "Oh, it's a brand...
5
by: j | last post by:
Anyone here feel that "global variables" is misleading for variables whose scope is file scope? "global" seems to imply global visibility, while this isn't true for variables whose scope is file...
1
by: mike c | last post by:
I have a search app that searches local HTML files for a specified term. I then display the pages that contain the term. I would like to highlight the search term within the HTML when it is...
0
by: chadsmith76 | last post by:
I am trying to find some documentation on using things like ORDER BY 5*(column LIKE ' term') + 4*(column LIKE ' term') I don't even know what it is called so it is difficult to search. My...
1
by: Scholar | last post by:
Hi,i am working on a c++ project which will find the nth term of a given series.The series would be given in the form of first 4 or 5 terms.I have the basic alogorithm which can find the nth term of...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.