[LON-CAPA-cvs] cvs: loncom /build lpml.dtd

harris41 lon-capa-cvs@mail.lon-capa.org
Sun, 13 Oct 2002 17:24:05 -0000


harris41		Sun Oct 13 13:24:05 2002 EDT

  Modified files:              
    /loncom/build	lpml.dtd 
  Log:
  xml syntax rules for protectionlevel (currently a directory-level tag
  which helps LPML users stay paranoid about what directories they want
  or do not want to remove from the system); this relates to an "uninstall"
  feature (BUG 860); also, it may very well be that "uninstall" is perfectly
  inverse to a "backup" functionality--and a "restore" functionality may
  also coincide well with the protectionlevel tagging
  
  
Index: loncom/build/lpml.dtd
diff -u loncom/build/lpml.dtd:1.15 loncom/build/lpml.dtd:1.16
--- loncom/build/lpml.dtd:1.15	Sun Apr 14 16:15:02 2002
+++ loncom/build/lpml.dtd	Sun Oct 13 13:24:05 2002
@@ -75,7 +75,7 @@
   "always run", or
   "run if dependencies change"
 
-Note that you must type this text exactly in for the
+Note that you must type the trigger text values exactly for the
 attribute value to be understood and processed correctly
 by the lpml "make build" parser.
 -->
@@ -129,11 +129,19 @@
 <!ELEMENT status (#PCDATA)>
 <!ELEMENT linkto (#PCDATA)>
 
-<!ELEMENT directory (targetdir+,categoryname,description?)>
+<!ELEMENT directory (protectionlevel,targetdir+,categoryname,description?)>
 <!ATTLIST directory
     dist CDATA #REQUIRED
     >
 
+<!ELEMENT protectionlevel (#PCDATA)>
+<!-- correct PCDATA values are:
+     "never_delete"
+     "weak_delete"
+     "modest_delete"
+     "strong_delete"
+     "absolute_delete"
+-->
 <!ELEMENT file (source,target+,categoryname,description?,buildlink?,
                 note?,build?,status?,dependencies?)>
 <!ELEMENT link (linkto,target,categoryname,description?,