OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Q&A Markup Language?

[ Lists Home | Date Index | Thread Index ]

Title: RE: [xml-dev] Q&A Markup Language?

Roger,

Your question sparked my interest as it you could think of the Question and Answer as a never ending hierarchy of messages.  I wonder if you could do it the following way?  It seems to work.

Jon

<xs:complexType name="MessageType">
        <xs:sequence>
                <xs:element name="Level" type="xs:int"/>
                <xs:element name="Date" type="xs:date"/>
                <xs:element name="Type">
                        <xs:simpleType>
                                <xs:restriction base="xs:NMTOKEN">
                                        <xs:enumeration value="Question"/>
                                        <xs:enumeration value="Answer"/>
                                        <xs:enumeration value="Comment"/>
                                </xs:restriction>
                        </xs:simpleType>
                </xs:element>
                <xs:element name="Subject" type="xs:string"/>
                <xs:element name="Author" type="xs:string"/>
                <xs:element name="ReplySet" type="MessageType" minOccurs="0" />
        </xs:sequence>
</xs:complexType>


-----Original Message-----
From: Roger L. Costello [mailto:costello@mitre.org]
Sent: 23 January 2004 13:58
To: xml-dev@lists.xml.org
Subject: [xml-dev] Q&A Markup Language?

Hi Folks,

[I am posting this question for a colleague]

Has anyone created an XML vocabulary for Question and Answer data?

Without thinking deeply about it, I suppose that a Q&A vocabulary could
be something as simple as:

<session>
     <question>...</question>
     <answer>...</answer>
     <answer>...</answer>
     ...
</session>

Perhaps someone has already thought more deeply about this and has
created a Q&A vocabulary?  If so, please let me know.  /Roger



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>



************************************************************************
DISCLAIMER
The information contained in this e-mail is confidential and is intended
for the recipient only.
If you have received it in error, please notify us immediately by reply
e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium.
The views contained in this e-mail are those of the author and not
necessarily those of Admenta UK Group.
************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS