当前在线人数16609
首页 - 分类讨论区 - 电脑网络 - WWW明日之星版 - 同主题阅读文章

此篇文章共收到打赏
0

  • 10
  • 20
  • 50
  • 100
您目前伪币余额:0
未名交友
[更多]
[更多]
初级xml问题,谢谢~!!!
[版面:WWW明日之星][首篇作者:yebaihe] , 2007年03月11日00:42:51 ,2583次阅读,0次回复
来APP回复,赚取更多伪币 关注本站公众号:
[分页:1 ]
yebaihe
进入未名形象秀
我的博客
[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 1 ]

发信人: yebaihe (野百合), 信区: XML
标  题: 初级xml问题,谢谢~!!!
发信站: BBS 未名空间站 (Sun Mar 11 00:42:51 2007)

刚刚开始学xml,这段code结合我的css倒是可以显示,但是通过不了validation

哪位大侠能帮我改改下面的code让它通过validation, 跪谢
http://www.xmlvalidation.com/


<?xml version="1.0"?>
<?xml-stylesheet href="dm1liyaai2.css" type="text/css"?>
<!DOCTYPE catalog [
   <!--Last changed 02/15/07 -->

   <!-- This describes one of Faye Wong's music cassette. The elements
include title, note, year,publisher,ASIN,label,
songlist and favortite-->
   <!ELEMENT catalog (title,note*,year,publisher*,ASIN,label,songlist,
favortite?)>
   <!-- The title of the cassette. Two attributes (type and version) and one
required default.-->
   <!ELEMENT title (#PCDATA)>
         <!ATTLIST title
                           type (CD|cassette|other) "cassette"
                           version CDATA "Remix"
                           id ID #REQUIRED

                   >
  
   <!-- The note of the cassette. PCDATA type.It has mixed content.-->
   <!ELEMENT note (#PCDATA | highlight)*>
   <!ELEMENT highlight (#PCDATA) >

   <!-- The year of the cassette. PCDATA type.-->
   <!ELEMENT year (#PCDATA) >

   <!-- The publisher of the cassette. PCDATA type.It has mixed content.-->
   <!ELEMENT publisher (#PCDATA|address|phone)* >
 
   <!-- The ASIN of the cassette. PCDATA type.-->
   <!ELEMENT ASIN (#PCDATA) >

   <!-- The label of the cassette. PCDATA type.-->
   <!ELEMENT label (#PCDATA) >

   <!-- The songlist of the cassette.-->
   <!ELEMENT songlist ((heading, song+)+) >
   <!ELEMENT heading (#PCDATA) >
   <!ELEMENT song (#PCDATA) >
   <!ATTLIST song 
                    time CDATA #REQUIRED
                    Chinese (Y|N) #IMPLIED
                                    >
   <!-- It has an empty content.-->
   <!ELEMENT favorite EMPTY >

   <!-- It is a general entity.-->
   <!ENTITY library "My library collection" >
]>


<catalog>

     <title>Faye Wong's Music--I'm willing</title>
     <note>Faye's classical album, remixed version </note>

     <year>Year: November 21, 1995</year>
     <publisher>EMI  Inc.<address>1290 Avenue of the Americas, 42nd Fl.
New York, NY 10104. </address> <phone>212-492-1200</phone></publisher>
     <ASIN>ASIN: D002350XEI </ASIN>
     <label>Label: Reprise / Wea </label>
     <songlist>
     <heading>Side: A</heading>
        <song time="3:24" chinese="N">Restless</song>
        <song time="2:56" chinese="Y">Wild Child</song>
        <song time="3:17" chinese="Y">Faye</song>
        <song time="3:03" chinese="N">Mystery</song>
        <song time="3:34" chinese="N">Sky </song>;
        
     <heading> Side: B</heading>
         <song time="3:05" chinese="N">I'm Willing</song>
         <song time="3:21" chinese="N">Pure Love</song>
         <song time="2:49" chinese="N">Exit</song>
     <song time="2:55" chinese="N">Dream Person</song>
         <song time="3:47" chinese="N">Cold War</song>
          
          
  
     </songlist>
     <favorite/>  

</catalog>

--

※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 74.139.]

 
[分页:1 ]
[快速返回] [ 进入WWW明日之星讨论区] [返回顶部]
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996