<?xml version="1.0" encoding="GBK"?>
<title>
  <title-content>
    <title-info-year>2008</title-info-year>
    <title-info-month>2</title-info-month>
    <title-info-title>zhang piao</title-info-title>
  </title-content>
</title>应该很简单的,但我是新手,不太懂XSL

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【mj1958】截止到2008-06-26 13:48:27的历史汇总数据(不包括此帖):
    发帖数:0                  发帖分:0                  
    结贴数:0                  结贴分:0                  
    未结数:0                  未结分:0                  
    结贴率:-------------------结分率:-------------------
    如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
      

  2.   

    xml转成xsl???
    两者的功能都不一样啊
    xml用来存数据
    xsl用来表示显示格式......
    查点资料啊
      

  3.   


    就是让它显示出来,因为我对XSL语法不太明白,所以只要是能正常显示出来就好
      

  4.   

    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
    <html>
     <head>
     </head>
     <body>
     <xsl:apply-templates select="title/title-content"/>
     </body>
    </html></xsl:template><xsl:template match="title-content">
    <xsl:value-of select="title-info-year"/>
    <xsl:value-of select="title-info-month"/>
    <xsl:value-of select="title-info-title"/>
    </xsl:template></xsl:stylesheet>
    自己再插点html吧,好看点。
      

  5.   

    <?xml-stylesheet type="text/xsl" href="yourxsltfile.xsl"?>
    这句引用放到xml文件前边
      

  6.   

    </xsl:template> <xsl:template match="title-content"> 
    <xsl:value-of select="title-info-year"/> 
    <xsl:value-of select="title-info-month"/> 
    <xsl:value-of select="title-info-title"/> 
    </xsl:template>