锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品中文字幕一区,色狠狠久久av综合,污网站在线看http://www.aygfsteel.com/anakin7308/zh-cnThu, 19 Jun 2025 00:20:14 GMTThu, 19 Jun 2025 00:20:14 GMT60XML schema瀛︿範(fàn)絎旇http://www.aygfsteel.com/anakin7308/archive/2007/05/12/116918.htmldodo.lovemedodo.lovemeFri, 11 May 2007 17:49:00 GMThttp://www.aygfsteel.com/anakin7308/archive/2007/05/12/116918.htmlhttp://www.aygfsteel.com/anakin7308/comments/116918.htmlhttp://www.aygfsteel.com/anakin7308/archive/2007/05/12/116918.html#Feedback0http://www.aygfsteel.com/anakin7308/comments/commentRss/116918.htmlhttp://www.aygfsteel.com/anakin7308/services/trackbacks/116918.html[鍘熷垱](méi) 璺熸垜瀛ML Schema錛?錛夛細(xì)鏈綆鍗曠殑Schema鏂囨。
濡備綍鍐欎竴涓渶綆鍗曠殑XML Schema鏂囨。鍛紵

 

棣栧厛錛屾垜浠啓鍑轟竴涓渶綆鍗曠殑XML鏂囨。.

hello.xml
-------------------
<?xml version="1.0"?> 
<greeting>Hello World!!</greeting>

錛堜竴涓牴鍏冪礌錛歡reeting錛涗笖榪欎釜鍏冪礌涓嶅惈灞炴э紝鏃犲瓙鍏冪礌錛屽唴瀹規(guī)槸瀛楃涓層傦級(jí)

hello.xsd
錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞
<?xml version="1.0"?> 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="greeting" type="xsd:string"/>
</xsd:schema>

XML Schema鏂囨。鍚庣紑鍚嶆槸.xsd錛屽畬鍏ㄧ鍚圶ML璇硶錛屾牴鍏冪礌鏄痵chema錛屽懡鍚嶇┖闂磝mlns:xsd="http://www.w3.org/2001/XMLSchema錛岀敤鍏冪礌<element>瀹氫箟瀹炰緥鏂囨。涓殑鍏冪礌錛屽greeting銆?br>

璺熸垜瀛ML Schema(2):鍚瓙鍏冪礌鐨勭◢澶嶆潅Schema鏂囨。 

 

鍋囪瀹炰緥鏂囨。鏄涓嬬殑錛?/p>

customer.xml
-----------
<customer>
  <name>teiki</name>
  <address>No.237, Road Waitan, Shanghai</address>
</customer>

鍒欏彲浠ュ啓鍑轟互涓嬬殑XML Schema鏂囨。錛?br>customer.xsd
----------------
1: <?xml version="1.0"?>
2: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:   <xsd:element name="customer">
4:    <xsd:complexType>
5:      <xsd:sequence>
6:        <xsd:element name="name" type="xsd:string"/>
7:        <xsd:element name="address" type="xsd:string" />
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11: </xsd:schema>

瀹炰緥鏂囨。customer.xml涓紝<customer>鍏冪礌鍚湁涓や釜瀛愬厓绱狅紝鎵浠ユ垜浠湪Schema鏂囨。涓噰鐢–omplexType鏉ュ畾涔夎鍏冪礌銆?/p>

sequence琛ㄧず瀛愬厓绱犱緷嬈″嚭鐜扮殑欏哄簭銆?br>

璺熸垜瀛ML Schema(3):鍚瓙鍏冪礌鍜屽瓩鍏冪礌鐨勬洿澶嶆潅Schema鏂囨。

 

榪欐鎴戜滑緇欏嚭涓涓洿鍔犲鏉備竴浜涚殑鏂囨。錛?/p>

