-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable xslt transformations * apply review comments * output transformations in logs
- Loading branch information
Showing
11 changed files
with
340 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet | ||
version="2.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:gmd="http://www.isotc211.org/2005/gmd" | ||
xmlns:srv="http://www.isotc211.org/2005/srv" | ||
xmlns:gco="http://www.isotc211.org/2005/gco" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:gmx="http://www.isotc211.org/2005/gmx" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:gfc="http://www.isotc211.org/2005/gfc" | ||
xmlns:gts="http://www.isotc211.org/2005/gts" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
xmlns:geonet="http://www.fao.org/geonetwork"> | ||
|
||
<xsl:output omit-xml-declaration="yes" indent="yes"/> | ||
<xsl:param name="URL">gmd:URL</xsl:param> | ||
<xsl:param name="urlPrefixSearchPortail">https://prod.sig.rennesmetropole.fr</xsl:param> | ||
<xsl:param name="urlPrefixCiblePortail">https://final_prod.sig.rennesmetropole.fr</xsl:param> | ||
|
||
<xsl:template match="@* | node()"> | ||
<xsl:copy> | ||
|
||
|
||
<xsl:choose> | ||
<xsl:when test="name()=$URL"> | ||
<!-- Process N°1 | ||
Portail public transformation des urls des capacités WMS et WFS | ||
portail.sig en public.sig --> | ||
<xsl:if test="(contains(text(), $urlPrefixSearchPortail))"> | ||
<xsl:value-of select="concat($urlPrefixCiblePortail,substring-after(text(),$urlPrefixSearchPortail))"> | ||
</xsl:value-of> | ||
</xsl:if> | ||
<xsl:if test="not(contains(text(), $urlPrefixSearchPortail))"> | ||
<xsl:apply-templates select="@* | node()"/> | ||
</xsl:if> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:apply-templates select="@* | node()"/> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
Oops, something went wrong.