以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  一个关于repeat的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=5389)


--  作者:阿星[aXing]
--  发布时间:2/17/2004 3:33:00 PM

--  一个关于repeat的问题
为何,控件的内容不能显示出来?
源代码如下:
<?xml version="1.0" encoding="GB2312"?>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"            
xmlns:ev="http://www.w3.org/2001/xml-events">

 <object width="0" height="0" id="FormsPlayer" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
 <b>FormsPlayer has failed to load! Please check your installation.</b>
 </object>
 <?import namespace="xforms" implementation="#FormsPlayer"?>
 
<head>
<title>abc</title>
  <xforms:model>
          <xforms:submission action="http://www.example.com/orderform.php" method="post"/>
             <xforms:instance xmlns="">
             <order username="" password="">
               <soaps>
                        <item>  
                             <qty>3</qty>  
                             <flavor>FS</flavor>  
                             <unitprice>4.50</unitprice>  
                             <totalprice>13.50</totalprice>  
                         </item>  
                         <item>  
                             <qty>1</qty>  
                             <flavor>P</flavor>  
                             <unitprice>2.50</unitprice>  
                            <totalprice>2.50</totalprice>  
      </item>
               </soaps>
            </order>
         </xforms:instance>
      </xforms:model>
</head>


<body>       
       
<h1>Soaps</h1>

<xforms:input type="int" incremental="true">
<xforms:hint>不解,不解,不解</xforms:hint>
<xforms:label>这做何解?</xforms:label>
</xforms:input>

<xforms:repeat nodeset="order/soaps/item">  
<p>
      <xforms:input ref="qty">
        <xforms:label>Qty: </xforms:label>
      </xforms:input>
       
      <xforms:select1 ref="flavor" appearance="minimal">  
        <xforms:label>Flavor</xforms:label>  
        <xforms:item>  
          <xforms:label>Plain</xforms:label>  
          <xforms:value>P</xforms:value>  
        </xforms:item>  
        <xforms:item>  
          <xforms:label>Four Sage</xforms:label>  
          <xforms:value>FS</xforms:value>  
        </xforms:item>  
        <xforms:item>  
          <xforms:label>Sweet Grass</xforms:label>  
          <xforms:value>SG</xforms:value>  
        </xforms:item>  
      </xforms:select1>  
       
      <xforms:input ref="unitprice">
        <xforms:label>Unit price: </xforms:label>
      </xforms:input>
       
      <xforms:input ref="totalprice">
        <xforms:label>Total: </xforms:label>
      </xforms:input>
</p>
</xforms:repeat>  
       
<h1>Belt Design</h1>  

</body>

</html>


--  作者:阿星[aXing]
--  发布时间:2/17/2004 3:35:00 PM

--  
我在中间插了个input很正常,但是下面的dd都显示不出来,救命啊
--  作者:阿星[aXing]
--  发布时间:2/17/2004 5:06:00 PM

--  
UP
--  作者:小鞋子
--  发布时间:2/17/2004 5:12:00 PM

--  
你要顯示html的形式嗎?
--  作者:小鞋子
--  发布时间:2/17/2004 5:28:00 PM

--  
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/css"?>
<books xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"            
xmlns:ev="http://www.w3.org/2001/xml-events">
   <book>
<object width="0" height="0" id="FormsPlayer" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
<b>FormsPlayer has failed to load! Please check your installation.</b>
</object>
<?import namespace="xforms" implementation="#FormsPlayer"?>
<HTML:TABLE border="1.0" align="center">
   <HTML:TR>
       <HTML:TD>LIST</HTML:TD>
      <HTML:TD>ASP PROGRAMING</HTML:TD>
      <HTML:TD>TSINGHUA UNIVERSITY</HTML:TD>
   </HTML:TR>
