cziegeler 01/10/01 08:15:14 Modified: documentation sitemap.xmap documentation/stylesheets book2menu.xsl site2xhtml.xsl documentation/svg buttona.xml buttonb.xml Added: documentation/svg addlabel.xsl button-a.gif button-b.gif Removed: documentation/resources script.js Log: Added image generation for labels - until now only absolute path names work... Revision Changes Path 1.5 +5 -9 xml-cocoon2/documentation/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/documentation/sitemap.xmap,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- sitemap.xmap 2001/10/01 14:04:57 1.4 +++ sitemap.xmap 2001/10/01 15:15:14 1.5 @@ -60,12 +60,12 @@ <!-- Fix for javadocs --> <map:match pattern="**javadocs/**"> - <map:read src="resources/script.js" mime-type="text"/> + <map:read src="images/logo.gif" mime-type="image/gif"/> </map:match> <!-- Fix for samples --> <map:match pattern="samples/**"> - <map:read src="resources/script.js" mime-type="text"/> + <map:read src="images/logo.gif" mime-type="image/gif"/> </map:match> <map:match pattern="**book.xml"> @@ -108,10 +108,6 @@ </map:match> <!-- ================ Static =========================== --> - <map:match pattern="**resources/script.js"> - <map:read src="resources/script.js" mime-type="text"/> - </map:match> - <map:match pattern="**.txt"> <map:read src="xdocs/{1}.txt" mime-type="text"/> </map:match> @@ -131,8 +127,8 @@ <map:match pattern="**resources/**.gif"> <map:read src="resources/{2}.gif" mime-type="image/gif"/> </map:match> -<!-- - <map:match pattern="**graphics/*-label-*.jpg"> + + <map:match pattern="**graphics/*-label.jpg"> <map:generate src="svg/buttona.xml"/> <map:transform src="svg/addlabel.xsl"> <map:parameter name="use-request-parameters" value="true"/> @@ -140,7 +136,7 @@ </map:transform> <map:serialize type="svg2jpeg"/> </map:match> ---> + <map:match pattern="**graphics/**"> <map:read src="images/logo.gif" mime-type="image/gif"/> </map:match> 1.2 +2 -7 xml-cocoon2/documentation/stylesheets/book2menu.xsl Index: book2menu.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/documentation/stylesheets/book2menu.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- book2menu.xsl 2001/09/28 13:41:28 1.1 +++ book2menu.xsl 2001/10/01 15:15:14 1.2 @@ -18,16 +18,11 @@ <xsl:template match="menu-item"> <xsl:if test="not(@type) or @type!='hidden'"> - <xsl:variable name="label"><xsl:value-of select="substring-before(@href, '.')"/></xsl:variable> <tr> <td align="left" valign="top"> <a href="{@href}"> - <xsl:attribute name="onMouseOut">rolloverOff('<xsl:value-of select="$label"/>');</xsl:attribute> - <xsl:attribute name="onMouseOver">rolloverOn('<xsl:value-of select="$label"/>');</xsl:attribute> - <xsl:attribute name="onMouseOut">rolloverOff('<xsl:value-of select="$label"/>');</xsl:attribute> - <img alt="{$label}" border="0" height="12" hspace="0" name="{$label}" vspace="0" width="120"> - <xsl:attribute name="onLoad">rolloverLoad('<xsl:value-of select="$label"/>','graphics/<xsl:value-of select="$label"/>-label-2.jpg','graphics/<xsl:value-of select="$label"/>-label-3.jpg');</xsl:attribute> - <xsl:attribute name="src">graphics/<xsl:value-of select="$label"/>-label-3.jpg</xsl:attribute> + <img alt="{@label}" border="0" height="12" hspace="0" name="{@label}" vspace="0" width="120"> + <xsl:attribute name="src">graphics/<xsl:value-of select="@label"/>-label.jpg</xsl:attribute> </img> </a> </td> 1.3 +6 -10 xml-cocoon2/documentation/stylesheets/site2xhtml.xsl Index: site2xhtml.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/documentation/stylesheets/site2xhtml.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- site2xhtml.xsl 2001/10/01 13:39:03 1.2 +++ site2xhtml.xsl 2001/10/01 15:15:14 1.3 @@ -3,7 +3,6 @@ <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0"> <head> - <script language="JavaScript" type="text/javascript" src="resources/script.js"/> <title><xsl:value-of select="/site/document/title"/></title> </head> @@ -35,24 +34,21 @@ <table border="0" cellpadding="0" cellspacing="0" width="288"> <tr> <td width="96" height="20" valign="top" align="left"> - <a href="http://xml.apache.org/" onMouseOver="rolloverOn('xml');" onMouseOut="rolloverOff('xml');" target="new"> + <a href="http://xml.apache.org/" target="new"> <img alt="http://xml.apache.org/" width="96" height="20" src="images/button-xml-lo.gif" - name="xml" hspace="0" vspace="0" border="0" - onLoad="rolloverLoad('xml','images/button-xml-hi.gif','images/button-xml-lo.gif');"/> + name="xml" hspace="0" vspace="0" border="0"/> </a> </td> <td width="96" height="20" valign="top" align="left"> - <a href="http://www.apache.org/" onMouseOver="rolloverOn('asf');" onMouseOut="rolloverOff('asf');" target="new"> + <a href="http://www.apache.org/" target="new"> <img alt="http://www.apache.org/" width="96" height="20" src="images/button-asf-lo.gif" - name="asf" hspace="0" vspace="0" border="0" - onLoad="rolloverLoad('asf','images/button-asf-hi.gif','images/button-asf-lo.gif');"/> + name="asf" hspace="0" vspace="0" border="0"/> </a> </td> <td width="96" height="20" valign="top" align="left"> - <a href="http://www.w3.org/" onMouseOver="rolloverOn('w3c');" onMouseOut="rolloverOff('w3c');" target="new"> + <a href="http://www.w3.org/" target="new"> <img alt="http://www.w3.org/" width="96" height="20" src="images/button-w3c-lo.gif" - name="w3c" hspace="0" vspace="0" border="0" - onLoad="rolloverLoad('w3c','images/button-w3c-hi.gif','images/button-w3c-lo.gif');"/> + name="w3c" hspace="0" vspace="0" border="0"/> </a> </td> </tr> 1.3 +1 -1 xml-cocoon2/documentation/svg/buttona.xml Index: buttona.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/documentation/svg/buttona.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- buttona.xml 2001/10/01 14:03:56 1.2 +++ buttona.xml 2001/10/01 15:15:14 1.3 @@ -1,5 +1,5 @@ <?xml version="1.0"?> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="120" height="14"> - <image xlink:href="button-b.gif" width="120" height="14"/> + <image xlink:href="/svg/button-a.gif" width="120" height="14"/> <text style="font-family:arial; font-size:12px; font-style:italic" fill="white" x="14" y="12"><label/></text> </svg> 1.2 +1 -1 xml-cocoon2/documentation/svg/buttonb.xml Index: buttonb.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/documentation/svg/buttonb.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- buttonb.xml 2001/09/28 13:41:28 1.1 +++ buttonb.xml 2001/10/01 15:15:14 1.2 @@ -1,5 +1,5 @@ <?xml version="1.0"?> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="120" height="14"> - <image xlink:href="file:/C:/Programme/Sunshine/ApacheGroup/tomcat/webapps/cocoon/button-b.gif" width="120" height="14"/> + <image xlink:href="button-b.gif" width="120" height="14"/> <text style="font-family:arial; font-size:12px; font-style:italic" fill="white" x="14" y="12"><label/></text> </svg> 1.1 xml-cocoon2/documentation/svg/addlabel.xsl Index: addlabel.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="label"/> <xsl:template match="label"> <xsl:value-of select="$label"/> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> 1.1 xml-cocoon2/documentation/svg/button-a.gif <<Binary file>> 1.1 xml-cocoon2/documentation/svg/button-b.gif <<Binary file>>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]