address.xml
---------------
<customer>
  <name>Teiki</name>
  <address>
    <!-- address榪藉姞涓涓湴鍧瀛愬厓绱?nbsp;-->
    <prefecture>Zhejiang</prefecture>
    <city>Hangzhou</city>
    <street>Xilu Road, No.121, 7F</street>
  </address>
</customer>


涓烘錛屾垜浠渶瑕佷竴涓洿鍔犲鏉備竴鐐圭殑Schema鏂囨。錛?/p>

address.xsd
-----------------
1: <?xml version="1.0"?>
2: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:   <xsd:element name="customer">
5:     <xsd:complexType>
6:       <xsd:sequence>
7:         <xsd:element name="name" type="xsd:string"/>
8:         <!-- 榪藉姞瀛愬厓绱燼ddress-->
9:         <xsd:element name="address">
10:          <xsd:complexType>
11:            <xsd:sequence>
12:              <xsd:element name="prefecture" type="xsd:string"/>
13:              <xsd:element name="city" type="xsd:string" />
14:              <xsd:element name="street" type="xsd:string" />
15:            </xsd:sequence>
16:          </xsd:complexType>
17:        </xsd:element>
18:        <!-- end -->
19:      </xsd:sequence>
20:    </xsd:complexType>
21:  </xsd:element>
22:
23:</xsd:schema>
涓嶈繃錛屾垜浠繕鍙互閲囩敤ref鍏冪礌鏉ラ噸鏂扮紪鍐欒繖涓猄chema鏂囨。錛?br>address2.xsd
----------------------
1: <?xml version="1.0"?>
2: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:   <xsd:element name="customer">
5:     <xsd:complexType>
6:       <xsd:sequence>
7:         <xsd:element name="name" type="xsd:string"/>
8:         <xsd:element ref="address"/>
9:       </xsd:sequence>
10:    </xsd:complexType>
11:  </xsd:element>
12:
13:  <xsd:element name="address">
14:    <xsd:complexType>
15:      <xsd:sequence>
16:        <xsd:element name="prefecture" type="xsd:string"/>
17:        <xsd:element name="city" type="xsd:string" />
18:        <xsd:element name="street" type="xsd:string" />
19:      </xsd:sequence>
20:    </xsd:complexType>
21:  </xsd:element>
22:
23: </xsd:schema>
浣跨敤ref鍏冪礌鍙互鐩存帴灝嗗叾鎸囧悜鍙︿竴涓ā鍧楋紝浣挎枃妗f洿鍔犲叿鏈夊彲璇繪с?/p>

璺熸垜瀛ML Schema(4):濡備綍瀹氫箟灞炴у憿錛?nbsp;

 


鍔犲叆瀹炰緥鏂囨。鐨勫厓绱犲寘鍚睘鎬э紝鎬庝箞鍔炲憿錛?/p>

customer2.xml
---------------
<customer id="001718">
  <name>Teiki</name>
  <address>No.237, Road Waitan, Shanghai</address>
</customer>

閭e氨榪欐牱鍐橲chema鏂囨。錛?br>customer2.xsd
------------------
1: <?xml version="1.0"?>
2: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:   <xsd:element name="customer">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element name="name" type="xsd:string"/>
8:        <xsd:element name="address" type="xsd:string" />
9:      </xsd:sequence>
10:      <!-- 澧炲姞灞炴у畾涔?nbsp;-->
11:      <xsd:attribute name="id" type="xsd:string"/>
12:    </xsd:complexType>
13:  </xsd:element>
14:
15: </xsd:schema>

寰堢畝鍗曪紝鍦?lt;sequence>鍏冪礌瀹氫箟瀹屾垚鍚庯紝鍐嶇敤<attribute>鍏冪礌id銆?/p>

璺熸垜瀛ML Schema(5):濡備綍瀹氫箟鐩稿悓瀛愬厓绱犵殑鏁伴噺錛?nbsp;

 

