Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Schema for Web Help

Reply
Thread Tools

XML Schema for Web Help

 
 
Drew Greenwell
Guest
Posts: n/a
 
      08-17-2006
Hello,
Can anyone tell me how to write a schema for something like this? Im
trying to write a webhelp setup and decided to go with a book chapter
theme but i need to constrain this template to prevent errors and
provide a log for users down the road.

<?xml version="1.0" encoding="utf-8"?>
<template name="" id="1" flags="0" owner="">
<volume name="" control="" location="local" id="1" flags="0">
<!-- optional: if volume is local allow-->
<!--optional-->
<page id="1" name="" order="1" location="local" flags="0">
<content><![CDATA[Text]]>Walk</content>
</page>
<!--end optional-->
<book name="" order="1" id="1" flags="0">
<!--constraint: if exists book name must be filled-->
<!--optional-->
<page id="2" order="1" name="" location="local" flags="0">
<content><![CDATA[Text Here]]></content>
</page>
<!--end optional-->
<!--constraint:"if name is filled but empty flags=1"-->
<chapter name="" order="1" id="1" flags="0">
<!--constraint: if exists chapter name must be filled-->
<!--optional-->
<page id="3" order="1" name="" location="local" flags="0">
<content><![CDATA[Other]]></content>
</page>
<!--end optional-->
<!--end constraint-->
<chapter name="" order="1" id="2" flags="0">
<!--constraint: if exists chapter name must be filled-->
<!--optional-->
<page id="4" order="1" name="" location="local" flags="0">
<content><![CDATA[Text2]]></content>
</page>
<!--end optional-->
<!--end constraint-->
</chapter>
</chapter>
<!--end constraint-->
</book>
<!--end optional-->
</volume>
<currentflags>
<flag flagid="1" type="1" resolved="false"/>
</currentflags>
<flagtypes>
<flagtype typeid="1" name="Chapter" description="In order for a
Chapter to have content it must be named"/>
</flagtypes>
<changelog startdate="" lastchanged="">
<change changeid="1" changedby="" changedate="" changed="">
<![CDATA[Text There]]>
</change>
</changelog>
</template>


I appreciate any help i can get ive been reading up on some xml schema
stuff but right now it all seems greek to me

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema huntingseasonson@gmail.com Perl Misc 5 11-29-2006 12:37 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
XML Schema to XML Schema Conversion Hari Om XML 1 03-02-2004 09:04 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM



Advertisments