jason's profileColeFang留言板PhotosBlogLists Tools Help

Blog


    5/23/2007

    XML/XSLT/XSL-FO

          可扩展样式表语言(xsl)由w3c提出。
          xsl 为一种格式化语言,用於xml文檔的格式化或者表示過程。(定義如何顯示數據)
          xslt 為一種轉換語言,提供了一套規則,把xml數據轉換為另一種xml文檔、html文檔或其它文本格式。可移植的文檔格式(典型的:PDF)。
          xpath 為識別和尋址xml數據提供正規的語法。儘管xpath是獨立于xslt的語言,但xslt對xpath卻有核心的依賴,xslt置標規則建立在xpath結構基礎上。
           xsl-fo定義因該如何顯示數據。xslt用於將xml文檔轉換為使用xsl-fo格式化的新詞匯,xsl-fo格式化模型比css更爲複雜。例如:xsl-fo支持頁邊註解、交叉引用頁碼和注腳,功能上看起來對web作用不是很大,但如將一個大型文檔(或一本書)放到web上 用相同的xml數據通過不同的轉換和格式化文檔進行打印,作用就會體現出來了!
          xslt通常用來將xml文檔轉換為html,目的是可以在網絡瀏覽器中進行顯示。html比xml具有更好的向後兼容性,在xml中描述和存儲數據,在html中顯示數據。也就是說不論你是用哪個瀏覽器,所看到的内容是相同的。
         
                                         
     
        

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Sept. 8
    Picture of Anonymous
    Sept. 10

    Trackbacks

    The trackback URL for this entry is:
    http://fangyuntao.spaces.live.com/blog/cns!CA96F1669BA87CB1!271.trak
    Weblogs that reference this entry
    • None