鍏堢湅榪欎釜綆鍗曠殑璁㈣喘鏁版嵁瀹炰緥鏂囨。錛?/p>

order.xml
---------
<order>
  <orderItem>Accounting Book</orderItem>
  <orderItem>Taxation Book</orderItem>
</order>

鍋囪<orderItem>鍏冪礌錛屽嵆姣忔鐨勮璐功鐩笉鑳借秴榪?0縐嶏紝閭h鎬庝箞鍐欒繖涓猄chema鏂囨。鍛紵榪欓噷瑕佺敤鍒?lt;element>鐨刴axOccurs灞炴с?/p>

order.xsd
--------------------
1:<?xml version="1.0"?>
2:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:  <xsd:element name="order">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element name="orderItem"   type="xsd:string"  maxOccurs="10" />
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11:
12:</xsd:schema>

絎?琛屼腑鐨刴axOccurs灞炴т負(fù)10錛屼唬琛╫rderItem鍏冪礌鍙互鏈澶ф湁10涓傚鏋滐紝涓嶈瀹氬厓绱犱釜鏁幫紝鍒欏彲浠ョ敤maxOccurs="unbounded"鏉ュ畾涔?

綾諱技錛屽鏋滆瀹氫箟鏈灝忓鹼紝鍙互浣跨敤minOccurs錛屾瘮濡備笅闈㈣繖鍙ワ細(xì)
<xsd:element name="orderItem" type="xsd:string" minOccurs="5" maxOccurs="10"/>
榪欎袱涓睘鎬х己鐪佸奸兘鏄?銆?/p>

璺熸垜瀛ML Schema(6):濡備綍瀹氫箟鍙夐」鐨勫瓙鍏冪礌錛?

 

鍋囧涓婇潰鐨勮涔︽暟鎹腑錛屽彲浠ョ敤涔﹀悕鎴栬呬功鍙蜂換涓涓縐嶈璐紝鍒欏疄渚嬫枃妗e彲鑳藉涓嬶細(xì)

order2.xml
-----------------
<order>
  <orderItem>
    <!--涔﹀悕璁㈣喘-->
    <name>Accounting Book</name>
  </orderItem>
  <orderItem>
    <!--涔﹀彿璁㈣喘-->
    <id>7-5058-3496-7</id>
  </orderItem>
</order>

榪欐椂涔﹀啓Schema鏂囨。榪橀渶瑕佷嬌鐢╟hoice鍏冪礌銆?/p>

order2.xsd
-------------------------
1:<?xml version="1.0"?>
2:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:  <xsd:element name="order">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element ref="orderItem" maxOccurs="10" />
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11:
12:  <xsd:element name="orderItem">
13:    <xsd:complexType>
14:      <xsd:choice>
15:        <xsd:element name="name" type="xsd:string"/>
16:        <xsd:element name="id" type="xsd:string"/>
17:      </xsd:choice>
18:    </xsd:complexType>
19:  </xsd:element>
20:
21:</xsd:schema>

璺熸垜瀛ML Schema(7):紼嶅井鏇村鏉傜殑鍙夐」瀛愬厓绱?

 

鍐嶇◢寰慨鏀逛竴涓嬭涔︽暟鎹殑瀹炰緥鏂囨。錛?/p>

order3.xml
-----------------
<order>
  <orderItem>
    <name>Accounting Book</name>
    <quantity>2</quantity>
  </orderItem>
  <orderItem>
    <id>7-5058-3496-7</id>
  </orderItem>
</order>

榪欓噷鍋囧畾<quantity>鍊間負(fù)1鏃訛紝緙虹渷銆?/p>

濡備綍淇敼Schema鏂囨。鍛紵

