Changeset 1667 for MDService2


Ignore:
Timestamp:
12/15/11 15:11:06 (12 years ago)
Author:
vronk
Message:

introduce xsl-param : $app_name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/xsl/params.xsl

    r1637 r1667  
    22<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    33       
     4<!--    <xsl:param name="title" select="'Default Title'" />  -->
     5
     6        <xsl:param name="server" select="'http://localhost:8080/'" />
     7        <xsl:param name="app_name" select="'MDService2'" />
    48       
    5        
    6 <!--    <xsl:param name="title" select="'Default Title'" />  -->
    79        <xsl:param name="format"  select="'htmltable'"/> <!-- table|list -->
    810        <xsl:param name="display_values_limit" select="10" />
     11       
    912        <xsl:param name="max_depth" select="0" />
    1013       
    11         <xsl:param name="base_dir" select="'/MDService2'" />
    12         <xsl:param name="base_url" select="'http://localhost:8080/MDService2/'" />
    13         <xsl:param name="base_js_url" select="'http://localhost:8080/MDService2/search/htmljspage'" />
    14        
     14        <xsl:param name="base_dir" select="concat('/', $app_name)" />
     15        <xsl:param name="base_url" select="concat($server, $app_name, '/')" />
     16        <xsl:param name="base_js_url" select="concat($base_dir, '/search/htmljspage')" />               
    1517        <xsl:param name="docs_baseuri" select="concat($base_dir, '/docs/htmlpage/welcome')" />
    1618       
     
    2123       
    2224       
    23         <xsl:param name="workspaceprofile_uri" select="'http://localhost:8080/MDService2/workspaceprofile/xml/server'" />
     25        <xsl:param name="workspaceprofile_uri" select="concat('http://localhost:8080/', $app_name, '/workspaceprofile/xml/server')" />
    2426       
     27<!-- should be obsoleted by SMC:        -->
    2528        <!-- <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?maxdepth=8&amp;q='" /> -->
    2629        <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?q='" />
     
    4346                the absolute-URL is not nice, however I wasn't able to tell XSL how to resolve a relative url
    4447        -->     
     48<!-- should be obsoleted by SMC:        -->     
    4549        <xsl:param name="cmdprofiles_uri" select="'http://localhost:8080/MDService2/compprofile/xml/'" />
    4650        <xsl:param name="components_uri" select="'http://localhost:8080/MDService2/comp/xml/'" />               
Note: See TracChangeset for help on using the changeset viewer.