Changeset 1167
- Timestamp:
- 03/14/11 15:20:11 (13 years ago)
- Location:
- metadata/trunk/toolkit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/xsd/minimal-cmdi.xsd
r1116 r1167 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org" targetNamespace="http://www.clarin.eu/cmd/" attributeFormDefault="unqualified" elementFormDefault="qualified"> 3 4 3 <xs:element name="CMD"> 5 4 <xs:complexType> … … 101 100 </xs:complexType> 102 101 </xs:element> 103 104 102 </xs:sequence> 103 <xs:attribute name="CMDVersion" fixed="1.1" use="required"/> 105 104 </xs:complexType> 106 107 105 </xs:element> 108 106 </xs:schema> -
metadata/trunk/toolkit/xslt/comp2schema-v2/cleanup-xsd.xsl
r562 r1167 7 7 8 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" 9 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org "9 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" 10 10 xmlns:ann="http://www.clarin.eu"> 11 11 <xsl:strip-space elements="*"/> … … 14 14 15 15 <xsl:template match="/xs:schema"> 16 <xs:schema> 16 <xs:schema xmlns:cmd="http://www.clarin.eu/cmd/"> 17 <xsl:copy-of select="@*"/> 17 18 <xsl:apply-templates select="xs:import"/> 18 19 <!-- Remove double entries for named simpleType and complexType definitions at the begin of the XSD. --> -
metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema-header.xsl
r973 r1167 60 60 <xs:complexType> 61 61 <xs:simpleContent> 62 <xs:extension base=" Resourcetype_simple">62 <xs:extension base="cmd:Resourcetype_simple"> 63 63 <xs:attribute name="mimetype" type="xs:string"/> 64 64 </xs:extension> -
metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema.xsl
r973 r1167 9 9 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" 10 10 xmlns:ann="http://www.clarin.eu"> 11 12 <xsl:variable name="CMDVersion" select="'1.1'"/> 11 13 12 14 <xsl:strip-space elements="*"/> … … 55 57 <xsl:template match="/CMD_ComponentSpec"> 56 58 57 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" >59 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:cmd="http://www.clarin.eu/cmd/" targetNamespace="http://www.clarin.eu/cmd/" elementFormDefault="qualified"> 58 60 59 61 <!-- import this for the use of the xml:lang attribute --> … … 71 73 <xs:element name="CMD"> 72 74 <xs:complexType> 73 75 74 76 <xs:sequence> 75 77 … … 90 92 <!-- Generate the footer --> 91 93 </xs:sequence> 94 95 <!-- CMD version --> 96 <xs:attribute name="CMDVersion" fixed="{$CMDVersion}" use="required"/> 97 92 98 </xs:complexType> 93 99 </xs:element> … … 130 136 <xs:complexType name="complextype{$uniquePath}"> 131 137 <xs:simpleContent> 132 <xs:extension base=" simpletype{$uniquePath}">138 <xs:extension base="cmd:simpletype{$uniquePath}"> 133 139 <!-- now look at the attribute list of the CMD_Element parent of this ValueScheme--> 134 140 <xsl:apply-templates select="parent::node()/AttributeList/Attribute"/> … … 287 293 288 294 <xsl:attribute name="type"> 289 <xsl:text>c omplextype</xsl:text>295 <xsl:text>cmd:complextype</xsl:text> 290 296 <xsl:value-of select="$uniquePath"/> 291 297 </xsl:attribute>
Note: See TracChangeset
for help on using the changeset viewer.