[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Q&A Markup Language?


xml question and answer
Title: RE: 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@m...]
Sent: 23 January 2004 13:58
To: xml-dev@l...
Subject: 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.
************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.