Changeset 973
- Timestamp:
- 12/09/10 12:19:39 (13 years ago)
- Location:
- metadata/trunk/toolkit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/comp2schema-header.xsl
r562 r973 8 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 9 9 xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"> 10 11 12 <xsl:template name="PrintHeaderType"> 13 <xs:simpleType name="Resourcetype_simple"> 14 <xs:restriction base="xs:string"> 15 <xs:enumeration value="Metadata"> 16 <xs:annotation> 17 <xs:documentation>The ResourceProxy 18 refers to another component 19 metadata instance (e.g. for 20 grouping metadata descriptions 21 into 22 collections)</xs:documentation> 23 </xs:annotation> 24 </xs:enumeration> 25 <xs:enumeration value="Resource"> 26 <xs:annotation> 27 <xs:documentation>The ResourceProxy 28 refers to a file that is not a 29 metadata instance (e.g. a text 30 document)</xs:documentation> 31 </xs:annotation> 32 </xs:enumeration> 33 </xs:restriction> 34 </xs:simpleType> 35 </xsl:template> 36 37 10 38 <xsl:template name="PrintHeader"> 39 11 40 <xs:element name="Header"> 12 41 <xs:complexType> … … 19 48 </xs:complexType> 20 49 </xs:element> 50 21 51 <xs:element name="Resources"> 22 52 <xs:complexType> … … 28 58 <xs:complexType> 29 59 <xs:sequence> 60 30 61 <xs:element maxOccurs="1" minOccurs="1" 31 62 name="ResourceType"> 32 <xs:simpleType> 33 <xs:restriction base="xs:string"> 34 <xs:enumeration value="Metadata"> 35 <xs:annotation> 36 <xs:documentation>The ResourceProxy 37 refers to another component 38 metadata instance (e.g. for 39 grouping metadata descriptions 40 into 41 collections)</xs:documentation> 42 </xs:annotation> 43 </xs:enumeration> 44 <xs:enumeration value="Resource"> 45 <xs:annotation> 46 <xs:documentation>The ResourceProxy 47 refers to a file that is not a 48 metadata instance (e.g. a text 49 document)</xs:documentation> 50 </xs:annotation> 51 </xs:enumeration> 52 </xs:restriction> 53 </xs:simpleType> 63 <xs:complexType> 64 <xs:simpleContent> 65 <xs:extension base="Resourcetype_simple"> 66 <xs:attribute name="mimetype" type="xs:string"/> 67 </xs:extension> 68 </xs:simpleContent> 69 </xs:complexType> 54 70 </xs:element> 71 55 72 <xs:element maxOccurs="1" minOccurs="1" 56 73 name="ResourceRef" type="xs:anyURI"/> 57 74 </xs:sequence> 58 75 <xs:attribute name="id" type="xs:ID" use="required"/> 76 59 77 </xs:complexType> 60 78 </xs:element> -
metadata/trunk/toolkit/comp2schema.xsl
r810 r973 56 56 <!-- first create complex types for valueschemes (not inline) --> 57 57 <xsl:call-template name="CreateComplexTypes"/> 58 59 <!-- then create simple type for the ResourceProxy --> 60 <xsl:call-template name="PrintHeaderType"/> 58 61 59 62 <xs:element name="CMD"> -
metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema-header.xsl
r562 r973 8 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 9 9 xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"> 10 11 <xsl:template name="PrintHeaderType"> 12 <xs:simpleType name="Resourcetype_simple"> 13 <xs:restriction base="xs:string"> 14 <xs:enumeration value="Metadata"> 15 <xs:annotation> 16 <xs:documentation>The ResourceProxy 17 refers to another component 18 metadata instance (e.g. for 19 grouping metadata descriptions 20 into 21 collections)</xs:documentation> 22 </xs:annotation> 23 </xs:enumeration> 24 <xs:enumeration value="Resource"> 25 <xs:annotation> 26 <xs:documentation>The ResourceProxy 27 refers to a file that is not a 28 metadata instance (e.g. a text 29 document)</xs:documentation> 30 </xs:annotation> 31 </xs:enumeration> 32 </xs:restriction> 33 </xs:simpleType> 34 </xsl:template> 35 36 10 37 <xsl:template name="PrintHeader"> 11 38 … … 31 58 <xs:element maxOccurs="1" minOccurs="1" 32 59 name="ResourceType"> 33 <xs:simpleType> 34 <xs:restriction base="xs:string"> 35 <xs:enumeration value="Metadata"> 36 <xs:annotation> 37 <xs:documentation>The ResourceProxy 38 refers to another component 39 metadata instance (e.g. for 40 grouping metadata descriptions 41 into 42 collections)</xs:documentation> 43 </xs:annotation> 44 </xs:enumeration> 45 <xs:enumeration value="Resource"> 46 <xs:annotation> 47 <xs:documentation>The ResourceProxy 48 refers to a file that is not a 49 metadata instance (e.g. a text 50 document)</xs:documentation> 51 </xs:annotation> 52 </xs:enumeration> 53 </xs:restriction> 54 </xs:simpleType> 60 <xs:complexType> 61 <xs:simpleContent> 62 <xs:extension base="Resourcetype_simple"> 63 <xs:attribute name="mimetype" type="xs:string"/> 64 </xs:extension> 65 </xs:simpleContent> 66 </xs:complexType> 55 67 </xs:element> 56 68 <xs:element maxOccurs="1" minOccurs="1" -
metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema.xsl
r816 r973 65 65 <xsl:call-template name="CreateComplexTypes"/> 66 66 67 67 <!-- then create simple type for the ResourceProxy --> 68 <xsl:call-template name="PrintHeaderType"/> 68 69 69 70
Note: See TracChangeset
for help on using the changeset viewer.