mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00768
[Branch ~cdd-dev/cdd/trunk] Rev 283: Moved rdf & dc namespaces to be document wide. Removed replacements for dashes to underscores.
------------------------------------------------------------
revno: 283
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: cdd
timestamp: Tue 2012-10-30 08:56:36 -0200
message:
Moved rdf & dc namespaces to be document wide. Removed replacements for dashes to underscores.
modified:
README.txt
src/2.0/cdd.py
--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk
Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'README.txt'
--- README.txt 2012-09-14 12:44:18 +0000
+++ README.txt 2012-10-30 10:56:36 +0000
@@ -1,4 +1,4 @@
-CDD 2.3.1 - Release Date: 2012-09-09
+CDD 2.4.0 - Release Date: 2012-10-30
A graphical tool used to model and output a common XML definition defining constraint definitions for the MLHIM reference model.
Currently the tool is represented by a template of the MLHIM2 reference model, for the XMind engine.
=== modified file 'src/2.0/cdd.py'
--- src/2.0/cdd.py 2012-10-19 14:04:48 +0000
+++ src/2.0/cdd.py 2012-10-30 10:56:36 +0000
@@ -2255,6 +2255,8 @@
f.write("""<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mlhim2="http://www.mlhim.org/xmlns/mlhim2/2_4_0"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc= "http://purl.org/dc/elements/1.1/"
elementFormDefault="qualified"
targetNamespace="http://www.mlhim.org/xmlns/mlhim2/2_4_0"
xmlns:data-view="http://www.w3.org/2003/g/data-view#"
@@ -2263,7 +2265,7 @@
<xs:annotation>
<xs:appinfo>
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc= "http://purl.org/dc/elements/1.1/">
+ <rdf:RDF>
<rdf:Description rdf:about="http://www.hkcr.net/ccd/{ccd_id}">
<dc:title>{title}</dc:title>
@@ -2326,17 +2328,17 @@
))
- f.write("<!-- Here are some UUIDs to use for complexType names:\n\n")
+ f.write("<!-- Here are some UUIDs to use for complexType & element names:\n\n")
- for x in range(0,10):
- f.write("ct_"+str(uuid.uuid4()).replace('-','_')+"\n\n")
+ for x in range(0,20):
+ f.write(str(uuid.uuid4())+"\n\n")
f.write("-->")
f.close()
def randomize_uuid(self):
- self.ccd_id = "ccd_"+str(uuid.uuid4()).replace('-','_')
+ self.ccd_id = "ccd-"+str(uuid.uuid4())
# Gets info from the metadata panel. Depends on class metadata specifics
def get_meta_info(self, panel):