order3.xsd
-----------------
1:<?xml version="1.0"?>
2:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:  <xsd:element name="order">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element ref="orderItem" maxOccurs="10"/>
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11:
12:  <xsd:element name="orderItem">
13:    <xsd:complexType>
14:      <xsd:sequence>
15:        <xsd:choice>
16:          <xsd:element name="name" type="xsd:string"/>
17:          <xsd:element name="id" type="xsd:string"/>
18:        </xsd:choice>
19:        <xsd:element name="quantity" type="xsd:string" minOccurs="0"/>
20:      </xsd:sequence>
21:    </xsd:complexType>
22:  </xsd:element>
23:
24:</xsd:schema>

19琛屼腑鐨剄uantity鏈灝戝嚭鐜板間負(fù)0錛屼篃灝辨槸鍙互鏈夛紝涔熷彲浠ユ病鏈夈?br>褰撶劧錛屼篃鍙互鐩存帴鍦?lt;choice>鍏冪礌涓紝鍖呭惈quantity,鐒跺悗瀹氫箟瀹冪殑minOccurs銆?/p>

 

璺熸垜瀛ML Schema(8):鍐呯疆綆鍗曠被鍨?

 

鍐呭緩浜嶺ML Schema鐨勭畝鍗曠被鍨嬫湁44縐嶃備粬浠湪XML Schema鎺ㄨ崘鏍囧噯鐨勭浜岄儴鍒嗕腑鍏竷錛屼笅闈㈣繖鏄竴寮犲唴緗被鍨嬬殑灞傛緇撴瀯鍥撅細(xì)

http://www.w3.org/TR/2001/PR-xmlschema-2-20010330/type-hierarchy.jpg

璺熸垜瀛ML Schema(9):鑷畾涔夌畝鍗曠被鍨?

 

濡傛灉鍐呯疆綆鍗曠被鍨嬬殑44縐嶈繕?shù)笉鑳芥弧鑳鲨姹傚Q屾庝箞鍔炲憿錛熶笅闈㈠涔?fàn)鑷畾涔壗巰鍗曠被鍨嬨?XML鐨勬墿灞曟у厖鍒嗕綋鐜板湪榪欓噷)

渚嬪榪欎釜瀹炰緥鏂囨。錛?/p>

order4.xml
-----------------
<order>
  <orderItem>
    <id>7-5058-3496-7</id>
    <quantity>5</quantity>
  </orderItem>
</order>

ID鏄竴涓爣鍑嗙殑ISBN緙栫爜錛屾垜浠庝箞瀹氫箟榪欎釜ISBN緙栫爜鍛紵

<xsd:simpleType name="idType">
  <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{1}-\d{4}-\d{4}-\d{1}"/>
  </xsd:restriction>
</xsd:simpleType>

idType鏄竴涓嚜瀹氫箟鐨勭畝鍗曠被鍨嬨?br>鎴戜滑瀵瑰畠鍋氫簡(jiǎn)闄愬埗錛?br><xsd:restriction base="xsd:string">浠h〃瀹冩槸鍩轟簬涓涓瓧絎︿覆綾誨瀷銆傚啀鐢╬attern鍏冪礌鏉ユ弿榪拌瀛楃涓茬殑褰㈠紡銆?/p>

value="\d{1}-\d{4}-\d{4}-\d{1}"榪欐槸涓涓鍒欒〃杈懼紡錛屽叧浜庢鍒欒〃杈懼紡錛屼互鍚庡啀浠嬬粛銆傚樆鍢伙紒

鍒╃敤榪欎釜鑷畾涔夌殑綆鍗曠被鍨嬶紝鎴戜滑鍙互閲嶆柊鍐橲chema鏂囨。錛?/p>

order4.xsd
---------------
1:<?xml version="1.0"?>
2:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:  <xsd:element name="order">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element ref="orderItem" maxOccurs="10"/>
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11:
12:  <xsd:element name="orderItem">
13:    <xsd:complexType>
14:      <xsd:sequence>
15:        <xsd:element name="id" type="idType"/>
16:        <xsd:element name="quantity" type="xsd:integer"/>
17:      </xsd:sequence>
18:    </xsd:complexType>
19:  </xsd:element>
20:  
21:  <xsd:simpleType name="idType">
22:    <xsd:restriction base="xsd:string">
23:      <xsd:pattern value="\d{1}-\d{4}-\d{4}-\d{1}"/>
24:    </xsd:restriction>
25:  </xsd:simpleType>
26:  
27:</xsd:schema>


