以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  [求助]很难理解的XML格式问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=18510)


--  作者:badguy_tj
--  发布时间:5/19/2005 10:28:00 AM

--  [求助]很难理解的XML格式问题
下面的这个xml文档中的format元素中的form、effective、output属性怎么理解?(用*标记的行)如form="ROUTE 0*" 、output="RT-$"是什么意思啊?高手能帮忙解决一下吗?
<address_format unit_seperators="," >
    <address_line>
      <place_name />
    </address_line>
    <address_line>
      <street_address>
        <house_number>
          <format form="0*" effective="0-1" output="$" />
        </house_number>
        <street_name>
          <prefix />
          <base_name />
          <suffix />
          <street_type />
          <special_format>
            <format form="I 0*" effective="2-3" output="I-$" />         **********
            <format form="US 0*" effective="3-4" output="US-$" />    ********
            <format form="ROUTE 0*" effective="6-7" output="RT-$" />  ********
            <format form="RT 0*" effective="3-4" output="RT-$" />        ********
            <format form="I-0*" effective="2-3" output="I-$" />             ********
            <format form="I0*" effective="1-2" output="I-$" />               *******
            <format form="US-0*" effective="3-4" output="US-$" />        ********
            <format form="US0*" effective="2-3" output="US-$" />          *******
            <format form="ROUTE-0*" effective="6-7" output="RT-$" />    *******
            <format form="RT-0*" effective="3-4" output="RT-$" /> ********
          </special_format>
        </street_name>
        <second_unit>
          <special_format>
            <format form="# 0*" effective="2-3" output="APT $" />
            <format form="#0*" effective="1-2" output="APT $" />
          </special_format>
        </second_unit>
      </street_address>
    </address_line>
    <address_line>
      <po_box>
        <format form="PO BOX 0*" effective="7-8" />
        <format form="P.O. BOX 0*" effective="9-10" />
        <format form="PO 0*" effective="3-4" />
        <format form="P.O. 0*" effective="5-6" />
        <format form="POBOX 0*" effective="6-7" />
      </po_box>
    </address_line>
    <address_line>
      <city optional="no" />
      <region optional="no" order="1" />
      <postal_code>
        <format form="00000" effective="0-4" />
        <format form="00000-0000" effective="0-4" addon_effective="6-9" />
      </postal_code>
    </address_line>
  </address_format>



[此贴子已经被作者于2005-5-20 16:10:54编辑过]

--  作者:badguy_tj
--  发布时间:5/19/2005 5:26:00 PM

--  
怎么没人回阿,自己顶一下
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms