XML data packet sort

xiaoxiao2021-03-06  110

1, group, sorted XSL

scootney Publishing: Special EXHIBIT </ TITLE> <style> h1 {font-family: arial, helvetica, univers, sans-serif; font-size : 18pt; font-weight: bold; background-color: teal; width: 75%} H2 {font-family: arial, helvetica, univers, sans-serif; font-size: 14pt; font-weight: bold; background- Color: White; Width: 75%} h3 {font-family: arial, helvetica, univers, sans-serif; font-size: 12pt; font-weight: bold; background-color: gold; width: 75%; border- Width: 1; border-style: solid} </ style> </ head> <body> <h1> scootney public s s s it m m m m m m m m m m m m m m /> <Xsl: app LY-TEMPLATES SELECT = "Catalog" mode = "GRP_AUTHOR" /> </ body> </ html> </ xsl: template></p> <p><XSL: Template Match = "Catalog" Mode = "GRP_CATEG"> <H2> Titles Grouped by Genre </ h2> <xsl: for-each select = "book [count (. | KEY ('categ_key', genre) [ 1]) = 1]> <h3> <xsl: value-of select = "genre" /> </ h3> <xsl: for-each select = ""> <xsl: Sort select = "title" /> <Table Border = "0" width = "75%"> <tr> <TH width = "10%" align = "right"> title </ th> <td width = "90 % "Align =" Left "> <xsl: value-of select =" title "/> </ td> </ tr> <tr> <th width =" 10% "Align =" Right "> Author </ th > <Td width = "90%" align = "left"> <xsl: value-of select = "author" /> <TD> </ tr> <Tr> <TH width = "10%" align = " Right "> Copyright </ th> <TD width =" 90% "align =" left "> <xsl: value-of select =" publish_date "/> </ td> </ tr> <tr> <TH width = "10%" align = "Right"> Price </ th> <Td width = "90%" align = "left"> <xsl: value-of select = "price" /> </ td> </ tr> <tr> <tr width = "</p> <p>10% "Align =" Right "Valign =" TOP "> Summary </ TH> <td width =" 90% "align =" left "Valign =" TOP "> <xsl: value-of select =" description "/ > </ td> </ tr> </ table> <hr width = "75%" align = "left" /> </ xsl: for-each> </ xsl: for-each> </ xsl: template></p> <p><XSL: Template Match = "Catalog" Mode = "GRP_AUTHOR"> <H2> Titles Grouped by Author </ h2> <xsl: for-each select = "book [generate-id () = generate-id (key (' Author_key ', author) [1])]> <xsl: sort select = "author" /> <h3> <xsl: value-of select = "author" /> </ h3> <xsl: for-each select = "Key ('author_key', author)> <xsl: sort select =" title "/> <table border =" 0 "width =" 75% "> <tr> <tr>" 10% "align = "Right"> Title </ TH> <TD width = "90%" align = "left"> <xsl: value-of select = "title" /> </ td> </ tr> <tr> <TH Width = "10%" align = "right"> genre </ th> <td width = "90%" align = "left"> <xsl: value-of select = "genre" /> </ td> </ tr > <Tr> <th width = "10%" Align = "Right"> Copyright </ th> <td width = "90%" align = "left"> <xsl: value-of select = "public_date" /> </ td> </ tr> <tr> <th width = "10%" align = "right"> price </ th> <td width = "90%" align = "left"> <xsl: value-of select = "price" /> </ td> <</p> <p>/ TR> <TR> <TH width = "10%" align = "right" valign = "top"> summary </ th> <td width = "90%" align = "left" valign = "TOP"> < XSL: Value-of select = "description" /> </ td> </ tr> </ table> <hr width = "75%" align = "left" /> </ xsl: for-each> </ xsl : for-each> </ xsl: template></p> <p></ xsl: stylesheet> 2, XML data <? XML version = "1.0"?> <catalog> <book id = "bk101"> <author> Gambardella, matthew </ author> <title> XML Developer's Guide </ title > <Genre> Computer </ genre> <price> 44.95 </ price> <publish_date> 2000-10-01 <dess> an in-depth look at create application with xml. </ Description> </ book > <Book id = "bk102"> <author> rals, kim </ author> <title> midnight rain </ title> <genre> fantasy </ genre> <price> 5.95 </ price> <publish_date> 2000-12 -16 </ publish_date> <description> A former architect battles corporate zombies, an evil sorceress, and her own childhood to become queen of the world. </ description> </ book> <book id = "bk103"> <author> Corets, EVA </ author> <title> Maeve Ascendant </ title> <genre> fantasy </ genre> <price> 5.95 </ price> <public_date> 2000-11-17 </ public the collapse of a nanotechnology society in england, the young sur Vivors Lay the Foundation for a New Society. </ description> </ book> <book id = "bk104"> <author> corets, eva </ author> <title> Oberon's legacy </ title> <genre> fantasy </ GENRE> <price> 5.95 </ price> <public_date> 2001-03-10 </ public_date> <description></p> <p>In post-apocalypse England, the mysterious agent known only as Oberon helps to create a new life for the inhabitants of London. Sequel to Maeve Ascendant. </ Description> </ book> <book id = "bk105"> <author> Corets , EVA </ author> <title> The sundered grail </ title> <genre> fantasy </ genre> <price> 5.95 </ price> <publish_date> 2001-09-10 </ public_date> <description> The Two Daughters Of Maeve, Half-Sisters, Battle One Another for Control of England. Sequel To Oberon's Legacy. </ description> </ book> <book id = "bk106"> <author> randall, cynthia </ author> <title> LOVER BIRDS </ Title> <genre> Romance </ genre> <price> 4.95 </ price> <public_date> 2000-09-02 <DATE> 2000-09-02 <DATE_DATE> <Description> When Carla Meets Paul At Annithology Conference, Tempers Fly As Feathers Get Ruffled. </ description> </ book> <book id = "bk107"> <author> thurman, paula </ author> <title> splish splash </ title> <genre> Romance </ genre> <price> 4.95 </ price> <publish_date> 2000-11-02 </ public_date> <description> a Deep Sea Diver Finds True Love Twenty Thousand Leagues Beneath the Sea. </ description> </ book> <book id = " BK108> <author> knorr, stefan </ author> <title> creepy crawlies </ title> <genre> Horror </ genre> <price> 4.95 </ price> <public_date> 2000-12-06 <</p> <p>/ Publish_Date> <Description> An ANTHOLOGY OF HORROR Stories About Roaches, Centipedes, Scorpions and Other INSECTS. </ Description> </ book> <book id = "bk109"> <author> kress, peter </ author> <title> Paradox Lost </ title> <genre> Science Fiction </ genre> <price> 6.95 </ price> <publish_date> 2000-11-02 </ publish_date> <description> After an inadvertant trip through a Heisenberg Uncertainty Device, James Salway Discovers The Problems of Being Quantum. </ description> </ book> <book id = "bk110"> <author> O'Brien, Tim </ author> <title> Microsoft .NET: The Programming Bible </ title> < genre> Computer </ genre> <price> 36.95 </ price> <publish_date> 2000-12-09 </ publish_date> <description> Microsoft's .NET initiative is explored in detail in this deep programmer's reference. </ description> </ Book> <book id = "bk111"> <author> O'Brien, Tim </ author> <title> msxml3: a comprehensive guide </ title> <genre> computer </ genre> <Price> 36.95 </ price> <publish_date> 2000-12-01 </ publish_date> <description> The Microsoft MSXML3 parser is covered in detail, with attention to XML DOM interfaces, XSLT processing, SAX and more. </ Description> </ book> <book id = "bk112"> <author> galos, mike </ author> <title> Visual Studio 7: a Comprehensive Guide </ title> <genre></p> <p>Computer </ genre> <price> 49.95 <publish_date> 2001-04-16 <DATE> 2001-04-16 </ Publish_Date> <Description> Microsoft Visual Studio 7 is Explored in Depth, Looking At How Visual Basic, Visual C , C #, And ASP are integrated into a comprehensive development environment </ description> </ book> </ catalog> 3, form <DIV ID = "idContent"> Please Wait while loading view ... </ DIV> onload:. oXml = new ActiveXObject ( "Microsoft.xmldom") oxml.async = falseoxml.load ("/ xxx.nsf / x? Readform"); oxsl = new activomXObject ("Microsoft.xmLDom") oxsl.async = falseoxsl.load ("/ xxx.nsf / y? readform ");</p> <p>Strret = oxml.TransformNode (OxSL) Document.all ("iDContent"). InnerHtml = Strret;</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-97363.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="97363" 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.047</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 = 'uyv_2FmxefRkll8G7u3IJKp4RAx_2BCCNLfGSFXPxN_2BDC3299SmoiooLSNSkTLOdqKKygaE4a20TglQcQWW716_2BRIQ_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>