鍋囧鎴戜滑浜嬪厛紜畾濂絀D鍙湁3涓紝鍗沖彧鏈?涓狪SBN鏄彲閫夌殑錛岄偅鎬庝箞鍔烇紵鎴戜滑鍙互鐢╡numeration鍏冪礌鏉ヨ繘琛屽垪涓俱?/p>

<xsd:simpleType name="idType">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="7-5058-3496-7"/>
    <xsd:enumeration value="7-5005-6450-3"/>
    <xsd:enumeration value="7-3020-6069-7"/>
  </xsd:restriction>
</xsd:simpleType>


鍐嶆潵鐪嬭璐噺quantity鐨勫鹼紝濡傛灉鎴戜滑璁懼畾鍏跺煎繀欏誨湪1錛?0涔嬮棿錛岃鎬庝箞鍔炲憿錛熷彲浠ヨ繖浜涜嚜瀹氫箟涓涓畝鍗曠被鍨嬨?/p>

<xsd:simpleType name="quantityType">
  <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="1"/>
    <xsd:maxInclusive value="10"/>
  </xsd:restriction>
</xsd:simpleType>

鍏朵腑錛宮inInclusive,maxInclusive鍒嗗埆浠h〃璇ョ被鍨嬬殑鍙栧艱寖鍥淬?/p>

鎵浠ユ渶緇堜慨鏀瑰悗鐨凷chema鏂囨。濡備笅錛?/p>

order4-1.xsd
----------------------
1:<?xml version="1.0"?>
2:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:  <xsd:element name="order">
5:    <xsd:complexType>
6:      <xsd:sequence>
7:        <xsd:element ref="orderItem" maxOccurs="10"/>
8:      </xsd:sequence>
9:    </xsd:complexType>
10:  </xsd:element>
11:
12:  <xsd:element name="orderItem">
13:    <xsd:complexType>
14:      <xsd:sequence>
15:        <xsd:element name="id" type="idType"/>
16:        <xsd:element name="quantity" type="quantityType"/>
17:      </xsd:sequence>
18:    </xsd:complexType>
19:  </xsd:element>
20:  
21:  <xsd:simpleType name="idType">
22:    <xsd:restriction base="xsd:string">
23:      <xsd:enumeration value="7-5058-3496-7"/>
    <xsd:enumeration value="7-5005-6450-3"/>
    <xsd:enumeration value="7-3020-6069-7"/>
26:    </xsd:restriction>
27:  </xsd:simpleType>
28:  
29:  <xsd:simpleType name="quantityType">
30:    <xsd:restriction base="xsd:integer">
31:      <xsd:minInclusive value="1"/>
32:      <xsd:maxInclusive value="10"/>
33:    </xsd:restriction>
34:  </xsd:simpleType>
35:
36:</xsd:schema>

璺熸垜瀛ML Schema(10):瀹氫箟灞炴?

 

鏈鍚庯紝鎴戜滑鍐嶆潵璁茶鍏冪礌鐨勫睘鎬у浣曞湪Schema鏂囨。涓畾涔夈?/p>

姣斿涓婇潰鐨刼rder.xml瀹炰緥鏂囨。涓細(xì)

<order>
  <orderItem id="7-5058-3496-7" />
</order>

瀵規(guī)錛屾垜浠湪Schema鏂囨。涓噰鐢ㄤ竴涓猘ttribute鏉ュ畾涔夛細(xì)

