Apache-XBEL

 view release on metacpan or  search on metacpan

xsl/apache-xbel.xsl  view on Meta::CPAN

     ====================================================================== -->

     <xsl:template name = "_print">
      <xsl:param name = "data" />

      <xsl:choose>
       <xsl:when test = "$disable-output-escaping">
        <xsl:value-of select = "$data" disable-output-escaping = "yes" />
       </xsl:when>
       <xsl:otherwise>
        <xsl:value-of select = "$data" />
       </xsl:otherwise>
      </xsl:choose>

     </xsl:template>

<!-- ====================================================================== 

     (this will be moved to a separate file in Apache::XBEL.pm 1.4)
     ====================================================================== -->

     <xsl:template name = "js-code">
      <script>

       <xsl:attribute name = "type">
        <xsl:text>text/javascript</xsl:text>
       </xsl:attribute>

       //<![CDATA[

function toggle_display (id) {

    var parent   = document.getElementById(id);
    var children = parent.childNodes.length;

    for (var i = 1; children > i; i++) {
       var child   = parent.childNodes[i];
       var node    = child.nodeName;
       var display = child.style.display;

       if (node == "DIV") {

	  if (display == "block") {
	   child.style.display = "none";  
           set_icon_bgcolor(id,"beige");
           set_icon_text(id,"&#8595;");
	  }

	  else {
	   child.style.display = "block";
           set_icon_bgcolor(id,"#cccccc");
           set_icon_text(id,"&#8593;");
	  }
       }
    }
}

function set_icon_bgcolor (id,colour) { 
    if (document.getElementById("t-"+id)) {
       var icon = document.getElementById("t-"+id).style;
       icon.backgroundColor = colour; 
    }
}

function set_icon_text (id,txt) { 
    if (document.getElementById("t-"+id)) {
       document.getElementById("t-"+id).innerHTML = txt;
    }
}
       //]]>

      </script>
     </xsl:template>

<!-- ====================================================================== 

     (this will be moved to a separate file in Apache::XBEL.pm 1.4)
     ====================================================================== -->

     <xsl:template name = "css-code">
      <style>

       <xsl:attribute name = "type">
        <xsl:text>text/css</xsl:text>
       </xsl:attribute>

       //<![CDATA[

foo {}

body {
     margin-right:0px; 
     margin-left:0px;
     margin-top:0px;

     background:beige;
     font-family:sans-serif;
}

a { 
  color:#666666;
  text-decoration : none;
}

a:hover { 
	text-decoration : none; 
	color:orange; 
}

.wrapper {

}

.breadcrumbs {
}

.breadcrumbs ul {
	     padding:0px;
	     margin:0px;

	     margin-bottom:10px;	     
}

.breadcrumbs ul li {
	     display:inline;
	     font-size:14pt;
	     padding:0px;
	     margin:0px;

	     padding-right:10px;
}

.navbar {
	width : 100%;
	background:beige;
	padding-right:10px;
	padding-left:10px;
	padding-top:5px;
	padding-bottom:5px;
	font-family:sans-serif;
	font-weight:bold;
	font-size:14pt;
}

.navbar .navbar-item {
	padding-right:25px;
}

.navbar .navbar-item a:hover { cursor:w-resize; }

.root { 
      background:#ffffff;
      /* width : 60%;	*/
      font-size:14pt;
      font-weight:bold;
      font-family:sans-serif;
      color:maroon; 
      padding-left:10px;
      padding-top:10px;
      padding-bottom:25px;
      padding-right:10px;
      border:1px dashed darkslategray;
      margin: 10px;
}

.title {
        border-bottom : 1px dashed #ccc;
        margin-bottom:10px;
        }
               
.folder {
	font-size:12pt;
	color:darkslategray;
	padding-left:25px;
	padding-top:5px;
	display:none; 
}

.folder a:hover {
	cursor:e-resize;
}

.alias { 
	  font-weight:normal;
	  font-size:10pt;
	  padding-left:50px;
	  color:#adadad;
	  display:none; 
}

.alias:before {
	      content : "[ ";
}

.alias:after {
	      content : " ]";
}

.bookmark { 
	  font-weight:normal;
	  font-size:10pt;
	  padding-left:50px;
	  color:maroon;
	  display:none; 
}

.bookmark a { 
	  color:maroon; 
          text-decoration:underline;
}

.bookmark a:hover { 
	  color:blue;	  
	  cursor:e-resize;   
}

.bookmark-description {
        color : #666666;
        margin-bottom:10px;
}

.folder-description {
        font-size:12pt;
        color:beige;
}

.separator-wrapper {
        padding-top:5px;padding-bottom:5px;
}

.separator {
        border-top : 3px dashed #ccc;
        font-size  : 1px;
        color      : #ffffff;
}

.toggle-indicator { 
		  font-size:10pt; 
		  background:beige;
		  border:1px solid darkslategray; 
		  width:15px;
		  height:10xpx;
		  clear:right; 
		  text-align:center;
		  padding-right:10px;
		  margin-right:10px;
}

.description {
	     padding-left:10px;
	     color:darkslategray;
}

       //]]>

      </style>  
     </xsl:template>

<!-- ====================================================================== 

     ====================================================================== -->

     <doc:reference>
      <section>
       <title>See also:</title>

       <itemizedlist>
	<listitem>
	 <para>
	  <ulink url = "http://search.cpan.org/dist/Apache-XBEL">Apache::XBEL.pm</ulink>
	 </para>
	</listitem>
       </itemizedlist>

      </section>
     </doc:reference>

<!-- ====================================================================== 
     FIN // $Id: apache-xbel.xsl,v 1.8 2004/03/01 15:11:55 asc Exp $
     ====================================================================== -->

     </xsl:stylesheet>



( run in 2.005 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )