Post new topic Reply to topic  [ 7 posts ] 
XML Namespaces (All I ask for is a URI) 
Author Message

Joined: Thu Feb 17, 2005 1:46 am
Posts: 2
Post XML Namespaces (All I ask for is a URI)
Hi

I've been trying to keep up with whats going on here at web3d.org as well as www.w3.org, and I like what I see. Great ideas are coming together to be included in great standards, and the X3D XML encoding could open many doors and possibilities for new content. But I don't think many people here have kept up with www.w3.org, because X3D doesn't mention anything about namespaces, except for in the schema. XML is not just about the tags people, its about the structure, the document model, its about interoperability. You can't have two sets of tags in the same document without XML Namespaces! and the only reason XML Namespaces work is if they are standardized. So if i make my X3D browser namespace aware, and use xmlns:x3d="http://www.web3d.org/x3d" as the namespace in my content, but someone else uses xmlns:x3d="http://www.web3d.org/specifications/x3d-namespace" in their content then neither browser can understand the other's content, and this is NOT interoperable! ALL I ASK FOR IS A URL! (or to be technical a URI). This would allow X3D to be used with XML Namespaces, which would allow you to incorporate XML content inside a world or even a world inside a web page or an SVG document, or as a RDF Metadata node definition, etc. The possibilities are endless, and we don't want to be poluting the global XML namespace with one format's tags. There are going to be other formats, and other ways of using those formats. The future is comming, are you ready to standardize it?

Andrew Robbins


Thu Feb 17, 2005 2:03 am
Profile

Joined: Wed May 11, 2005 5:23 am
Posts: 3
Post W3C Compound Document Formats and X3D
I'm running into a similar problem on the WHATWG mailing list. I'm trying to figure out how to incorporate 3D into a web page without using proprietary plug-ins. Right how we're looking into a "3d" context for the proposed <canvas> element, but I'd much prefer an X3D solution that uses the W3C compound document formats. Unfortunately, without a namespace and a specification of how X3D would be used in a compound document format, I don't think this will become a reality any time soon.


Wed May 11, 2005 5:52 am
Profile

Joined: Wed May 11, 2005 5:23 am
Posts: 3
Post W3C Compound Document Formats and X3D
Here's my idea of what an XHTML+X3D page should look like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:x3d="http://www.web3d.org/specifications/x3d">
<head>
  <title>3D Model</title>
  <style type="text/css">
    x3d:X3D {
      width: 100px;
      height: 100px;
    }
  </style>
</head>
<body>
  <h1>A 3D Cylinder Model</h1>
  <div>
    <x3d:X3D profile="Immersive">
      <x3d:Scene>
        <x3d:Shape>
          <x3d:Appearance>
            <x3d:Material diffuseColor="0.0 0.5 1.0"/>
          </x3d:Appearance>
          <x3d:Cylinder/>
        </x3d:Shape>
      </x3d:Scene>
    </x3d:X3D>
  </div>
</body>
</html>


Wed May 11, 2005 8:28 am
Profile

Joined: Fri Apr 16, 2004 9:27 am
Posts: 4
Post 
Excuse my ignorance, but isn't it possible to declare

<x3d:X3D profile='Immersive'
xmlns:x3d=http://www.web3d.org/specifications/x3d-3.0.xsd">
...
</x3d:X3D>


Sat Jun 11, 2005 3:36 pm
Profile YIM

Joined: Wed May 11, 2005 5:23 am
Posts: 3
Post 
Yeah, already figured that out. Just failed to post a followup here. So I'm guessing an XHTML+X3D compound document would look like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:x3d="http://www.web3d.org/specifications/x3d-3.0.xsd">
<head>
  <title>3D Model</title>
  <style type="text/css">
    x3d:X3D {
      width: 100px;
      height: 100px;
    }
  </style>
</head>
<body>
  <h1>A 3D Cylinder Model</h1>
  <x3d:X3D profile="MPEG-4 Interactive">
    <x3d:Scene>
      <x3d:Shape>
        <x3d:Appearance>
          <x3d:Material diffuseColor="0.0 0.5 1.0"/>
        </x3d:Appearance>
        <x3d:Cylinder/>
      </x3d:Shape>
    </x3d:Scene>
  </x3d:X3D>
</body>
</html>


Sat Jun 11, 2005 8:38 pm
Profile

Joined: Thu Feb 17, 2005 1:46 am
Posts: 2
Post Exactly what I was talking about
When I was first researching this, there were no discussions about using an XML namespace for X3D, and now there are many discussions, but still no standardization. It seems as though different parts of Web3D, or members of discussions that take place on their mailing lists, have independently decided upon the following namespaces:
Code:
http://www.web3d.org/specifications/x3d-namespace
http://www.web3d.org/specifications/x3d-3.0.xsd
http://www.web3d.org/specifications/x3d-3.2.xsd

While all of these are steps in the right direction, the fact that Web3D cannot agree on a single namespace is bad news for interoperability. The only way for a new namespace-aware tool to work with content created using this unknown namespace model is by accepting a glob-URI such as:
Code:
http://www.web3d.org/specifications/x3d-*

This is unacceptable. There needs to be an XML namespace URI in the standard, or the goal that X3D is trying to reach will not be achieved.


Wed Dec 10, 2008 1:30 pm
Profile

Joined: Fri Jan 20, 2006 2:00 pm
Posts: 12
Post Re: XML Namespaces (All I ask for is a URI)
Pleae have a look at:

http://www.web3d.org/x3d/wiki/index.php/X3D_and_HTML5

for the nearly current X3DOM proposal Basics

We ought to have the Web3D Symposium Behr paper up soon.

Thanks and Best Regards,
Joe


Wed Jul 08, 2009 9:25 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: