Commit 798c7580 authored by Robert Ricci's avatar Robert Ricci

Make a little DTD for the template format I've defined so far, so that

if we work futher on it, we have a good starting point. Make the
existing templates validate with the DTD.
parent bd4b24e2
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE nstemplate SYSTEM "nstemplate.dtd">
<!--
XML NS template file for making a simple
-->
......
<!--
EMULAB-COPYRIGHT
Copyright (c) 2006 University of Utah and the Flux Group.
All rights reserved.
A DTD for Emulab NS template files
-->
<!ELEMENT nstemplate (variable*,nstext)>
<!-- Attributes under conideration for nstemplate: name, author -->
<!ELEMENT variable EMPTY>
<!ATTLIST variable name CDATA #REQUIRED
default CDATA #REQUIRED
descr CDATA #IMPLIED>
<!ELEMENT nstext (section+)>
<!ELEMENT section (#PCDATA)>
<!ATTLIST section depends_on CDATA #IMPLIED
action (skip|comment) "skip">
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE nstemplate SYSTEM "nstemplate.dtd">
<!--
XML NS template for making a single-node PlanetLab DevBox experiment
-->
......
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE nstemplate SYSTEM "nstemplate.dtd">
<!--
XML NS template based on planetlab.ns - For making PlanetLab experiments
-->
......@@ -6,7 +7,7 @@
<variable name="Count" default="10" />
<variable name="ResUsage" default="3" />
<variable name="HWType" default="pcplab" />
<variable name="FailOK" />
<variable name="FailOK" default="" />
<variable name="Tarballs" default="/somedir /proj/yourproj/tarfiles/yourtarball.tar.gz" />
<variable name="RPMs" default="/proj/yourproj/rpms/yourrpm.rpm" />
<variable name="Startup" default="/somepath/yourstartupcmd" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment