Child pages
  • XHTML Proposal
Skip to end of metadata
Go to start of metadata

From Ben's email of Nov 9, 2007

I've looked into it further (and got help from Valerie) and we've come up with a slightly different way to incorporate xhml into a VPDText element. Here is where we currently are.

The Schema for VPDText would look as follows:

    <xsd:complexType name="VPDTextType" mixed="true">
        <xsd:sequence>
            <xsd:element ref="xhtml:div" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attribute name="id" type="xsd:string"/>
        <xsd:attribute name="textType" type="TextType"/>
    </xsd:complexType>

with the 'xhtml' namespace being declared in the top xsd:schema element and imported by an xsd:import statement. We picked the 'div' element because it is a container and can hold basically any other element one would find in the body of a xhtml page. (also this way putting header elements in VPDText will not validate).

On the schema instance side, a VPDText element would look something like:

<VPDText id="1" textType="narrative">
        <div xmlns="http://www.w3.org/1999/xhtml" > <b>bla bla bla</b> bla bla <p>blablabla</p></div>
 </VPDText>

With the xmlns declaration the schema instance validates and everything bellow 'div' will automatically be considered part of the xhtml namespace. Also, this is nice because the content of VPDText can just be fed to a web browser and displayed. No extra work for the programmer.

Many thanks,

Ben

  • No labels

1 Comment

  1. One thing that needs to be addressed with this solution is how will VPD data be reference within the div element. Its easy to reference images but not VPD data.

    *Proposal (just my (Ben's) idea):*This could be a way to reference media resource and VPD with out bypassing the manifest. Bring back wiki referencing.
    Player will parse div element and look for tags. Replace with file location taken from the manifest.Then send to browswer for display.
    <div>
    <img scr="[[MR:3234]]"/>
    </div>

    Or

    <div>
    <object data="[[MR:3234]]"/>
    </div>

    Or

    <div>
    <p> Hello my name is: [[VPD:2342]]. I'm not feeling to well today. </p>
    </div> Does this seem like a good idea?