svn commit: r590605 - in /lenya/trunk/src/modules/profiling: sitemap.xmap xslt/xmlverbatimwrapper.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: nettings
Date: Wed Oct 31 02:36:13 2007
New Revision: 590605

URL: http://svn.apache.org/viewvc?rev=590605&view=rev
Log:
and another missing context fix.

Modified:
    lenya/trunk/src/modules/profiling/sitemap.xmap
    lenya/trunk/src/modules/profiling/xslt/xmlverbatimwrapper.xsl

Modified: lenya/trunk/src/modules/profiling/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/profiling/sitemap.xmap?rev=590605&r1=590604&r2=590605&view=diff
==============================================================================
--- lenya/trunk/src/modules/profiling/sitemap.xmap (original)
+++ lenya/trunk/src/modules/profiling/sitemap.xmap Wed Oct 31 02:36:13 2007
@@ -12,7 +12,10 @@
   <map:view name="pretty-content" from-label="data">
     <map:transform src="fallback://lenya/modules/prettyprinting/xslt/xml2nicexml.xsl"/>
     <map:transform src="xslt/xmlverbatimwrapper.xsl">
-      <map:parameter name="css-stylesheet" value="/modules/profiling/css/xmlverbatim.css"/>
+      <map:parameter 
+          name="css-stylesheet" 
+          value="{page-envelope:context-prefix}/modules/profiling/css/xmlverbatim.css"
+      />
     </map:transform>
     <map:transform type="proxy"/>
     <map:serialize type="xhtml"/>

Modified: lenya/trunk/src/modules/profiling/xslt/xmlverbatimwrapper.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/profiling/xslt/xmlverbatimwrapper.xsl?rev=590605&r1=590604&r2=590605&view=diff
==============================================================================
--- lenya/trunk/src/modules/profiling/xslt/xmlverbatimwrapper.xsl (original)
+++ lenya/trunk/src/modules/profiling/xslt/xmlverbatimwrapper.xsl Wed Oct 31 02:36:13 2007
@@ -38,14 +38,24 @@
    <xsl:param name="select" />
 
    <!-- CSS Stylesheet -->
-   <xsl:param name="css-stylesheet" select="'xmlverbatim.css'" />
+   <xsl:param name="css-stylesheet" select="profiling.ERROR" />
 
    <!-- root -->
    <xsl:template match="/">
       <xsl:apply-templates select="/" mode="xmlverbwrapper" />
    </xsl:template>
 
+
+
    <xsl:template match="/" mode="xmlverbwrapper">
+     <!--
+       check sitemap parameters.
+     -->
+     <xsl:if test="$css-stylesheet='profiling.ERROR'">
+       <xsl:message terminate="yes">
+         Missing css-stylesheet parameter! Check your profiling sitemap.
+       </xsl:message>
+     </xsl:if>
       <html>
          <head>
             <title>XML source view</title>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.