修复Spring的配置的xsd文件需要对packageExpression的值做校验

This commit is contained in:
zhangxin10 2015-12-30 11:39:29 +08:00
parent 01c88eaeac
commit 43194ab6f6
1 changed files with 14 additions and 8 deletions

View File

@ -1,14 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://cloud.asiainfo.com/schema/skywalking"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cloud.asiainfo.com/schema/skywalking">
xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cloud.asiainfo.com/schema/skywalking">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="trace" type="traceType">
</xsd:element>
<xsd:element name="trace" type="traceType">
</xsd:element>
<xsd:complexType name="traceType">
<xsd:attribute name="packageExpression" type="xsd:string" use="required" />
<xsd:attribute name="classExpression" type="xsd:string" use="optional" default="*" />
</xsd:complexType>
<xsd:complexType name="traceType">
<xsd:attribute name="packageExpression" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[\w|.]*\.\*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="classExpression" type="xsd:string" use="optional" default="*"/>
</xsd:complexType>
</xsd:schema>