.net中xml用样式表输出格式

来源:互联网 发布:网络硬件防火墙 编辑:程序博客网 时间:2024/06/10 03:38
<?xml version="1.0"?>
<?xml:stylesheet href="books.css" type="text/css" ?>
<books>
<book>
  <title>Beginning ASP.NET 1.0 using C#</title>
   <ISBN>1-861007-34-5</ISBN>
   <authors>
      <author_name>Chris Ullman</author_name>
      <author_name>.Matt Butler </author_name>
      <author_name>John Kauffman</author_name>
      <author_name>Rob Birdwell</author_name>
      <author_name>Chris Goode</author_name>
      <author_name>Gary Johnson</author_name>
      <author_name>Srinavasa Sivakumar</author_name>
      <author_name>Juan Llibre</author_name>
      <author_name> Neil Raybould </author_name>
      <author_name> Chris Miller </author_name>
      <author_name> Dave Sussman </author_name>
   </authors>
   <description> ASP.NET is a powerful technology for dynamically creating web site content. Learn how to create exciting pages that are tailored to your audience. Enhance your web/intranet presence with powerful web applications.</description>
   <price US="$39.99"/>
</book>
</books>
title {
     display:block;
     font-family: Arial, Helvetica;
     font-weight: bold;
     font-size: 20pt;
     color: #9370db;
     text-align: center;
     }
ISBN {
     display:block;
     font-family: Arial, Helvetica;
     font-weight: bold;
     font-size: 12pt;
     color: #c71585;
     text-align: left;
     }
authors {
     display:inline;
     font-family: Arial, Helvetica;
     font-style: italic;
     font-size: 10pt;
     color: #9370db;
     text-align: left;
     }
description {
     display:block;
     font-family: Arial, Helvetica;
     font-size: 12pt;
     color: #ff1010;
     text-align: left;
     }
原创粉丝点击