Changeset 297
- Timestamp:
- 03/26/10 16:29:38 (14 years ago)
- Location:
- metadata/trunk/toolkit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/comp2schema.xsl
r81 r297 186 186 <!-- Process all CMD_Elements, its attributes and children --> 187 187 <xsl:template match="CMD_Element"> 188 189 188 190 <xsl:choose> 189 191 … … 191 193 <xsl:when test="./AttributeList and ./ValueScheme"> 192 194 <xs:element name="{@name}"> 195 <xsl:apply-templates select= "@Documentation"/> 193 196 <xsl:apply-templates select="./ValueScheme"/> 194 197 </xs:element> … … 198 201 <xsl:when test="./AttributeList and not(./ValueScheme)"> 199 202 <xs:element name="{@name}"> 203 <xsl:apply-templates select= "@Documentation"/> 200 204 <xsl:apply-templates select= "@ConceptLink"/> 201 205 <xsl:apply-templates select= "@CardinalityMin"/> … … 215 219 <xsl:otherwise> 216 220 <xsl:element name="xs:element"> 221 <xsl:apply-templates select= "@Documentation"/> 217 222 <xsl:apply-templates select="@* | node()"/> 218 223 </xsl:element> … … 308 313 </xsl:template> 309 314 315 <xsl:template match="@Documentation"> 316 <xs:annotation> 317 <xs:documentation><xsl:value-of select="."/></xs:documentation> 318 </xs:annotation> 319 </xsl:template> 320 310 321 <xsl:template match="@ValueScheme"> 311 322 <xsl:attribute name="type"> -
metadata/trunk/toolkit/example/example-component-actor.xml
r47 r297 8 8 <CMD_Component name="Actor" CardinalityMin="0" CardinalityMax="unbounded" ComponentId="eu.clarin.mdcomponent.actor"> 9 9 10 <CMD_Element name="firstName" ValueScheme="string" >10 <CMD_Element name="firstName" ValueScheme="string" Documentation="This is the firstname of a person"> 11 11 <!-- provide a nickname attribute for the firstName element --> 12 12 <AttributeList> -
metadata/trunk/toolkit/example/example-md-schema.xsd
r72 r297 145 145 </xs:complexType> 146 146 </xs:element> 147 <xs:element minOccurs="0" name="IsPartOfList"> 148 <xs:complexType> 149 <xs:sequence> 150 <xs:element maxOccurs="unbounded" minOccurs="0" name="IsPartOf" type="xs:anyURI"/> 151 </xs:sequence> 152 </xs:complexType> 153 </xs:element> 147 154 </xs:sequence> 148 155 </xs:complexType> … … 189 196 <xs:sequence> 190 197 <xs:element name="firstName"> 198 <xs:annotation> 199 <xs:documentation>This is the firstname of a person</xs:documentation> 200 </xs:annotation> 191 201 <xs:complexType> 192 202 <xs:simpleContent> -
metadata/trunk/toolkit/general-component-schema.xsd
r81 r297 90 90 <xs:attribute name="CardinalityMin" type="cardinality_type"/> 91 91 <xs:attribute name="CardinalityMax" type="cardinality_type"/> 92 <xs:attribute name="Documentation" type="xs:string"/> 92 93 </xs:attributeGroup> 93 94
Note: See TracChangeset
for help on using the changeset viewer.