</HTML:TABLE>
<head>
<title>abc</title>
<xforms:model>
          <xforms:submission action="http://www.example.com/orderform.php" method="post"/>
             <xforms:instance xmlns="">
             <order username="" password="">
               <soaps>
                        <item>  
                       <qty>3</qty>  
                       <flavor>FS</flavor>  
                       <unitprice>4.50</unitprice>  
                       <totalprice>13.50</totalprice>  
                   </item>  
                   <item>  
                       <qty>1</qty>  
                       <flavor>P</flavor>  
                       <unitprice>2.50</unitprice>  
                      <totalprice>2.50</totalprice>  
</item>
               </soaps>
            </order>
         </xforms:instance>
      </xforms:model>
</head>


<body>       
       
<h1>Soaps</h1>

<xforms:input type="int" incremental="true">
<xforms:hint>不解,不解,不解</xforms:hint>
<xforms:label>这做何解?</xforms:label>
</xforms:input>

<xforms:repeat nodeset="order/soaps/item">  
<p>
      <xforms:input ref="qty">
        <xforms:label>Qty: </xforms:label>
      </xforms:input>
       
      <xforms:select1 ref="flavor" appearance="minimal">  
        <xforms:label>Flavor</xforms:label>  
        <xforms:item>  
          <xforms:label>Plain</xforms:label>  
          <xforms:value>P</xforms:value>  
        </xforms:item>  
        <xforms:item>  
          <xforms:label>Four Sage</xforms:label>  
          <xforms:value>FS</xforms:value>  
        </xforms:item>  
        <xforms:item>  
          <xforms:label>Sweet Grass</xforms:label>  
          <xforms:value>SG</xforms:value>  
        </xforms:item>  
      </xforms:select1>  
       
      <xforms:input ref="unitprice">
        <xforms:label>Unit price: </xforms:label>
      </xforms:input>
       
      <xforms:input ref="totalprice">
        <xforms:label>Total: </xforms:label>
      </xforms:input>
</p>
</xforms:repeat>  
       
<h1>Belt Design</h1>  

</body>
   </book>
</books>


我也不知道這樣對不對。亂做的。還得等別人


--  作者:阿星[aXing]
--  发布时间:2/17/2004 5:39:00 PM

--  
好像不行啊,我放在frontpage里面,显示效果不对
--  作者:阿星[aXing]
--  发布时间:2/17/2004 5:40:00 PM

--  

显示的效果是:


此主题相关图片如下:
按此在新窗口浏览图片


--  作者:小鞋子
--  发布时间:2/17/2004 5:49:00 PM

--  
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/css"?>
<books xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional">
   <book>
   <HTML:TABLE border="0" align="center">
   <HTML:TR>
      <HTML:TD>NAME</HTML:TD>
      <HTML:TD><HTML:INPUT TYPE="TEXT"/></HTML:TD>
   </HTML:TR>
   <HTML:TR>
    <HTML:TD>NAME</HTML:TD>
    <HTML:TD><HTML:INPUT TYPE="TEXT"/></HTML:TD>
   </HTML:TR>
<HTML:TR>
      <HTML:TD>NAME</HTML:TD>
      <HTML:TD><HTML:INPUT TYPE="TEXT"/></HTML:TD>
</HTML:TR>
</HTML:TABLE>
<HTML:CENTER>
<HTML:INPUT TYPE="SUBMIT"/><HTML:INPUT TYPE="RESET"/>
</HTML:CENTER>
   </book>
</books>
顯示控件嗎??是不是這樣?
--  作者:阿星[aXing]
--  发布时间:2/18/2004 9:53:00 AM

--  
不是
--  作者:aside
--  发布时间:2/18/2004 10:41:00 AM

--  
斑竹真热心啊!

--  作者:小鞋子
--  发布时间:2/19/2004 9:10:00 AM

--  
偶只是初学者:(
--  作者:阿星[aXing]
--  发布时间:2/19/2004 9:57:00 AM

--  
以下是引用小鞋子在2004-2-19 9:10:40的发言:
偶只是初学者:(


me,too.本来嘛,都是互相促进,互相学习的


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