[whatwg] Using X3D in XHTML documents
Matthew Raymond
mattraymond at earthlink.net
Tue Jun 21 03:21:56 PDT 2005
Matthew Raymond wrote:
> | <?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>
> | <div>
> | <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>
> | </div>
> | </body>
> | </html>
Now that I think about it, wouldn't the following be valid also?...
| <?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">
| <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 xmlns="http://www.web3d.org/specifications/x3d-3.0.xsd"
| profile="MPEG-4 Interactive">
| <Scene>
| <Shape>
| <Appearance>
| <Material diffuseColor="0.0 0.5 1.0"/>
| </Appearance>
| <Cylinder/>
| </Shape>
| </Scene>
| </X3D>
| </body>
| </html>
More information about the whatwg
mailing list