Project

Profile

Help

Bug #5560 » sheet2.xsl

Martin Honnen, 2022-06-16 10:47

 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="#all"
expand-text="yes">

<xsl:mode on-no-match="shallow-copy"/>
<xsl:param name="guess-path" select="//@id"/>

<xsl:template match="@*">
<xsl:next-match/>
<xsl:if test=". intersect $guess-path">
<xsl:attribute name="highlight">test</xsl:attribute>
</xsl:if>
</xsl:template>
<xsl:template match="/" name="xsl:initial-template">
<xsl:next-match/>
<xsl:comment>Run with {system-property('xsl:product-name')} {system-property('xsl:product-version')} {system-property('Q{http://saxon.sf.net/}platform')}</xsl:comment>
</xsl:template>
</xsl:stylesheet>
(2-2/4)