- From: Arthur Ryman <aryman@dev.w3.org>
- Date: Mon, 27 Dec 2004 22:09:23 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/wsdl20 In directory hutz:/tmp/cvs-serv5757/wsdl20 Modified Files: wsdl20.html xmlspec.xsl zml2html.xsl zml.css build.xml Added Files: wsdl20-i.html twisty.js Removed Files: xmlspec-z.xsl xmlspec-wsdl-z.xsl Log Message: Implemented interactive version of spec to hide and show Z Notation. --- NEW FILE: twisty.js --- /** Functions for hiding and showing twisty divs. Change Log: 2004-12-26 Arthur Ryman <ryman@ca.ibm.com> - created */ // id prefix for divs that are twisty heads var twisty_head = "twisty-head-"; // id prefix for divs that are twisty bodies var twisty_body = "twisty-body-"; // Hides all twisty body divs and shows all heads function hideAll() { displayAll("block", "none"); } // Shows all twisty body divs and hides all heads function showAll() { displayAll("none", "block"); } // Sets the display style of all twisty divs. function displayAll(head, body) { var divs = document.getElementsByTagName("div"); var n = divs.length; for (i = 0; i < n; i++) { var div = divs[i]; var id = div.id; if (id.indexOf(twisty_head) == 0) { div.style.display = head; } if (id.indexOf(twisty_body) == 0) { div.style.display = body; } } } // Shows the named twisty body div and hides the head. function show(name) { display(name, "none", "block"); } // Hides the named twisty body div and shows the head. function hide(name) { display(name, "block", "none"); } // Sets the display style the named twisty head and body divs. function display(name, head, body) { displayId(twisty_head + name, head); displayId(twisty_body + name, body); } // Sets the display style of the identified element. function displayId(id, display) { var element = document.getElementById(id); if (element != null) { element.style.display = display; } } Index: build.xml =================================================================== RCS file: /sources/public/2002/ws/desc/wsdl20/build.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** build.xml 12 Nov 2004 02:17:41 -0000 1.6 --- build.xml 27 Dec 2004 22:09:21 -0000 1.7 *************** *** 27,67 **** ChangeLog: ! 2004-10-11: Arthur Ryman <ryman@ca.ibm.com> ! - added target to transform XML to HTML 2004-10-16: Arthur Ryman <ryman@ca.ibm.com> - added target to typecheck Z notation --> <project name="wsdl20" default="main" basedir="."> ! <target name="html" description="Transforms xml into html."> ! <xslt in="wsdl20.xml" out="wsdl20.html" style="xmlspec-wsdl.xsl" /> ! </target> ! ! <target name="html-z" description="Transforms xml into html."> ! <xslt in="wsdl20.xml" out="wsdl20-show.html" style="xmlspec-wsdl-z.xsl"> ! <param name="showZed" expression="true" /> ! <param name="linkTo" expression="wsdl20-hide.html"/> ! </xslt> ! <xslt in="wsdl20.xml" out="wsdl20-hide.html" style="xmlspec-wsdl-z.xsl"> ! <param name="showZed" expression="false" /> ! <param name="linkTo" expression="wsdl20-show.html" /> ! </xslt> ! </target> <target name="clean" description="Deletes generated files."> - <delete file="wsdl20.html" /> - <delete file="wsdl20-show.html" /> - <delete file="wsdl20-hide.html" /> <delete file="wsdl20.tex" /> </target> - <target name="main" depends="clean, typecheck, html, html-z" description="Creates all output files." /> - <target name="typecheck" depends="latex" description="Typechecks wsdl20.xml"> <exec executable="e:\cygwin\bin\fuzz"> ! <arg line="-d -p e:\cygwin\bin\fuzzlib wsdl20"/> </exec> </target> --- 27,61 ---- ChangeLog: ! 2004-12-27: Arthur Ryman <ryman@ca.ibm.com> ! - added target to generate interactive ! version of spec ! ! 2004-12-25: Arthur Ryman <ryman@ca.ibm.com> ! - moved fuzzlib to default location in /usr/local/lib ! and removed -p option from fuzz command ! - added target to build interactive version ! of spec 2004-10-16: Arthur Ryman <ryman@ca.ibm.com> - added target to typecheck Z notation + 2004-10-11: Arthur Ryman <ryman@ca.ibm.com> + - added target to transform XML to HTML + --> <project name="wsdl20" default="main" basedir="."> ! <target name="main" depends="clean, typecheck, html, interactive" description="Creates all output files." /> <target name="clean" description="Deletes generated files."> <delete file="wsdl20.tex" /> + <delete file="wsdl20.html" /> + <delete file="wsdl20-i.html" /> </target> <target name="typecheck" depends="latex" description="Typechecks wsdl20.xml"> <exec executable="e:\cygwin\bin\fuzz"> ! <arg line="-d wsdl20"/> </exec> </target> *************** *** 77,80 **** --- 71,83 ---- </target> + <target name="html" description="Transforms xml into html."> + <xslt in="wsdl20.xml" out="wsdl20.html" style="xmlspec-wsdl.xsl" /> + </target> + + <target name="interactive" description="Transforms xml into interactive html."> + <xslt in="wsdl20.xml" out="wsdl20-i.html" style="xmlspec-wsdl.xsl"> + <param name="interactive" expression="true" /> + </xslt> + </target> </project> \ No newline at end of file --- xmlspec-wsdl-z.xsl DELETED --- Index: zml2html.xsl =================================================================== RCS file: /sources/public/2002/ws/desc/wsdl20/zml2html.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** zml2html.xsl 26 Nov 2004 18:34:09 -0000 1.8 --- zml2html.xsl 27 Dec 2004 22:09:21 -0000 1.9 *************** *** 28,31 **** --- 28,34 ---- 2004-10-24: Arthur Ryman <ryman@ca.ibm.com> + - added interactive version with twisties + + 2004-10-24: Arthur Ryman <ryman@ca.ibm.com> - added support for <z:see/> *************** *** 44,48 **** <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ! xmlns:z="http://www.w3.org/2004/zml" exclude-result-prefixes="z" version="1.0"> <xsl:import href="zml2html-lines.xsl" /> --- 47,52 ---- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ! xmlns:z="http://www.w3.org/2004/zml" exclude-result-prefixes="z" ! version="1.0"> <xsl:import href="zml2html-lines.xsl" /> *************** *** 50,59 **** <xsl:import href="zml2html-symbols-unicode.xsl" /> <xsl:param name="showZed" select="'true'" /> <xsl:param name="linkTo" /> <xsl:template match="z:notation"> ! <a name="zed-{@name}"/> <xsl:choose> <xsl:when test="$showZed='true'"> <xsl:if test="$linkTo"> --- 54,88 ---- <xsl:import href="zml2html-symbols-unicode.xsl" /> + <xsl:param name="interactive" select="'false'" /> <xsl:param name="showZed" select="'true'" /> <xsl:param name="linkTo" /> <xsl:template match="z:notation"> ! <a name="zed-{@name}" /> <xsl:choose> + <xsl:when test="$interactive='true'"> + <div class="twisty-head" id="twisty-head-zed-{@name}"> + <img class="twisty-icon" + src="images/left-twisty-13.png" /> + <a href="javascript:show('zed-{@name}')"> + <xsl:value-of select="@name" /> + </a> + <xsl:text>...</xsl:text> + </div> + <div class="twisty-body" id="twisty-body-zed-{@name}"> + <img class="twisty-icon" + src="images/down-twisty-13.png" /> + <a href="javascript:hide('zed-{@name}')"> + <xsl:value-of select="@name" /> + </a> + <xsl:text>  [ </xsl:text> + <a href="#zed-{@name}" onClick="showAll()">show all</a> + <xsl:text> ]  [ </xsl:text> + <a href="#zed-{@name}" onClick="hideAll()">hide all</a> + <xsl:text> ]</xsl:text> + <br /> + <xsl:apply-templates /> + </div> + </xsl:when> <xsl:when test="$showZed='true'"> <xsl:if test="$linkTo"> *************** *** 302,337 **** </a> </xsl:template> ! <xsl:template match="z:see"> <div class="zsee"> <span class="zsmall"> ! <xsl:text>See</xsl:text> ! <span class="zi"> ! <xsl:call-template name="write-names"> ! <xsl:with-param name="names" select="normalize-space(@names)"/> ! </xsl:call-template> ! </span> </span> </div> </xsl:template> ! <xsl:template name="write-names"> ! <xsl:param name="names"/> ! <xsl:value-of select="' '"/> <xsl:choose> <xsl:when test="contains($names,' ')"> ! <xsl:variable name="name1" select="substring-before($names,' ')"/> ! <a href="#zed-{$name1}"><xsl:value-of select="$name1"/></a> ! <xsl:value-of select="','"/> <xsl:call-template name="write-names"> ! <xsl:with-param name="names" select="substring-after($names,' ')"/> </xsl:call-template> </xsl:when> <xsl:otherwise> ! <a href="#zed-{$names}"><xsl:value-of select="$names"/></a> ! <xsl:value-of select="'.'"/> </xsl:otherwise> </xsl:choose> ! </xsl:template> --- 331,373 ---- </a> </xsl:template> ! <xsl:template match="z:see"> <div class="zsee"> <span class="zsmall"> ! <xsl:text>See</xsl:text> ! <span class="zi"> ! <xsl:call-template name="write-names"> ! <xsl:with-param name="names" ! select="normalize-space(@names)" /> ! </xsl:call-template> ! </span> </span> </div> </xsl:template> ! <xsl:template name="write-names"> ! <xsl:param name="names" /> ! <xsl:value-of select="' '" /> <xsl:choose> <xsl:when test="contains($names,' ')"> ! <xsl:variable name="name1" ! select="substring-before($names,' ')" /> ! <a href="#zed-{$name1}"> ! <xsl:value-of select="$name1" /> ! </a> ! <xsl:value-of select="','" /> <xsl:call-template name="write-names"> ! <xsl:with-param name="names" ! select="substring-after($names,' ')" /> </xsl:call-template> </xsl:when> <xsl:otherwise> ! <a href="#zed-{$names}"> ! <xsl:value-of select="$names" /> ! </a> ! <xsl:value-of select="'.'" /> </xsl:otherwise> </xsl:choose> ! </xsl:template> Index: zml.css =================================================================== RCS file: /sources/public/2002/ws/desc/wsdl20/zml.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** zml.css 9 Nov 2004 17:53:37 -0000 1.3 --- zml.css 27 Dec 2004 22:09:21 -0000 1.4 *************** *** 22,25 **** --- 22,29 ---- ChangeLog: + + 2004-12-26: Arthur Ryman <ryman@ca.ibm.com> + - added div.twisty-head, div.twisty-body, img.twisty-icon + for use in interactive version of spec 2004-10-24: Arthur Ryman <ryman@ca.ibm.com> *************** *** 30,34 **** */ - span.zi { font-family: serif; --- 34,37 ---- *************** *** 167,171 **** } - table.zaxdef { width: 30em; --- 170,173 ---- *************** *** 270,272 **** --- 272,292 ---- margin-top: 0; margin-bottom: 2ex; + } + + /* twisty head is initially displayed */ + div.twisty-head { + display: block; + } + + /* twist body is initially hidden */ + div.twisty-body { + display: none; + } + + /* twisty icon */ + img.twisty-icon { + width: 13px; + height: 13px; + border: 0; + margin-right: 4px; } \ No newline at end of file --- xmlspec-z.xsl DELETED --- --- NEW FILE: wsdl20-i.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language</title><style type="text/css"> code { font-family: monospace; } div.constraint, div.issue, div.note, div.notice { margin-left: 2em; } dt.label { display: run-in; } li, p { margin-top: 0.3em; margin-bottom: 0.3em; } .diff-chg { background-color: yellow; } .diff-del { background-color: red; text-decoration: line-through;} .diff-add { background-color: lime; } table { empty-cells: show; } [...8782 lines suppressed...] </tr> <tr> <td rowspan="1" colspan="1">20020620</td> <td rowspan="1" colspan="1">SW</td> <td rowspan="1" colspan="1">Started adding abstract model</td> </tr> <tr> <td rowspan="1" colspan="1">20020406</td> <td rowspan="1" colspan="1">SW</td> <td rowspan="1" colspan="1">Created document from WSDL 1.1</td> </tr> </tbody> </table><br> </div> </div> </div> </body></html> Index: xmlspec.xsl =================================================================== RCS file: /sources/public/2002/ws/desc/wsdl20/xmlspec.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** xmlspec.xsl 16 Dec 2004 17:21:14 -0000 1.8 --- xmlspec.xsl 27 Dec 2004 22:09:21 -0000 1.9 *************** *** 21,24 **** --- 21,27 ---- <!-- ChangeLog: + 26 December 2004: Arthur Ryman <ryman@ca.ibm.com> + - Added JavaScript for handling twisties. + 13 October 2004: Arthur Ryman <ryman@ca.ibm.com> - Added link to zml.css for displaying Z notation. *************** *** 1641,1644 **** --- 1644,1650 ---- </title> <xsl:call-template name="css"/> + <!-- AGR added JavaScript to hide and show twisty divs --> + <script language="JavaScript" src="twisty.js"> + </script> <!-- PLH added altlocs and link handling --> <xsl:call-template name="altlocs"/> Index: wsdl20.html =================================================================== RCS file: /sources/public/2002/ws/desc/wsdl20/wsdl20.html,v retrieving revision 1.128 retrieving revision 1.129 diff -C2 -d -r1.128 -r1.129 *** wsdl20.html 18 Dec 2004 20:56:04 -0000 1.128 --- wsdl20.html 27 Dec 2004 22:09:21 -0000 1.129 *************** *** 45,56 **** div.exampleHeader { font-weight: bold; margin: 4px} ! </style><link href="zml.css" rel="stylesheet" type="text/css"><link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/base.css"><link type="" href="" title="" rel="alternate"><link href="#contents" rel="contents"></head><body> ! <div class="head"> <h1>Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language</h1> ! <h2>Editors' copy $Date$ @@ @@@@ @@@@</h2><dl><dt>This version:</dt><dd> ! <a href="wsdl20.html">wsdl20.html</a> </dd><dt>Latest version:</dt><dd> ! <a href="http://www.w3.org/2002/ws/desc/wsdl20">http://www.w3.org/2002/ws/desc/wsdl20</a> [...1209 lines suppressed...] The <code>dtd:import</code> <em>element information item</em> references an external Document Type --- 7499,7503 ---- <p> The prefix, dtd, used throughout the following is mapped to the ! namespace URI "http://www.w3.org/2004/12/wsdl/dtd-import".</p> <p> The <code>dtd:import</code> <em>element information item</em> references an external Document Type *************** *** 7441,7445 **** <li><p>A [local name] of import.</p></li> <li><p>A [namespace name] of ! "http://www.w3.org/@@@@/@@/wsdl/dtd-import".</p></li> <li><p>One or two <em>attribute information item</em>s, as follows:</p> <ul> --- 7506,7510 ---- <li><p>A [local name] of import.</p></li> <li><p>A [namespace name] of ! "http://www.w3.org/2004/12/wsdl/dtd-import".</p></li> <li><p>One or two <em>attribute information item</em>s, as follows:</p> <ul>
Received on Monday, 27 December 2004 22:09:24 UTC