473,606 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[XUS] An XML URN Scheme

I don't know if anybody already designed an URN scheme for XML; here is
a proposal: I call it the "XML URN Scheme", or XUS.

=========

URNs are logical names used to identify resources. XUS defines an URN
Scheme for XML documents that works on a delegation model.
As XUS (XML URN Scheme) is used exclusively for XML documents, it uses
namespace URIs to identify this scheme and the delegate scheme.

1 Using XUS
An URI that intends to follow the XML URN Scheme is called a XUS URN or
a XUS URI. XUS URNs are working on a delegation model : when an URN is
recognized to belong to the XML URN Scheme defined here, the last part
of the URN is interpreted with a delegate scheme.
The XUS scheme and the delegate scheme are both identified with a
namespace URI, and expressed in a XUS URN with a related prefix, as
explained below.

* XUS syntax:
The syntax of an URI is the following :
scheme:scheme-specific-part#fragment
where the characters : and # stands for themselves.
The syntax of a XUS URI is the following :
urn:xus-prefix:scheme-prefix:scheme-part#fragment
where the characters : and # stands for themselves and:
* urn is a string that stands for itslef and denotes that the URI
is an URN
* xus-prefix is a prefix bound to the XUS namespace URI :
http://www.inria.fr/xml/xus/xml-urn-scheme. The usual prefix is xus, but
any other prefix bound to the XUS namespace URI suits.
* scheme-prefix is a prefix bound to the namespace URI of the
delegate scheme.
* scheme-part is the part scheme that depends on the delegate
scheme identified by its namespace URI.

2 Namespace binding
XML URN Schemes are found generally within XML documents inside which
the appropriate namespace declarations can be found. In this case,
theses declarations must be used if the XUS URN is in the scope of the
declarations, as explained in the relevant specification.
However, when used outside the scope of an XML document, a XUS
interpreter may use a given map of prefixes linked to namespace URIs, or
with a component that resolves prefixes, usually known as "namespace
resolver".

* Precautions
A XUS URI may be used anywhere within an XML document with no particular
precaution, except when used in the DOCTYPE declaration, in an external
entity, or in the DTD internal subset. In fact, each time a reference is
made with a XUS URI before reading the XML content may cause troubles.
In this cases, the namespace binding must be provided in addition to the
document.
For this reasons, it is recommended to use XUS URIs within the XML content.

* Namespace expansion
A XUS URI may be resolved to a raw expanded URI for comparison purpose.
The expansion consist on replacing the prefixes by their corresponding
namespaces ; the expansion is completed by escaping the characters of
the namespaces as specified in RFC 2396.

3 XUS interpretation
A XUS interpreter is a program that decodes XUS URNs.
A XUS interpreter used to decode a XUS URN fails to resolve such an URN
when :
* The xus-prefix prefix is not bound to the XUS namespace URI ; the
XUS interpreter must report that the URN to resolve is not a XUS URN.
* The scheme-prefix prefix is not bound to a namespace URI ; the
XUS interpreter must report that the delegate scheme is missing.
* The scheme-prefix prefix is bound to the XUS namespace URI ; the
XUS interpreter must report that the delegate scheme is invalid.
* The delegate scheme is not known by the interpreter ; the XUS
interpreter must report that the delegate scheme is unknown.
* The delegate scheme fails ; the XUS interpreter must report that
the delegate scheme fails.
A delegate scheme is known by the XUS interpreter if this scheme has
itself an interpreter that can be invoked by the XUS interpreter.
If the XUS interpreter succeed in decoding the URI, it returns the
following components :
scheme the string urn
scheme-specific-part the string that follows urn:
xus-prefix the prefix used for the XML URN Scheme
xus-uri the XUS namespace URI http://www.inria.fr/xml/xus/xml-urn-scheme
scheme-prefix the prefix used for the delegate scheme
scheme-uri the namespace URI of the delegate scheme
scheme-part the part scheme that follows scheme-prefix:
scheme-components the components returned by the delegate scheme

4 Example
<?xml version="1.0" encoding="iso-8859-1"?>
<document
xmlns:xus="http ://www.inria.fr/xml/xus/xml-urn-scheme">
xmlns:msps="htt p://www.acme.org/my-special-purpose-scheme">
<content>
<p><a href='urn:xus:m sps:acme-fields-here'>My document</a></p>
</content>
</document>
--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
Jul 20 '05 #1
0 1325

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

Similar topics

699
33758
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
176
8074
by: Thomas Reichelt | last post by:
Moin, short question: is there any language combining the syntax, flexibility and great programming experience of Python with static typing? Is there a project to add static typing to Python? Thank you, -- greetz tom
4
1849
by: Vent d'Est - East Wind | last post by:
Can somebody tell me what s exactly the difference beetween scheme and python languages i m thiking to learn one of them but i m not sure wich one somebody told me python is better and have much library somebody told me scheme is much smarter and have nice structure i also see a project about a scheme/python implementation here is the url
0
1494
by: Philippe Poulard | last post by:
A sane document management approach: I manage my documents with a key, composed with some fields of my XML documents. When I have to refer to documents, I use a canonical form of the key so that I can use classical links such as <a href="..."> This canonical form is naturally an URN The problem when using URN, is that the sub-scheme must be registered, otherwise collisions may happen if somebody else decide to use the same name,...
6
8843
by: James Owens | last post by:
I maintain a small web page for internal company use. People access it by typing "library" in their browser address bar; this defaults to "http://library" which the network admin magically redirects to my page. Lately some other departments have been creating their own web pages and I have added links to them. The pages are on the same server, but different folders (traversing the root folder). These bright young people have introduced...
1
1493
by: Robby Findler | last post by:
Dear all, I'm writing to let you know about the upcoming Scheme and Functional Programming workshop -- specifically that the submission deadline is June 9, about 2 months from now. The workshop will be held Portland Oregon on September 17, the day before ICFP. We look forward you your submissions!
0
8016
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7955
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8440
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8306
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5966
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1300
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.