2. CSS & XSLT XML bestanden vormgeven met CSS Je kan de data binnen XML bestanden doormiddel van CSSvormgeven. Dit kan door een extern CSS bestand te koppelen! <?xmlversion="1.0" encoding="utf-8"?> <?xml-stylesheethref="cat.css" type="text/css"?> <catalogus> <product>dvd <artiest>Pearl Jam</artiest> <titel>Live in Paris</titel> <prijs> 29,95 </prijs> </product> <product>cd <artiest>Kings of Leon</artiest> <titel>The best of.</titel> <prijs>14,95</prijs> </product> <product>dvd <artiest>Jan Smit</artiest> <titel>Live in Volendam</titel> <prijs> 29,95 </prijs> </catalogus> Koppeling met stylesheet css catalogus { font:"Courier New", Courier font-size:28px; position: fixed; left: 25%;} product, artiest, titel, prijs { display: table-row; color:#666; display:list-item; list-style:none; border-spacing: 0.5em;} artiest { color:#006;} titel { color:#990;} prijs { color:#600;}
16. CSS & XSLT <?xmlversion="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <catalogus> <product>dvd <artiest>Pearl Jam</artiest> <titel>Live in Paris</titel> <prijs> 29,95 </prijs> </product> <product>cd <artiest>Kings of Leon</artiest> <titel>The best of.</titel> <prijs>14,95</prijs> </product> <product>dvd <artiest>Jan Smit</artiest> <titel>Live in Volendam</titel> <prijs> 29,95 </prijs> </product> </catalogus>
17. Opdracht Opdracht 1. Maakvoor het xml tree bestandeen CSS stylesheet en koppeldezeaan het xml bestand Opdracht 2. Maakvoor het xml tree bestandeen XSLT stylesheet en koppeldezeaan het xml bestand. Upload de bestandennaar je eigenwebomgeving en stuur de link via Mail naarm.v.ginkel@rocleiden.nl