Changeset 580 for MDService2/trunk/MDService2/src/xsl
- Timestamp:
- 07/11/10 17:41:41 (14 years ago)
- Location:
- MDService2/trunk/MDService2/src/xsl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/xsl/XCQL2Xpath.xsl
r561 r580 42 42 <xsl:output method="text" /> 43 43 44 44 45 45 <xsl:template match="triple"> 46 46 <!-- this is rather hacky yet -
MDService2/trunk/MDService2/src/xsl/cmd_commons.xsl
r574 r580 74 74 75 75 <!-- <xsl:variable name="resolved_fn" select="if (matches(@filename, $prefix)) then replace(@filename, $prefix, $prefix_replace) else if (document-uri(/)) then @filename else concat( $root_uri, '/', @filename)" /> --> 76 <xsl:variable name="resolved_fn" select="concat($components_uri, @ComponentId)" /> 76 <!-- <xsl:variable name="resolved_fn" select="concat($components_uri, @ComponentId)" /> --> 77 <xsl:variable name="resolved_fn" select="concat($components_uri, my:extractID(@ComponentId))" /> 77 78 <xsl:variable name="compid" select="@ComponentId" /> 78 79 -
MDService2/trunk/MDService2/src/xsl/comp2view.xsl
r575 r580 14 14 <xsl:include href="cmd_commons.xsl"/> 15 15 16 <xsl:output method=" html" encoding="UTF-8" indent="yes"/>16 <xsl:output method="xml" encoding="UTF-8" indent="yes"/> 17 17 18 18 <xsl:param name="title" … … 87 87 </xsl:if> 88 88 </span> 89 <xsl:if test=" @CardinalityMax > 1" >89 <xsl:if test="number(@CardinalityMax) > 1 or @CardinalityMax='unbounded'" > 90 90 <span class="cmd cmd_add"><xsl:text> </xsl:text></span> 91 91 </xsl:if> … … 113 113 </span><br/> 114 114 <input type="text" id="q_{@name}" value="" size="50" name="q_{@name}" /> 115 <xsl:if test=" @CardinalityMax > 1" >115 <xsl:if test="number(@CardinalityMax) > 1 or @CardinalityMax='unbounded'" > 116 116 <span class="cmd cmd_add"><xsl:text> </xsl:text></span> 117 117 </xsl:if> -
MDService2/trunk/MDService2/src/xsl/params.xsl
r574 r580 12 12 13 13 <!-- for resolving components by suffixing with @ComponentId --> 14 <xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" /> 14 <!-- <xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" /> --> 15 <!-- redirecting the resolution via MDService, to be able to make use of the cache 16 the absolute-URL is not nice, however I wasn't able to tell XSL how to resolve a relative url 17 --> 18 <xsl:param name="components_uri" select="'http://localhost:8080/MDService2/comp/xml/'" /> 15 19 <xsl:param name="components_id_prefix" select="'clarin.eu:cr1:'" /> 16 20 17 21 <xsl:param name="detail_comp_prefix" select="'comp/htmldetail/'"/> 18 22 <xsl:param name="detail_profile_prefix" select="'compprofile/htmldetail/'"/> 19 <xsl:param name="detail_complist_prefix" select="if(contains(name(/*),'profile')) then $detail_profile_prefix else $detail_comp_prefix"/> <!-- table|list -->23 <xsl:param name="detail_complist_prefix" select="if(contains(name(/*),'profile')) then $detail_profile_prefix else $detail_comp_prefix"/> 20 24 21 25 <xsl:param name="detail_model_prefix" select="'?q='"/>
Note: See TracChangeset
for help on using the changeset viewer.