order.xsd
錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛?br><xsd:element name="orderItem">
  <xsd:complexType>
    <xsd:sequence>銆銆←絀哄厓绱?br>    </xsd:sequence>銆 
    
    <!--瀹氫箟璇ュ厓绱犲睘鎬?->
    <xsd:attribute name="id" type="xsd:string"/>
  </xsd:complexType>
</xsd:element>

閭d箞錛屽疄渚嬫枃妗d腑璇ュ睘鎬у兼槸蹇呴』鐨勮繕鏄彲鏈夊彲鏃犵殑鍛紵鎴戜滑鍙互榪欐牱闄愬埗錛?/p>

<xsd:attribute name="id" type="idType" use="required"/>

榪欓噷鎴戜滑璁瞚d灞炴х被鍨嬩綔涓轟竴縐嶈嚜瀹氫箟鏁版嵁綾誨瀷idType銆?br>鑰屼笖錛岀敤attribute鍏冪礌鐨剈se灞炴ф潵瀹氫箟鏄惁鏄繀欏葷殑灞炴с?br>required鏄繀欏誨鹼紝optional鏄彲閫夊鹼紝prohibited鏄棤灞炴у箋?/p>


閭d箞瀵逛簬灞炴х殑緙虹渷鍊鹼紝鎴戜滑鎬庝箞瀹氫箟鍛紵
姣斿錛?br><order>
  <orderItem id="4-8443-1780-6" quantity="3"/>
</order>

鎴戜滑榪樺彲浠ョ敤attribute鍏冪礌鐨勫彟涓涓睘鎬efault鏉ュ畾涔夛細(xì)
<xsd:attribute name="quantity" type="xsd:integer" default="1"/>

鎵浠ワ紝鎴戜滑鍙互閲嶆柊鍐欏嚭涓涓猄chema鏂囨。錛?/p>

order2.xsd
--------------
<xsd:element name="orderItem">
  <xsd:complexType>
    <xsd:sequence></xsd:sequence>
    <xsd:attribute name="id" type="idType" use="required"/>
    <xsd:attribute name="quantity" type="xsd:integer" default="1"/>
  </xsd:complexType>
</xsd:element>

涓婇潰鐨勫睘鎬ф垜浠畾涔夋垜浠繕鍙互閲囩敤灞炴х粍鐨勫姙娉曟潵閲嶆柊鏀瑰啓Schema鏂囨。銆?

 

order3.xsd
----------------
1:    <xsd:element name="orderItem">
2:      <xsd:complexType>
3:        <xsd:sequence></xsd:sequence>
4:        <xsd:attributeGroup ref="orderItemAttributes"/>
5:      </xsd:complexType>
6:    </xsd:element>
7:
8:    <xsd:attributeGroup name="orderItemAttributes">
9:      <xsd:attribute name="id" type="idType" use="required"/>
10:      <xsd:attribute name="quantity" type="xsd:integer" default="1"/>
11:    </xsd:attributeGroup>

榪欎釜灞炴х粍灝變笉璇︾粏瑙i噴浜?jiǎn)锛屼笉杩囧Q屽ぇ瀹朵竴鐪嬪氨娓呮浜?jiǎn)鍚с?/p>

