<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    嘟嘟

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      26 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks

    Namespaces are a way to associate a group of elements with each other.
     
     <wire:order xmlns:wire="   <wire:store>
         <wire:shirt xmlns:wire="http:/www.wire-man.com/ns/shirts">                 <!-->覆蓋realname,不能覆蓋localname<-->
           <wire:color>purple</wire:color>
         </wire:shirt>
       </wire:store>
     </wire:order>

    多個(gè)namespaces
     <wire:order xmlns:wire="
       <wire:store>
         <wire:shirt xmlns:stitch="http:/www.wire-man.com/ns/stitch">               <!-->2個(gè)<-->
            <wire:color>
               <stitch:shade>lavender</stitch:shade>
            </wire:color>
         </wire:shirt>
       </wire:store>
     </wire:order>

    Namespaces and attributes
     元素前面加prefix,參數(shù)前面不用加

    Namespaces and DTDs
     DTD不支持Namespaces,只是當(dāng)作一個(gè)attribute.
     <?xml version="1.0" encoding="UTF-8"?>
     <!DOCTYPE  wire:order [
     <!ELEMENT wire:order (wire:store)>                                            <!-->元素前加上prefix<-->
     <!ATTLIST wire:order xmlns CDATA #FIXED "
     <!ELEMENT wire:store (#PCDATA)>
     ]>

     <wire:order xmlns=" <wire:store>Stitch Store</wire:store>
     </wire:order>

    Namespaces are not technically part of the XML 1.0 spec, thus,namespaces have nothing to do with the validity of an XML document.

    Namespace and XML Schema
      <!-->XML  FILE<-->
      <?xml version="1.0" encoding="UTF-8" ?>
      <pants:order
         xmlns:xsi="
         xsi:noNamespaceSchemaLocation="namespace2.xsd"
         xmlns:pants="
            <store>30 paisley capri</store>                                        <!-->這個(gè)元素不在namespaces中<-->
      </pants:order>

      <!-->XML Schema FILE namespace2.xsd<-->
      <?xml version="1.0" encoding="UTF-8" ?>
      <xsd:schema                                                                  <!-->定義一個(gè)namespace所有內(nèi)容都飽含再一個(gè)xsd:schema元素內(nèi)<-->
     xmlns:xsd="
     targetNamespace=" xmlns:wire="  
     <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" />
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
      </xsd:schema>
     
      ××上面例子中注意xmlns:pants,targetNamespace, xmlns:wire是使用一樣得URI值。

      Assign the namespaces to all elements is elementFormDefault="qualified"
        ...
        <xsd:schema                                                                 
     xmlns:xsd="
     targetNamespace=" xmlns:wire="        elementFormDefault="qualified"> 
        ...
     
      Assign the namespaces to the individule element
        ...
        <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" form="qualified"/>  <!-->***<-->
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       ...

      Exclude an element from the namespace
        ...
        <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" form="unqualified"/>  <!-->***<-->
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       ...

    主站蜘蛛池模板: 四虎一区二区成人免费影院网址 | 亚洲视频人成在线播放| rh男男车车的车车免费网站| 亚洲成a人片77777kkkk| 波多野结衣中文字幕免费视频| 亚洲欧美在线x视频| 亚洲av中文无码乱人伦在线咪咕| 久久受www免费人成_看片中文| 色老头综合免费视频| 91亚洲自偷手机在线观看| 国产免费观看青青草原网站| 久久精品免费电影| 亚洲爆乳大丰满无码专区| 亚洲色精品aⅴ一区区三区| 韩国免费一级成人毛片| 精选影视免费在线 | 中日韩亚洲人成无码网站| 精品亚洲永久免费精品| 国产一级淫片视频免费看| 97av免费视频| 一本岛v免费不卡一二三区| 亚洲国产视频久久| 亚洲AV永久无码区成人网站 | 亚洲免费电影网站| 国产AV无码专区亚洲AWWW | 亚洲va在线va天堂va四虎| 国产乱子伦精品免费女| 99久久久国产精品免费牛牛| caoporn国产精品免费| 伊人久久五月丁香综合中文亚洲 | 国产va免费观看| 中文字幕精品三区无码亚洲 | 99免费精品视频| 极品美女一级毛片免费| 国产成人精品日本亚洲18图| 亚洲AV日韩AV永久无码绿巨人| 老司机亚洲精品影视www| 成人免费a级毛片| 日韩在线免费视频| 最近免费中文字幕大全高清大全1| 中文字幕视频免费在线观看|