An example of an XML + XSL made by others (worth getting a presenter collection)

xiaoxiao2021-03-06  40

I made XML XSL sample results: all records output into a table; record according to the "publication time" descending order, and then arrange the pricing ascending order when the publication time is the same; if it is a professional class, use blue word display; When a record is recorded, the information is displayed. This example effect presentation: http://www.fm916.net/LLY365/bookList.xml

The code is as follows: 1. BookList.xml Management Tutorial </ Title> <Author> Zhou Jianlin </ Author> <Press> Shanghai Finance Press </ Publishing House> <Pricing> 28 </ Pricing> <Publication Time> 2003 </ Publication Time> <Professional Lesson> No </ Professional Course> <Introduction> Management as a standardized professional course, only 50 years of history. Since the reform and opening up, management has also introduced management. This textbook focuses on the challenges that managers may face in the new century, the evolution of classical management, the development of modern management theory, organizational environment and organizational culture, the settings, strategic management, effective decisions, and organizational work. Basic, organizational change, human resource management, management and leadership, incentive, communication, control, innovation, management of new centuries. </ Introduction> </ Book> <Book> <Title> Computer Network Engineering </ Title> <Author> Tan Haoqiang, Shi Xiuzhen </ Author> <Press> China Railway Publishing House </ Publishing House> <pricing> 27 </ Pricing> <Publication Time> 2003 </ Publication Time> <Property> No </ Professional Course> <Introduction> This book details the basic knowledge of computer network, network transmission application, and network operations such as NetWare, Windows2000 Server, Linux. The system's installation, network parameters sets, Internet, Internet services, network integration applications, and network security. </ Introduction> </ Book> <Book> <Title> Public Relations Tutorial </ Title> <Author> Cheptian </ Author> <Press> Economics Science Press </ Publishing House> <pricing> 21 </ Pricing> <Publication Time> 2002 </ Publication Time> <Professional Lesson> No </ Professional Course> <Introduction> This textbook describes the research objects and content, public relations functions and principles of public relations, and the three elements of public relations. Public relationship work procedures, organizational image analysis and image design, public relations processing, public relations publicity, public judgment and international public relations, special public relations activities, public relations crisis processing, public language and etiquette and public communication and self-sales and other content.</p> <p></ Introduction> </ Book> <Book> <Title> Microcomputer Band and Maintenance Tutorial </ Title> <Author> Shi Xiuzhen, Wang Fengling, Fujia Lock </ Author> <Press> Electronic Industry Press </ Publishing House > <Pricing> 21 </ pricing> <Publication Time> 2003 </ Published Time> <Professional Lesson> No </ Profile> <Introduction> This book is shallow to deep, comprehensively introduces the maintenance and software installation of computer hardware and software. Related knowledge of debugging; in detail, the structure, work principle, model, purchase, hardware assembly, CMOS setting, network connection, common fault, etc. of various components of the latest microcomputer </ Introduction> </ Book> <Book> <Title> Auditing Tutorial </ Total> <Author> Jiang Wu, Liu Lihua </ Author> <Press> Economics Science Press </ Publishing House> <pricing> 21.5 </ Pricing> <Publication Time> 2001 </ Published Time> <Professional Lesson> Yes </ Professional Course> <Introduction> <The content of the auditing tutorial> is mainly subject to private (social) audit, taking into account the government audit and internal audit; Enterprise financial audit is main, taking into account other various types (industries) audits; subject to audit practice, expounding the basic theory, basic knowledge, basic methods and skills of auditing. In addition to applicable to accounting profession, it is also possible to use other professional and non-financial professional elective textbooks, which can also be used for professional cadres such as finance, finance. </ Introduction> </ Book> <Book> <Title> Reading and Application Writing </ Title> <Author> Huang Meiling </ Author <Press> Knowledge Publishing House </ Publishing House> <Pricing> 23.8 </ Pricing> <Publication Time> 2003 </ Publication Time> No </ Professional Course> <Introduction> This book will read and combine the writing and application style, and force literature appreciation and application writing, and human education and Writing ability is in Chinese teaching. </ Introduction> </ Book> <Book> <Title> Tax Law </ Total> <Author> Ministry of Finance Certified Public Accountant Examination Committee Office </ Author> <Press> Economics Press </ Press> <pricing > 31 </ pricing> <Publication Time> 2003 </ Published Time> <Professional Lesson> Yes </ Professional Course> <Introduction> Since the implementation of the National Unified Examination System in 1991, my country has successfully held 8 exams. In order to cooperate with the 2003 National Certified Public Accountant National Unified Examination, better experts and professionals in the Office of Candidates, the Ministry of Finance, and the National Unified Examination of the 2003 Appreciation CPA in accordance with the Ministry of Certified Public Accountants. Outline> The scope of the exam is written, and this textbook is written. At the same time, there is also a designated textbook for the <Accounting>, <Auditing>, <Financial Management> and <Economic Law>.</p> <p></ About> </ book> <book> <book name> Financial and finance </ book name> <>> Wang Guo </ author> <Press> Central University for Nationalities </ Publishing House> <pricing> 19.8 </ Pricing> <Publication Time> 2000 </ Published Time> <Property> Yes </ Professional Lesson> <Introduction> This textbook includes financial and financial content, focusing on the basic knowledge, basic principles of financial and financial disciplines. Basic theory. The finance part mainly expounds the financial concept, financial functions, financial expenditures, fiscal revenue, national budget, financial system, etc .; financial part mainly elaborated financial concepts, credit, interest rates, monetary supply and demand, financial system, financial market, international finance, etc. It also expounds the financial and monetary policy. </ About> </ book> <book> <book name> New University English </ book name> <author> Zhejiang University </ author> <Press> Foreign language teaching and research publication </ publishing House> <pricing > 45.9 </ pricing> <Publication Time> 2001 </ Published Time> <Professional Lesson> Yes </ Professional Course> <Introduction> <New University English> is a textbook prepared according to the "student-centric teaching mode", 1 to 6. There are 12 units, each unit is prepared by Preparation, Listening-Center Activities, Reading-centered Activities and Consolidation and Improvement (Further) Developments consists of four parts. And with a loose page. </ Introduction> </ Book> </ Textbook></p> <p>Second, BOOKLIST.XSL <? XML Version = "1.0" encoding = "gb2312"?> <Xsl: stylesheet xmlns: xsl = "http://www.w3.org/tr/wd-xsl> <XSL: Template Match = "/"> <html> <head> <title> List of textbooks </ title> <style> <! [cdata [body, td, th {font-size: 9pt; font-family: MS shell DLG , Tahoma, Sans-Serif, Song;}]]> </ style> </ head> <body style = "font-size: 9pt"> <Table Border = "2"> <TR> <TH> Title < / TH> <TH> Publishing agency </ tH> <TH> Pricing </ TH> <TH> Published </ TH> <TH> Professional Class </ TH> <TH> / Th> </ tr> <xsl: for-each select = "textbook / book" Order-by = "- Number (publication time); Number> <tr> <xsl: attribute name =" style " > Color: <xsl: if test = "professional class [. $ IEQ $ 'is']"> Blue </ xsl: if> </ xsl: attribute> <xsl: attribute name = "title"> <xsl: value-of select = "book name" /> <xsl: choose> <xsl: when test = "professional lesson [. = 'No'] "> Not </ xsl: by> <xsl: OtherWise> Yes </ xsl: OtherWise> <</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-71357.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="71357" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.050</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'uaC0b1pnz7jyzVivWackzxBbtZ40I2nqtLjEJsUh7qd9O5tM37KzRw974Mq0Gewi5x_2BbTpAa3iuIQLN7FUmTYw_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>