鏈鍚庯紝鎴戜滑鍐欎竴涓畬鏁寸殑璁功order.xml鐨凷chema鏂囨。銆?br>1:  <?xml version="1.0"?>
2:  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3:
4:    <xsd:element name="order">
5:      <xsd:complexType>
6:        <xsd:sequence>
7:          <xsd:element ref="orderItem" maxOccurs="10"/>
8:        </xsd:sequence>
9:      </xsd:complexType>
10:    </xsd:element>
11:
12:    <xsd:element name="orderItem">
13:      <xsd:complexType>
14:        <xsd:sequence></xsd:sequence>
15:        <xsd:attributeGroup ref="orderItemAttributes"/>
16:      </xsd:complexType>
17:    </xsd:element>
18:
19:    <xsd:attributeGroup name="orderItemAttributes">
20:      <xsd:attribute name="id" type="idType" use="required"/>
21:      <xsd:attribute name="quantity" type="xsd:integer" default="1"/>
22:    </xsd:attributeGroup>
23:
24:    <xsd:simpleType name="idType">
25:      <xsd:restriction base="xsd:string">
26:        <xsd:pattern value="\d{1}-\d{4}-\d{4}-\d{1}"/>
27:      </xsd:restriction>
28:    </xsd:simpleType>
29:
30:  </xsd:schema>




]]>
宸ュ巶鏂規(guī)硶鎬葷粨http://www.aygfsteel.com/anakin7308/archive/2007/05/10/116459.htmldodo.lovemedodo.lovemeThu, 10 May 2007 05:20:00 GMThttp://www.aygfsteel.com/anakin7308/archive/2007/05/10/116459.htmlhttp://www.aygfsteel.com/anakin7308/comments/116459.htmlhttp://www.aygfsteel.com/anakin7308/archive/2007/05/10/116459.html#Feedback2http://www.aygfsteel.com/anakin7308/comments/commentRss/116459.htmlhttp://www.aygfsteel.com/anakin7308/services/trackbacks/116459.html
鍙互浣跨敤宸ュ巶鏂規(guī)硶鏉ヨВ鍐抽棶棰橈紝璇ユ柟娉曞皝瑁呬簡(jiǎn)鍒ゆ柇瀹為檯鎯呭喌鐨勪唬鐮併傚鎴峰璞″彧闇瑕佽皟鐢ㄥ伐鍘傜被鎻愪緵鐨勬柟娉曪紝宸ュ巶綾昏嚜宸變細(xì)瀵瑰疄闄呮儏鍐佃繘琛屽垽鏂紝鐒跺悗鎶婂鎴峰璞¢渶瑕佺殑鏈嶅姟鎻愪緵鏂圭殑綾昏繑鍥炵粰瀹㈡埛銆?

]]>
javaScript鍜宼able鐢熸垚鍙姌鍙犵殑鑿滃崟http://www.aygfsteel.com/anakin7308/archive/2007/04/29/114450.htmldodo.lovemedodo.lovemeSat, 28 Apr 2007 16:22:00 GMThttp://www.aygfsteel.com/anakin7308/archive/2007/04/29/114450.htmlhttp://www.aygfsteel.com/anakin7308/comments/114450.htmlhttp://www.aygfsteel.com/anakin7308/archive/2007/04/29/114450.html#Feedback0http://www.aygfsteel.com/anakin7308/comments/commentRss/114450.htmlhttp://www.aygfsteel.com/anakin7308/services/trackbacks/114450.html

<table width="175" border="0" id="table1" cellspacing="2">
    
<thead>
        
<tr>
            
<th><acronym style="cursor: hand; " title="鍦ㄦ鍙互鏌ヨ鏈懆鍏蜂綋鐨勯噰璐竻鍗曢」鐩?>閲囪喘綆$悊</acronym></th>
        
</tr>
    
</thead>
    
<tbody>
        
<tr>
            
<td class="odd">錛?/span><href="http://localhost:8080/Hotel/purchaseExamine.jsp" target="main">閲囪喘浣滀笟</a></td>
        
</tr>
        
<tr>
            
<td>錛?/span><href="http://purchaseExamine.jsp" target="main">閲囪喘絳炬牳浣滀笟</a></td>
        
</tr>
        
<tr>
            
<td class="odd">錛嶉噰璐崟鎵撳嵃</td>
        
</tr>
        
<tr>
            
<td>錛嶉噰璐璁′竴瑙堣〃</td>
        
</tr>
    
</tbody>
</table>
<table width="175" border="0" id="table1">
    
<thead>
        
<tr>
            
