| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- exclude-result-prefixes="xs"
- xmlns:graph="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd"
- version="2.0">
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:param name="graph.graph-to-analyze-property.xml" required="yes"/>
-
- <xsl:variable name="graph:graph.graph-to-analyze-property.xml" select="doc($graph.graph-to-analyze-property.xml)"/>
- <xsl:template match="graph:graph.graph-to-analyze.xml" mode="graph:graph-to-analyze-evaluated.xml">
- <graph:graph-to-analyze-evaluated.xml>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </graph:graph-to-analyze-evaluated.xml>
- </xsl:template>
-
- <xsl:template match="*" mode="graph:graph-to-analyze-evaluated.xml">
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="graph:graph-to-analyze-evaluated.xml" select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="@*" mode="graph:graph-to-analyze-evaluated.xml">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template match="@value[ contains(.,'${')]|@location[ contains(.,'${')]" mode="graph:graph-to-analyze-evaluated.xml">
- <xsl:attribute name="{name()}" select="$graph:graph.graph-to-analyze-property.xml//property[@name = current()/../@name][1]/@graph:property.evaluated"/>
- <xsl:attribute name="graph:value-evaluated-from" select="."/>
- </xsl:template>
-
-
-
- <xsl:template match="text()|comment()">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- </xsl:stylesheet>
|