|
|
Choosing A Webhost: |
svn commit: r443339 - in /lenya/trunk/src/webapp/lenya: resources-shared.xm: msg#00067cms.lenya.cvs
Author: andreas Date: Thu Sep 14 06:05:45 2006 New Revision: 443339 URL: http://svn.apache.org/viewvc?view=rev&rev=443339 Log: Add <root> element to CSS XML Modified: lenya/trunk/src/webapp/lenya/resources-shared.xmap lenya/trunk/src/webapp/lenya/resources/css/css.xsl Modified: lenya/trunk/src/webapp/lenya/resources-shared.xmap URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/resources-shared.xmap?view=diff&rev=443339&r1=443338&r2=443339 ============================================================================== --- lenya/trunk/src/webapp/lenya/resources-shared.xmap (original) +++ lenya/trunk/src/webapp/lenya/resources-shared.xmap Thu Sep 14 06:05:45 2006 @@ -31,6 +31,7 @@ <map:generate src="template-fallback://resources/shared/css/{../3}.xml"/> <map:transform src="template-fallback://lenya/resources/css/css.xsl"> <map:parameter name="contextprefix" value="{request:contextPath}"/> + <map:parameter name="root" value="{base-url:{page-envelope:publication-id}:{page-envelope:area}:false}"/> </map:transform> <map:serialize type="text" mime-type="text/css"/> </map:act> @@ -44,6 +45,7 @@ <map:generate src="fallback://resources/shared/css/{../3}.xml"/> <map:transform src="fallback://lenya/resources/css/css.xsl"> <map:parameter name="contextprefix" value="{request:contextPath}"/> + <map:parameter name="root" value="{base-url:{page-envelope:publication-id}:{page-envelope:area}:false}"/> </map:transform> <map:serialize type="text" mime-type="text/css"/> </map:act> Modified: lenya/trunk/src/webapp/lenya/resources/css/css.xsl URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/resources/css/css.xsl?view=diff&rev=443339&r1=443338&r2=443339 ============================================================================== --- lenya/trunk/src/webapp/lenya/resources/css/css.xsl (original) +++ lenya/trunk/src/webapp/lenya/resources/css/css.xsl Thu Sep 14 06:05:45 2006 @@ -1,14 +1,19 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:param name="contextprefix"/> - -<xsl:template match="css"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="context-prefix"> - <xsl:value-of select="$contextprefix"/> -</xsl:template> + <xsl:param name="contextprefix"/> + <xsl:param name="root"/> + + <xsl:template match="css"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="context-prefix"> + <xsl:value-of select="$contextprefix"/> + </xsl:template> + + <xsl:template match="root"> + <xsl:value-of select="$root"/> + </xsl:template> </xsl:stylesheet>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |