title
XML Video Tutorial 2
description
Get the Code: http://goo.gl/MZFbk
In part 1 of my XML Video Tutorial, I covered the basics of creating an XML file in Eclipse. In this tutorial, I teach you how to use eXtensible Style Language (XSL).
I can't even briefly cover everything in this tutorial. Suffice to say, I show you how to do just about anything you'd ever want to do with XSL. At least I covered everything I could fit in a 15 minute video.
Follow Me on Twitter: @newthinktank
detail
{'title': 'XML Video Tutorial 2', 'heatmap': [{'end': 603.496, 'start': 579.467, 'weight': 0.957}], 'summary': "Tutorial 'xml video tutorial 2' covers xsl basics, document creation, and usage for xml data extraction and choose statements. it includes creating xsl file in eclipse, cycling through xml nodes, and applying different information using xsl if and choose statements.", 'chapters': [{'end': 181.571, 'segs': [{'end': 34.116, 'src': 'embed', 'start': 0.157, 'weight': 0, 'content': [{'end': 3.839, 'text': 'Well hello internet and welcome to part two of my XML video tutorial.', 'start': 0.157, 'duration': 3.682}, {'end': 7.501, 'text': 'This is where I left you off where we created our main XML file.', 'start': 3.879, 'duration': 3.622}, {'end': 8.801, 'text': "We're going to be adding more to that.", 'start': 7.541, 'duration': 1.26}, {'end': 16.065, 'text': "But in this part of the tutorial I'm going to cover extensible style language which I'm sure you guessed is used for styling XML.", 'start': 8.941, 'duration': 7.124}, {'end': 21.127, 'text': "So the very first thing we're going to need to do here is go into our directory and this is Eclipse.", 'start': 16.184, 'duration': 4.943}, {'end': 23.808, 'text': "And if you haven't seen part one of this tutorial definitely check it out.", 'start': 21.147, 'duration': 2.661}, {'end': 26.23, 'text': "And I'm just going to click on source just like I did before.", 'start': 23.988, 'duration': 2.242}, {'end': 26.77, 'text': 'Go to new.', 'start': 26.25, 'duration': 0.52}, {'end': 32.514, 'text': "I'm going to go other, and then this little wizard that pops up is going to help me get my XSL file.", 'start': 27.47, 'duration': 5.044}, {'end': 34.116, 'text': "If you can't see this, view it full screen.", 'start': 32.534, 'duration': 1.582}], 'summary': 'Xml tutorial on adding xsl for styling in eclipse.', 'duration': 33.959, 'max_score': 0.157, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg157.jpg'}, {'end': 99.383, 'src': 'embed', 'start': 71.927, 'weight': 3, 'content': [{'end': 75.069, 'text': "I'm going to get a lot more into templates later on in this tutorial.", 'start': 71.927, 'duration': 3.142}, {'end': 76.89, 'text': "Today I'm just going to briefly touch on it.", 'start': 75.229, 'duration': 1.661}, {'end': 77.65, 'text': 'But basically,', 'start': 77.07, 'duration': 0.58}, {'end': 87.376, 'text': 'what this is saying is that all of the rules that we define in this XSL document are going to match the entire document or the root node, which,', 'start': 77.65, 'duration': 9.726}, {'end': 89.598, 'text': 'in our situation, is going to be TV shows.', 'start': 87.376, 'duration': 2.222}, {'end': 95.321, 'text': "Now what I'm going to start to do here is just start going in here and defining everything that I want to show up inside of here.", 'start': 89.798, 'duration': 5.523}, {'end': 99.383, 'text': "I'll throw an HTML tag, a head tag inside the head area.", 'start': 95.521, 'duration': 3.862}], 'summary': 'Introduction to xsl templates for tv shows with html tag examples.', 'duration': 27.456, 'max_score': 71.927, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg71927.jpg'}, {'end': 164.559, 'src': 'embed', 'start': 108.668, 'weight': 2, 'content': [{'end': 111.309, 'text': "So you should go get it because it's very heavily commented.", 'start': 108.668, 'duration': 2.641}, {'end': 114.851, 'text': "Now I'm going to start using some XSL little rules that we have here.", 'start': 111.389, 'duration': 3.462}, {'end': 117.514, 'text': 'The first couple are not going to be all that exciting.', 'start': 115.291, 'duration': 2.223}, {'end': 121.017, 'text': "As you can see, I'm doing this right inside the body section, which I'm creating here.", 'start': 117.754, 'duration': 3.263}, {'end': 124.701, 'text': "First, I'm going to say, okay, I want to output the version for this guy.", 'start': 121.157, 'duration': 3.544}, {'end': 126.643, 'text': "So I'm just going to type in XSO.", 'start': 124.761, 'duration': 1.882}, {'end': 131.727, 'text': "And then this is important, value of, we're going to be using this constantly in this tutorial.", 'start': 126.783, 'duration': 4.944}, {'end': 135.528, 'text': "And then I'm going to say what exact value I want to pull in.", 'start': 131.787, 'duration': 3.741}, {'end': 140.71, 'text': "And this is going to return, just like I said before, the XSLT version that I'm using here.", 'start': 135.628, 'duration': 5.082}, {'end': 143.591, 'text': "And as you can see up here, we know exactly what it's going to print out.", 'start': 140.81, 'duration': 2.781}, {'end': 150.273, 'text': "I'm going to put property XSL version and then close that off and then end it with a break statement.", 'start': 143.731, 'duration': 6.542}, {'end': 155.234, 'text': "Then I'm actually going to copy this because the next thing that I print out isn't going to be that much different.", 'start': 150.413, 'duration': 4.821}, {'end': 158.955, 'text': "And don't worry, we're going to get into a lot of more cool usable things.", 'start': 155.334, 'duration': 3.621}, {'end': 164.559, 'text': "Let's say that I want to print out the vendor, which, in this situation, is going to be libxml2,,", 'start': 159.275, 'duration': 5.284}], 'summary': 'Demonstration of using xsl little rules to output version and vendor information.', 'duration': 55.891, 'max_score': 108.668, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg108668.jpg'}], 'start': 0.157, 'title': 'Xsl basics and document creation', 'summary': 'Covers the basics of xsl for styling xml, including steps for creating an xsl file in eclipse, and creating an xsl document with version, encoding type, and output method. it also explains xsl template match and usage of xsl rules for outputting xslt version and vendor information, with libxml2 as the specific vendor.', 'chapters': [{'end': 34.116, 'start': 0.157, 'title': 'Xml tutorial part 2: xsl basics', 'summary': 'Covers the basics of xsl for styling xml, including steps for creating an xsl file in eclipse, building on the previous tutorial.', 'duration': 33.959, 'highlights': ['Creating an XSL file in Eclipse by going to source, clicking on new, and selecting XSL from the wizard.', 'Introduction to XSL as a styling language for XML.', 'Continuation from part one of the tutorial series.']}, {'end': 108.628, 'start': 34.136, 'title': 'Xsl document basics', 'summary': 'Covers the basics of creating an xsl document, including defining the version, encoding type, and output method, as well as explaining the xsl template match and its application to the entire document or root node.', 'duration': 74.492, 'highlights': ['The XSL document includes version number, encoding type, and output method, with the method set to HTML, providing a brief explanation of their functions.', 'The XSL template match is explained as defining rules that apply to the entire document or root node, specifically in the context of TV shows.']}, {'end': 181.571, 'start': 108.668, 'title': 'Xslt version and vendor information', 'summary': "Covers the usage of xsl rules for outputting xslt version and vendor information, emphasizing the constant usage of 'value of' and the simplicity of the process, with libxml2 as the specific vendor.", 'duration': 72.903, 'highlights': ["The chapter emphasizes the constant usage of 'value of' for outputting XSLT version and vendor information.", 'It mentions the simplicity of the process for outputting XSLT version and vendor information.', 'The specific vendor mentioned is libxml2.']}], 'duration': 181.414, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg157.jpg', 'highlights': ['Introduction to XSL as a styling language for XML.', 'Creating an XSL file in Eclipse by going to source, clicking on new, and selecting XSL from the wizard.', 'The XSL document includes version number, encoding type, and output method, with the method set to HTML, providing a brief explanation of their functions.', 'The XSL template match is explained as defining rules that apply to the entire document or root node, specifically in the context of TV shows.', "The chapter emphasizes the constant usage of 'value of' for outputting XSLT version and vendor information.", 'The specific vendor mentioned is libxml2.', 'Continuation from part one of the tutorial series.']}, {'end': 654.061, 'segs': [{'end': 209.222, 'src': 'embed', 'start': 181.671, 'weight': 0, 'content': [{'end': 186.194, 'text': "So that's how to pull some specific information in regards to what XSL file you're using.", 'start': 181.671, 'duration': 4.523}, {'end': 190.618, 'text': "Now we're going to get into some more interesting things that you're going to use on an ongoing basis.", 'start': 186.417, 'duration': 4.201}, {'end': 196.54, 'text': "Let's say I want to cycle through all of the nodes that are currently on the screen and then print out certain information,", 'start': 190.918, 'duration': 5.622}, {'end': 201.441, 'text': 'or all the information that is contained inside of those XML nodes or elements, whatever you want to call them.', 'start': 196.54, 'duration': 4.901}, {'end': 203.522, 'text': "Well, I'm just going to type in XSL.", 'start': 201.601, 'duration': 1.921}, {'end': 209.222, 'text': "for each, and then you're going to go select, remember, like i said, you're going to want to remember this tool here,", 'start': 204.181, 'duration': 5.041}], 'summary': 'Learn how to extract specific information using xsl file and cycle through xml nodes using xsl for each.', 'duration': 27.551, 'max_score': 181.671, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg181671.jpg'}, {'end': 241.175, 'src': 'embed', 'start': 215.683, 'weight': 1, 'content': [{'end': 222.245, 'text': "and if we bounce over to our xml file, you can see just that tv show, there's the root element, and then this is the information i want to pull in.", 'start': 215.683, 'duration': 6.562}, {'end': 228.406, 'text': 'so i want to pull in all the information that is contained between each of these show opening tags and closing tags,', 'start': 222.245, 'duration': 6.161}, {'end': 232.807, 'text': "and it's going to act just like a for loop, if you are used to using for loops and other computer programming languages,", 'start': 228.406, 'duration': 4.401}, {'end': 234.508, 'text': "And then I'm going to close that guy off.", 'start': 232.967, 'duration': 1.541}, {'end': 236.23, 'text': "And I'm going to start pulling in some information.", 'start': 234.669, 'duration': 1.561}, {'end': 241.175, 'text': 'Now one thing that would be kind of useful is if I would have a series of links across the top of the page.', 'start': 236.35, 'duration': 4.825}], 'summary': 'Demonstrating xml data extraction using for loop and series of links.', 'duration': 25.492, 'max_score': 215.683, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg215683.jpg'}, {'end': 304.983, 'src': 'embed', 'start': 267.392, 'weight': 2, 'content': [{'end': 269.213, 'text': 'Put that in there and then close that off.', 'start': 267.392, 'duration': 1.821}, {'end': 272.514, 'text': "And that's going to create the beginnings of this link format.", 'start': 269.273, 'duration': 3.241}, {'end': 276.567, 'text': 'So now what I want to do is get the value for name.', 'start': 272.722, 'duration': 3.845}, {'end': 278.729, 'text': 'Or I want to get the TV show name.', 'start': 276.907, 'duration': 1.822}, {'end': 284.215, 'text': 'How do I do that? Again, XSL, colon, and then I say value dash of.', 'start': 278.789, 'duration': 5.426}, {'end': 286.098, 'text': "And then I'm going to type in again, select.", 'start': 284.236, 'duration': 1.862}, {'end': 289.181, 'text': 'What do I want the value of? I want the value of name.', 'start': 286.418, 'duration': 2.763}, {'end': 290.603, 'text': "And then I'm going to close that guy off.", 'start': 289.301, 'duration': 1.302}, {'end': 291.449, 'text': 'And there you go.', 'start': 290.868, 'duration': 0.581}, {'end': 298.997, 'text': 'I just created a series of links for all the different types of information that is contained in our XML file and printed them out to screen.', 'start': 291.509, 'duration': 7.488}, {'end': 301.099, 'text': "This guy right here, that's what this code is going to do.", 'start': 299.117, 'duration': 1.982}, {'end': 304.983, 'text': 'Going to cycle through all those different elements and then output a link.', 'start': 301.199, 'duration': 3.784}], 'summary': 'Creating links for different types of information in xml file and printing them out to screen.', 'duration': 37.591, 'max_score': 267.392, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg267392.jpg'}, {'end': 372.303, 'src': 'embed', 'start': 342.979, 'weight': 3, 'content': [{'end': 345.942, 'text': 'You can sort it based off of any element that you have inside of there.', 'start': 342.979, 'duration': 2.963}, {'end': 350.287, 'text': "I'm going to say that my order, I'm going to type out ascending, but ascending is the default.", 'start': 346.183, 'duration': 4.104}, {'end': 352.869, 'text': 'Of course, descending is the only other option.', 'start': 350.447, 'duration': 2.422}, {'end': 356.151, 'text': 'And then I have to decide how do I want to sort this information.', 'start': 353.069, 'duration': 3.082}, {'end': 361.315, 'text': "Well, I'm going to tell it that since it's a name, I want to sort it based off of it being text.", 'start': 356.231, 'duration': 5.084}, {'end': 362.316, 'text': 'And there you go.', 'start': 361.695, 'duration': 0.621}, {'end': 365.898, 'text': 'I could also, of course, put in number, and that is the only other option.', 'start': 362.536, 'duration': 3.362}, {'end': 372.303, 'text': "So that is going to start printing out all this information, and it's going to sort it based off of the name in ascending order.", 'start': 366.058, 'duration': 6.245}], 'summary': 'Sorting information based on name in ascending order or descending order, with options for text or number sorting.', 'duration': 29.324, 'max_score': 342.979, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg342979.jpg'}, {'end': 540.36, 'src': 'embed', 'start': 510.515, 'weight': 5, 'content': [{'end': 511.817, 'text': 'Throw another break statement in there.', 'start': 510.515, 'duration': 1.302}, {'end': 518.052, 'text': "Now, what I'm going to do is I'm going to take all of these different elements that you see here, like the name of the show, the release date,", 'start': 512.13, 'duration': 5.922}, {'end': 522.234, 'text': "the end date, the network, the number of viewers and all that, and I'm going to write a sentence.", 'start': 518.052, 'duration': 4.182}, {'end': 525.675, 'text': "I'm going to create a paragraph tag here, and I'm just going to start typing.", 'start': 522.573, 'duration': 3.102}, {'end': 528.676, 'text': "And I'm going to say the show, and just save myself some time.", 'start': 525.755, 'duration': 2.921}, {'end': 530.516, 'text': 'I bounce up here and grab this guy.', 'start': 528.816, 'duration': 1.7}, {'end': 535.838, 'text': "And I can throw this in here, and it's going to automatically take the show's name and shoot it right into our document.", 'start': 530.857, 'duration': 4.981}, {'end': 538.759, 'text': 'Continue with was released in.', 'start': 535.938, 'duration': 2.821}, {'end': 540.36, 'text': 'Throw a paste in there again.', 'start': 538.979, 'duration': 1.381}], 'summary': 'Using programming, a sentence is automatically generated from tv show details.', 'duration': 29.845, 'max_score': 510.515, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg510515.jpg'}, {'end': 607.397, 'src': 'heatmap', 'start': 579.467, 'weight': 0.957, 'content': [{'end': 581.988, 'text': "And then I'm going to let this for each block end just like that.", 'start': 579.467, 'duration': 2.521}, {'end': 584.069, 'text': "Let's file save it and see how this works.", 'start': 582.148, 'duration': 1.921}, {'end': 587.27, 'text': "I'm going to go over to TV shows, which is right here.", 'start': 584.329, 'duration': 2.941}, {'end': 588.03, 'text': 'Click on that.', 'start': 587.49, 'duration': 0.54}, {'end': 589.191, 'text': "I'm going to go open with.", 'start': 588.17, 'duration': 1.021}, {'end': 594.573, 'text': "Other And with the little wizard that opens up, I'm going to scroll way to the bottom and click on Web Browser.", 'start': 589.591, 'duration': 4.982}, {'end': 597.274, 'text': 'And there you can see, there is all the shows showing up.', 'start': 594.713, 'duration': 2.561}, {'end': 599.574, 'text': 'Here is the links to all the different parts.', 'start': 597.454, 'duration': 2.12}, {'end': 603.496, 'text': 'If I click on them, it jumps to those specific names, as you can see right there.', 'start': 599.654, 'duration': 3.842}, {'end': 607.397, 'text': 'And there is the version number, the vendor number, and all that other different information.', 'start': 603.636, 'duration': 3.761}], 'summary': 'Demonstrating how to access tv shows with a web browser, showing all the links and specific names with version and vendor numbers.', 'duration': 27.93, 'max_score': 579.467, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg579467.jpg'}, {'end': 644.478, 'src': 'embed', 'start': 617.281, 'weight': 6, 'content': [{'end': 622.766, 'text': "And let's say that we want to output all of our information into a table, which is, again, another thing that's commonly done.", 'start': 617.281, 'duration': 5.485}, {'end': 623.727, 'text': "I'm going to go table.", 'start': 622.866, 'duration': 0.861}, {'end': 626.849, 'text': "And just to be simple, I'm just going to create a border for it.", 'start': 624.007, 'duration': 2.842}, {'end': 627.63, 'text': 'Close that off.', 'start': 626.93, 'duration': 0.7}, {'end': 630.693, 'text': "And then I'm going to go tr from a table row.", 'start': 627.99, 'duration': 2.703}, {'end': 633.555, 'text': "And then I'm just going to type in th, my header.", 'start': 631.073, 'duration': 2.482}, {'end': 635.537, 'text': "And I'm going to say name, th.", 'start': 633.595, 'duration': 1.942}, {'end': 637.559, 'text': 'And then the other thing is network.', 'start': 635.737, 'duration': 1.822}, {'end': 641.716, 'text': "th, and then I'm going to say viewers, and that's all I'm going to do for now.", 'start': 638.055, 'duration': 3.661}, {'end': 644.478, 'text': 'So, now that I have that part of the table set up,', 'start': 641.877, 'duration': 2.601}], 'summary': 'Creating a simple table with headers for name, network, and viewers.', 'duration': 27.197, 'max_score': 617.281, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg617281.jpg'}], 'start': 181.671, 'title': 'Using xsl for xml data extraction', 'summary': 'Explains using xsl to cycle through xml nodes and extract specific information, enabling users to pull all the information contained within certain elements, and covers creating links, sorting, outputting data, generating image links, writing sentences from xml data, and outputting data into a table.', 'chapters': [{'end': 232.807, 'start': 181.671, 'title': 'Using xsl to extract information', 'summary': 'Explains how to use xsl to cycle through xml nodes and extract specific information, enabling users to pull all the information contained within certain elements, for ongoing use.', 'duration': 51.136, 'highlights': ['Using XSL to cycle through all XML nodes and extract information for ongoing use, providing a versatile tool for printing out specific information (e.g., from tv show and show elements) from the root element.', 'Demonstrating the use of XSL for pulling all information contained between specific show opening and closing tags, functioning similarly to a for loop in other programming languages.']}, {'end': 654.061, 'start': 232.967, 'title': 'Xsl tutorial: creating links and outputting information', 'summary': 'Covers creating links to specific information in an xml document, sorting and outputting data, generating image links, writing sentences from xml data, and outputting data into a table.', 'duration': 421.094, 'highlights': ['Creating links to specific information in an XML document The tutorial demonstrates creating unique links for different types of information contained in an XML file, allowing users to zoom down into the document to specific information.', 'Sorting and outputting data The tutorial explains how to sort the results of a for each search based on any element and output the sorted information, such as sorting based on the name and outputting in ascending order.', 'Generating image links The tutorial shows how to create image links for each TV show, pulling the attribute value for the poster element in the XML file to create a new image using XSL attribute and XSL value of select functions.', 'Writing sentences from XML data The tutorial demonstrates creating sentences by extracting values from the XML document and inserting them into a paragraph tag, such as creating a sentence about a TV show including its name, release date, network, viewership, and cancellation date.', 'Outputting data into a table The tutorial explains the process of outputting information into a table, including creating table rows and headers for elements like name, network, and viewers.']}], 'duration': 472.39, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg181671.jpg', 'highlights': ['Using XSL to cycle through all XML nodes and extract information for ongoing use, providing a versatile tool for printing out specific information (e.g., from tv show and show elements) from the root element.', 'Demonstrating the use of XSL for pulling all information contained between specific show opening and closing tags, functioning similarly to a for loop in other programming languages.', 'Creating links to specific information in an XML document The tutorial demonstrates creating unique links for different types of information contained in an XML file, allowing users to zoom down into the document to specific information.', 'Sorting and outputting data The tutorial explains how to sort the results of a for each search based on any element and output the sorted information, such as sorting based on the name and outputting in ascending order.', 'Generating image links The tutorial shows how to create image links for each TV show, pulling the attribute value for the poster element in the XML file to create a new image using XSL attribute and XSL value of select functions.', 'Writing sentences from XML data The tutorial demonstrates creating sentences by extracting values from the XML document and inserting them into a paragraph tag, such as creating a sentence about a TV show including its name, release date, network, viewership, and cancellation date.', 'Outputting data into a table The tutorial explains the process of outputting information into a table, including creating table rows and headers for elements like name, network, and viewers.']}, {'end': 907.391, 'segs': [{'end': 693.003, 'src': 'embed', 'start': 654.061, 'weight': 1, 'content': [{'end': 658.563, 'text': "and I'm also going to show you how to apply different information using an if statement.", 'start': 654.061, 'duration': 4.502}, {'end': 666.976, 'text': "So let's say that I want to go and test and only show things in our table based off of whether their release date was prior to 2006.", 'start': 658.843, 'duration': 8.133}, {'end': 672.955, 'text': "How do I do that? XSL? If? And then I'm going to type in test, which you're going to type in every time.", 'start': 666.976, 'duration': 5.979}, {'end': 674.536, 'text': "And then I'm going to say release.", 'start': 673.155, 'duration': 1.381}, {'end': 680.278, 'text': "And remember previously I talked about character entities and different things that you're not able to type in.", 'start': 674.876, 'duration': 5.402}, {'end': 682.239, 'text': 'Well, less than is one of them.', 'start': 680.418, 'duration': 1.821}, {'end': 685.86, 'text': "So I'm going to type in and LT and semicolon.", 'start': 682.339, 'duration': 3.521}, {'end': 688.521, 'text': 'That is going to represent the less than column.', 'start': 685.98, 'duration': 2.541}, {'end': 691.463, 'text': "And then I'm going to type in 2006, which is what I want to test for.", 'start': 688.561, 'duration': 2.902}, {'end': 693.003, 'text': 'And then I want to close that part off.', 'start': 691.683, 'duration': 1.32}], 'summary': 'Using if statement to filter data based on release date prior to 2006 in xsl', 'duration': 38.942, 'max_score': 654.061, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg654061.jpg'}, {'end': 759.065, 'src': 'embed', 'start': 730.703, 'weight': 0, 'content': [{'end': 735.265, 'text': 'And choose is often used whenever you want to cover multiple different conditions.', 'start': 730.703, 'duration': 4.562}, {'end': 739.086, 'text': "So with this, I'm going to go in here, XSL, choose.", 'start': 735.545, 'duration': 3.541}, {'end': 744.331, 'text': "And then I'm going to define all the different conditions in which I want to have certain things occur.", 'start': 739.506, 'duration': 4.825}, {'end': 752.338, 'text': "So I'm going to type in XSL when this is the condition test is equal to release is greater than.", 'start': 744.451, 'duration': 7.887}, {'end': 759.065, 'text': 'Greater than, unlike with less than in this situation, you do not need to put its special little character code.', 'start': 752.478, 'duration': 6.587}], 'summary': 'Xsl choose is used for multiple conditions. conditions include test equals release is greater than.', 'duration': 28.362, 'max_score': 730.703, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg730703.jpg'}, {'end': 794.763, 'src': 'embed', 'start': 769.851, 'weight': 5, 'content': [{'end': 775.434, 'text': "And then I'm basically going to do exactly what I do here, create another table row and a whole bunch of columns.", 'start': 769.851, 'duration': 5.583}, {'end': 777.495, 'text': 'So just paste that inside of there.', 'start': 775.954, 'duration': 1.541}, {'end': 784.419, 'text': "Except in this situation, just to show that I got something different on here, I'm going to say background color is equal to yellow.", 'start': 777.815, 'duration': 6.604}, {'end': 785.219, 'text': "So that's all.", 'start': 784.719, 'duration': 0.5}, {'end': 789.021, 'text': "In this situation, we're going to have the background color be yellow for this one thing.", 'start': 785.479, 'duration': 3.542}, {'end': 792.621, 'text': "And then let's say that I want to create another condition.", 'start': 789.298, 'duration': 3.323}, {'end': 794.763, 'text': "So I'm just going to copy this in this situation.", 'start': 792.641, 'duration': 2.122}], 'summary': 'Creating a table with multiple columns and setting background color to yellow for specific conditions.', 'duration': 24.912, 'max_score': 769.851, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg769851.jpg'}, {'end': 834.831, 'src': 'embed', 'start': 808.551, 'weight': 4, 'content': [{'end': 814.038, 'text': 'And then the last thing you can do with a choose conditional is to define a default.', 'start': 808.551, 'duration': 5.487}, {'end': 816.14, 'text': "Now this isn't going to apply.", 'start': 814.318, 'duration': 1.822}, {'end': 817.442, 'text': "I'm going to type in otherwise.", 'start': 816.16, 'duration': 1.282}, {'end': 818.723, 'text': 'That is the guy right there.', 'start': 817.502, 'duration': 1.221}, {'end': 820.906, 'text': 'This is the only other thing you can do with this.', 'start': 818.863, 'duration': 2.043}, {'end': 829.409, 'text': 'This is the default action that is going to occur for anything that was not affected by this test right here or this test right here.', 'start': 821.366, 'duration': 8.043}, {'end': 834.831, 'text': "And it's not going to affect what was done up here with this if because that is outside of the choose area.", 'start': 829.609, 'duration': 5.222}], 'summary': 'Choose conditional allows defining a default action for unmet conditions.', 'duration': 26.28, 'max_score': 808.551, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg808551.jpg'}, {'end': 900.985, 'src': 'embed', 'start': 877.055, 'weight': 6, 'content': [{'end': 883.136, 'text': "And remember I said there's going to be a duplicate, which in this situation in this Freaks and Geeks television show was the duplication.", 'start': 877.055, 'duration': 6.081}, {'end': 886.978, 'text': 'And you can see how all the different colors changed and the table shows up.', 'start': 883.297, 'duration': 3.681}, {'end': 893.138, 'text': "And just so you remember, This is how you're able to bounce through all the different elements inside of our XML page.", 'start': 887.378, 'duration': 5.76}, {'end': 898.363, 'text': 'And yes, indeed, we are using an XML page here, not the XSL.', 'start': 893.398, 'duration': 4.965}, {'end': 900.985, 'text': 'The XSL file just acts as a style sheet.', 'start': 898.483, 'duration': 2.502}], 'summary': 'Discussion on duplications in the freaks and geeks tv show and navigating xml elements.', 'duration': 23.93, 'max_score': 877.055, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg877055.jpg'}], 'start': 654.061, 'title': 'Using xsl and choose statements in xml', 'summary': "Discusses applying different information using xsl if and choose statements, including testing and displaying data based on release date, using character entities like lt, and the usage of choose statement for covering multiple conditions. it also explains the usage of choose conditional in xml to apply different background colors based on conditions, including using 'otherwise' as the default action, and demonstrates creating a table with different colors and a duplicate entry.", 'chapters': [{'end': 769.591, 'start': 654.061, 'title': 'Xsl if and choose statements', 'summary': 'Discusses how to apply different information using xsl if and choose statements, including testing and displaying data based on release date, using character entities like lt, and the usage of choose statement for covering multiple conditions.', 'duration': 115.53, 'highlights': ['The chapter explains how to use if statements in XSL to test and display data based on conditions, such as displaying items in a table based on their release date.', "It also covers the use of character entities like 'LT' to represent the less than symbol in XSL, providing a workaround for typing certain characters.", "Additionally, it introduces the 'choose' statement for covering multiple conditions, demonstrating how to define different conditions and their corresponding actions, such as printing items with a release date greater than a specific year."]}, {'end': 907.391, 'start': 769.851, 'title': 'Using choose conditional in xml', 'summary': "Explains the usage of choose conditional in xml to apply different background colors based on conditions, including using 'otherwise' as the default action, and demonstrates creating a table with different colors and a duplicate entry.", 'duration': 137.54, 'highlights': ['The chapter explains the usage of choose conditional in XML to apply different background colors based on conditions.', "It includes using 'otherwise' as the default action.", 'Demonstrates creating a table with different colors and a duplicate entry.', 'It shows how all the different colors changed in the table.']}], 'duration': 253.33, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pno0FqFUhtg/pics/pno0FqFUhtg654061.jpg', 'highlights': ['The chapter explains the usage of choose conditional in XML to apply different background colors based on conditions.', 'The chapter explains how to use if statements in XSL to test and display data based on conditions, such as displaying items in a table based on their release date.', "It also covers the use of character entities like 'LT' to represent the less than symbol in XSL, providing a workaround for typing certain characters.", "Additionally, it introduces the 'choose' statement for covering multiple conditions, demonstrating how to define different conditions and their corresponding actions, such as printing items with a release date greater than a specific year.", "It includes using 'otherwise' as the default action.", 'Demonstrates creating a table with different colors and a duplicate entry.', 'It shows how all the different colors changed in the table.']}], 'highlights': ['Creating an XSL file in Eclipse by going to source, clicking on new, and selecting XSL from the wizard.', 'Using XSL to cycle through all XML nodes and extract information for ongoing use, providing a versatile tool for printing out specific information (e.g., from tv show and show elements) from the root element.', 'The chapter explains the usage of choose conditional in XML to apply different background colors based on conditions.', 'The XSL document includes version number, encoding type, and output method, with the method set to HTML, providing a brief explanation of their functions.', 'The chapter explains how to use if statements in XSL to test and display data based on conditions, such as displaying items in a table based on their release date.']}