Object Oriented Design with Cascade Server - PowerPoint PPT Presentation

lana
object oriented design with cascade server n.
Skip this Video
Loading SlideShow in 5 Seconds..
Object Oriented Design with Cascade Server PowerPoint Presentation
Download Presentation
Object Oriented Design with Cascade Server

play fullscreen
1 / 28
Download Presentation
Object Oriented Design with Cascade Server
98 Views
Download Presentation

Object Oriented Design with Cascade Server

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Object Oriented Design with Cascade Server University of Missouri

  2. <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <meta content="University of Missouri, MU, Mizzou" name="keywords"/> <title>University of Missouri</title> <link href="styles.css" media="all" rel="stylesheet" type="text/css"/> <link href="styles-print.css" media="print" rel="stylesheet" type="text/css"/> </head>

  3. <!– #START-CODE<?php //php script rotator //declare some var arrays for photo, desc and link //generate random number and seed vars Echo=“<a href=“linkarr[seed]”><img src=“photoarr[seed] alt=“descarr[seed]/> ?> #END-CODE 

  4. Pretty Page

  5. Header Stuff

  6. Header Site Nav Stuff

  7. Header Site Nav Page Content Footer

  8. Masthead Search

  9. Masthead Search Audience Nav PrimaryNav

  10. Masthead Search Audience Nav Feature Rotator PrimaryNav Impact Rotator

  11. Masthead Search Audience Nav Feature Rotator PrimaryNav Homepage Links Impact Rotator Weather

  12. Masthead Search Audience Nav Feature Rotator PrimaryNav News Feed Calendar Feed Homepage Links Impact Rotator Weather

  13. Masthead Search Audience Nav Feature Rotator PrimaryNav News Feed Calendar Feed Homepage Links Impact Rotator Weather Colophon Last Updated

  14. Colophon Last Updated

  15. <xsl:value-of select="date-converter:convertDateAP(number(last-published-on))"/> Colophon Last Updated

  16. <!-- Xalan component for date conversion from CMS date format to RSS 2.0 pubDate format --> <!-- Date format variations: var retString = temp[0] + ', ' + temp[2] + ' ' + temp[1] + ' ' + temp[3] + ' ' + temp[4] + ' ' + timezone; --> <xalan:component functions="convertDate" prefix="date-converter"> <xalan:script lang="javascript"> function convertDate(date) { var d = new Date(date); // Splits date into components var temp = d.toString().split(' '); // timezone difference to GMT var timezone = temp[5].substring(3); // RSS 2.0 valid pubDate format var retString = temp[1] + ' ' + temp[2] + ', ' + temp[3]; return retString; } </xalan:script> </xalan:component>

  17. <!-- DATE CONVERTER --> <xalan:component functions="convertDateAP convertDateAtom" prefix="date-converter"> <xalan:script lang="javascript"> function convertDateAP(date) { var d = new Date(date); // Splits date into components var temp = d.toString().split(' '); // Changes temp[1] into A.P. Style if (temp[1] == "Jan") { month = "Jan."; } … else { month = "Dec."; } // Changes temp[2] to A.P. Style var day = Number(temp[2]); if (day &lt; 10) { day = parseInt(day); } // Build A.P. Date var retString = month + ' ' + day + ', ' + temp[3]; // A.P. Style output return retString; } // End A.P. Output // Atom Date Converter function convertDateAtom(date) { var d = new Date(date); // Splits date into components var temp = d.toString().split(' '); if (temp[1] == "Jan") { month = "01"; … } // Atom 1.0 valid date format var retString = temp[3] + '-' + month + '-' + temp[2] + 'T' + temp[4] + '-06:00'; // Atom Date Output return retString; } // End Atom Date Output </xalan:script> </xalan:component>

  18. <xsl:template name="widont-title"> <xsl:param name="temp"/> <xsl:param name="text"/> <xsl:choose> <xsl:when test="contains($text, ' ')"> <xsl:variable name="before" select="concat($temp,' ',substring-before($text,' '))"/> <xsl:variable name="after" select="substring-after($text, ' ')"/> <xsl:choose> <xsl:when test="contains($after, ' ')"> <xsl:call-template name="widont-title"> <xsl:with-param name="temp" select="$before"/> <xsl:with-param name="text" select="$after"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($before, '&#160;', $after)"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:template>

  19. What about the Headlines?

  20. What about the Headlines? //Identify escape char

  21. What about the Headlines? //Identify escape char //Tokenize the string

  22. What about the Headlines? //Identify escape char //Tokenize the string //Rebuild the string

  23. What about the Headlines? //Identify escape char //Tokenize the string //Rebuild the string //Display the string

  24. Q’s? grahamcn@missouri.edu (573)882 8843