<th><acronym style="cursor: hand; " title="鍦ㄦ鍙互鏌ヨ鏈懆鍏蜂綋鐨勯噰璐竻鍗曢」鐩?>閲囪喘綆$悊</acronym></th>
        
</tr>
    
</thead>
    
<tbody>
        
<tr>
            
<td class="odd">錛嶉噰璐綔涓?/span></td>
        
</tr>
        
<tr>
            
<td>錛嶉噰璐鏍鎬綔涓?/span></td>
        
</tr>
        
<tr>
            
<td class="odd">錛嶉噰璐崟鎵撳嵃</td>
        
</tr>
        
<tr>
            
<td>錛嶉噰璐璁′竴瑙堣〃</td>
        
</tr>
    
</tbody>
</table>
<table width="175" border="0" id="table1">
    
<thead>
        
<tr>
            
<th><acronym style="cursor: hand; " title="鍦ㄦ鍙互鏌ヨ鏈懆鍏蜂綋鐨勯噰璐竻鍗曢」鐩?>閲囪喘綆$悊</acronym></th>

        
</tr>
    
</thead>
    
<tbody>
        
<tr>
            
<td class="odd">錛嶉噰璐綔涓?/span></td>

        
</tr>
        
<tr>
            
<td>錛嶉噰璐鏍鎬綔涓?/span></td>

        
</tr>
        
<tr>
            
<td class="odd">錛嶉噰璐崟鎵撳嵃</td>

        
</tr>
        
<tr>
            
<td>錛嶉噰璐璁′竴瑙堣〃</td>

        
</tr>
    
</tbody>
</table>
<table width="175" border="0" id="table2">
    
<thead>
        
<tr>
            
<th><acronym style="cursor: hand; " title="鍦ㄦ鍙互鏌ヨ鏈懆鍏蜂綋鐨勯噰璐竻鍗曢」鐩?>閲囪喘綆$悊</acronym></th>

        
</tr>
    
</thead>
    
<tbody>
        
<tr>
            
<td class="odd">錛嶉噰璐綔涓?/span></td>

        
</tr>
        
<tr>
            
<td>錛嶉噰璐鏍鎬綔涓?/span></td>

        
</tr>
        
<tr>
            
<td>錛嶉噰璐崟鎵撳嵃</td>

        
</tr>
        
<tr>
            
<td>錛嶉噰璐璁′竴瑙堣〃</td>

        
</tr>
    
</tbody>
</table>


鎺ヤ笅鏉ユ槸javaScript浠g爜

 function collapse(){
       
   
       
var thead = document.getElementsByTagName("thead");
    
    
for(var i=0;i<thead.length;i++){
        
    
        thead[i].onclick
= function(){
            
var tbody = this.parentNode.getElementsByTagName("tbody");
//thead鐨勭埗鑺傜偣鏄痶able
            if(tbody[0].style.display =="")
            tbody[
0].style.display="none";            
            
else
            tbody[
0].style.display="";
        }

       }

    
var tbody = document.getElementsByTagName("tbody");
//鍒濆鍖栵紝璁╂墍鏈夌殑tbody閮藉叧闂?/span>
    for(var i=0;i<tbody.length;i++){
        
        
        tbody[i].style.display
="none";
    
    }

    }


window.onload 
= collapse;



]]>
主站蜘蛛池模板: 台北县| 河北省| 高阳县| 长子县| 射洪县| 淮北市| 辛集市| 邵武市| 大关县| 五家渠市| 通山县| 当阳市| 东乌珠穆沁旗| 老河口市| 博罗县| 茂名市| 平远县| 石台县| 巴青县| 钟山县| 襄垣县| 巴塘县| 沂南县| 涿鹿县| 宜州市| 花莲县| 武汉市| 景东| 崇义县| 西丰县| 万宁市| 亚东县| 洛浦县| 吉水县| 宁陵县| 玉林市| 建始县| 安仁县| 大冶市| 海口市| 浮梁县|