cvs: presentations /slides/xmlandphp data.rss dtdvalidation.xml evaluate_dom.xml rss.xsl thankyou.xml thefuture.xml transform.php xpath.php xpath.xml
xslt.xml xslt1.xml xslt2.xml

From: Date: Thu, 24 Apr 2003 04:34:59 +0000
Subject: cvs: presentations /slides/xmlandphp data.rss dtdvalidation.xml evaluate_dom.xml rss.xsl thankyou.xml thefuture.xml transform.php xpath.php xpath.xml
xslt.xml xslt1.xml xslt2.xml
Groups: php.pres 
Request: Send a blank email to pres+get-645@lists.php.net to get a copy of this message
sterling Thu Apr 24 00:34:59 2003 EDT Added files: /presentations/slides/xmlandphp data.rss dtdvalidation.xml rss.xsl thefuture.xml transform.php xpath.php xpath.xml xslt.xml xslt1.xml xslt2.xml Modified files: /presentations/slides/xmlandphp evaluate_dom.xml thankyou.xml Log: add extra presentation files Index: presentations/slides/xmlandphp/evaluate_dom.xml diff -u presentations/slides/xmlandphp/evaluate_dom.xml:1.1 presentations/slides/xmlandphp/evaluate_dom.xml:1.2 --- presentations/slides/xmlandphp/evaluate_dom.xml:1.1 Sun Apr 20 20:16:30 2003 +++ presentations/slides/xmlandphp/evaluate_dom.xml Thu Apr 24 00:34:59 2003 @@ -3,6 +3,8 @@ <list title="Pros"> <bullet>Introspectable Structure</bullet> <bullet>Standard Encapsulation</bullet> +<bullet>Parser Optimizations/Result Caching Available</bullet> +<bullet>You Can Query Documents with Xpath</bullet> </list> <list title="Cons"> <bullet>Must Fully Visualize Document</bullet> Index: presentations/slides/xmlandphp/thankyou.xml diff -u presentations/slides/xmlandphp/thankyou.xml:1.1 presentations/slides/xmlandphp/thankyou.xml:1.2 --- presentations/slides/xmlandphp/thankyou.xml:1.1 Sun Apr 20 20:16:30 2003 +++ presentations/slides/xmlandphp/thankyou.xml Thu Apr 24 00:34:59 2003 @@ -2,6 +2,7 @@ <title>Thank You</title> <blurb><![CDATA[<br /><br />]]></blurb> -<link fontsize="4.2em" leader="These Slides, " href="http://talks.php.net/" /> -<link fontsize="4.2em" leader="My Email, " href="mailto:sterling@php.net" text="sterling@php.net" /> +<link leader="Simple XML API, " href="http://news.php.net/article.php?group=php.xml.dev&amp;article=6" /> +<link leader="These Slides, " href="http://talks.php.net/" /> +<link leader="My Email, " href="mailto:sterling@php.net" text="sterling@php.net" /> </slide> Index: presentations/slides/xmlandphp/data.rss +++ presentations/slides/xmlandphp/data.rss <?xml version="1.0" encoding="utf-8" ?> <rss version="2.0/XSS-extensible"> <channel> <title>Sterling's Weblog</title> <link>http://www.edwardbear.org/blog/</link> <description>Sterling Hughes' Weblog</description> <item> <title>Pedanticweb.com</title> <link>http://www.edwardbear.org/blog/pedanticweb.html</link> <description> I now own the domain name pedanticweb.com, meaning you can reach me by emailing sterling@pedanticweb.com. </description> </item> </channel> </rss> Index: presentations/slides/xmlandphp/dtdvalidation.xml +++ presentations/slides/xmlandphp/dtdvalidation.xml <slide title="DTD Validation"> <blurb> %LibXML% supports DTD validation, during parsing, and post parsing. </blurb> <example title="Parse &amp; Validate"> <![CDATA[<?php $d = xmldocfile( 'validate.xml', DOMXML_LOAD_VALIDATING, $errors ); if (!$d) { echo "<pre>"; var_dump($errors); echo "</pre>"; } ?>]]> </example> <example title="Parse Then Validate"> <![CDATA[<?php $d = xmldocfile('validate.xml'); if (!$d->validate($errors)) { echo "<pre>"; var_dump($errors); echo "</pre>"; } ?>]]> </example> </slide> Index: presentations/slides/xmlandphp/rss.xsl +++ presentations/slides/xmlandphp/rss.xsl <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/rss/channel"> <html> <head> <title><xsl:value-of select="title"/></title> </head> <body bgcolor="#ffffff"> <xsl:call-template name="items"/> </body> </html> </xsl:template> <xsl:template name="items"> <xsl:for-each select="item"> <a href="{link}"><xsl:value-of select="title"/></a><br/> <xsl:value-of select="description" /><br/> </xsl:for-each> </xsl:template> </xsl:stylesheet> Index: presentations/slides/xmlandphp/thefuture.xml +++ presentations/slides/xmlandphp/thefuture.xml <slide> <title>The Future of XML and PHP</title> <list title="PHP5"> <bullet>LibXML default library</bullet> <bullet>DOM 2 Compliance</bullet> <bullet>SAX 2, XPath, XInclude, Schema compliance</bullet> </list> <list title="Next Month"> <bullet>Simple API for XML (See Links)</bullet> <bullet>Bundle LibXML as the default</bullet> <bullet>Integrate cURL support</bullet> <bullet>Provide an API for PHP extensions</bullet> </list> </slide> Index: presentations/slides/xmlandphp/transform.php +++ presentations/slides/xmlandphp/transform.php <?php $x = xslt_create(); $res = xslt_process($x, 'data.rss', 'rss.xsl'); if (!$res) { echo xslt_error($x); } echo $res; xslt_free($x); ?> Index: presentations/slides/xmlandphp/xpath.php +++ presentations/slides/xmlandphp/xpath.php <?php $doc = xmldocfile('data.rss'); $ctx = $doc->xpath_new_context(); $node = $ctx->xpath_eval( '/rss/channel/item/title/text()' ); echo 'Title: '; echo $node->nodeset[0]->content; echo "\n"; ?> Index: presentations/slides/xmlandphp/xpath.xml +++ presentations/slides/xmlandphp/xpath.xml <slide title="XPath"> <blurb> %XPath% is a standardized query language for XML documents. %LibXML% provides an API for accessing DOM trees and querying documents. </blurb> <example filename="xpath.php"/> </slide> Index: presentations/slides/xmlandphp/xslt.xml +++ presentations/slides/xmlandphp/xslt.xml <slide title="XSLT"> <blurb> XSLT is a language designed to facilitate XML transformations, in XML itself. </blurb> </slide> Index: presentations/slides/xmlandphp/xslt1.xml +++ presentations/slides/xmlandphp/xslt1.xml <slide title="The Data"> <example filename="data.rss" fontsize="1.5em"/> </slide> Index: presentations/slides/xmlandphp/xslt2.xml +++ presentations/slides/xmlandphp/xslt2.xml <slide title="The Stylesheet"> <example filename="rss.xsl" fontsize="1.5em"/> </slide>

« previous php.pres (#645) next »