Project

General

Profile

1
<?xml version="1.0"?>
2
<xsl:stylesheet xmlns:mb="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="mb" version="1.0"><xsl:output method="html" omit-xml-declaration="yes"/><xsl:param name="baseDir">/mapbuilder/lib</xsl:param><xsl:template match="/mb:MapbuilderConfig"><xsl:apply-templates/></xsl:template><xsl:template match="mb:models/*"><xsl:variable name="scriptfile"><xsl:value-of select="$baseDir"/>/model/<xsl:value-of select="name(.)"/>.js</xsl:variable><script type="text/javascript" src="{$scriptfile}"/><xsl:apply-templates/></xsl:template><xsl:template match="mb:widgets/*"><xsl:variable name="scriptfile"><xsl:value-of select="$baseDir"/>/widget/<xsl:value-of select="name(.)"/>.js</xsl:variable><script type="text/javascript" src="{$scriptfile}"/><xsl:apply-templates select="mb:scriptfile"/></xsl:template><xsl:template match="mb:tools/*"><xsl:variable name="scriptfile"><xsl:value-of select="$baseDir"/>/tool/<xsl:value-of select="name(.)"/>.js</xsl:variable><script type="text/javascript" src="{$scriptfile}"/></xsl:template><xsl:template match="mb:scriptfile"><xsl:variable name="scriptfile"><xsl:value-of select="."/></xsl:variable><script type="text/javascript" src="{$scriptfile}"/></xsl:template><xsl:template match="text()|@*"/></xsl:stylesheet>
(1-1/6)