📄 xsdattribute.vm
字号:
## omitted type or anonymous embedded type definition
#if( ! $modelElement.Type || ! $modelElement.Type.isTopLevel() )
<xs:attribute name="$modelElement.Name"
#elseif( $modelElement.Type.XSDClassName == "XSDComplexType" && $modelElement.MaxOccurs != 1 )
<xs:attribute name="$modelElement.Name" type="${xsdPrefix}IDREFS"
#elseif( $modelElement.Type.XSDClassName == "XSDComplexType" )
<xs:attribute name="$modelElement.Name" type="${xsdPrefix}$!modelElement.LinkType"
#else
<xs:attribute name="$modelElement.Name" type="$!modelElement.Type.XMLQName"
#end
#if( $modelElement.isProhibited() ) use="prohibited"
#elseif( $modelElement.isFixed() ) fixed="$!modelElement.DefaultValue"
#elseif( $modelElement.DefaultValue && $modelElement.DefaultValue.length() > 0 ) default="$!modelElement.DefaultValue"
#elseif( $modelElement.isRequired() ) use="required"
#end
#if( $modelElement.Form && $modelElement.Form.length() > 0 ) form="$!modelElement.Form"#end
#if( $modelElement.Id ) id="$modelElement.Id"#end
>
#PrintXSDAnnotation( $modelElement )
#if( $modelElement.Type && ! $modelElement.Type.isTopLevel() )
#ProcessXSD( $modelElement.Type )
#end
</xs:attribute>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -