Project

Profile

Help

Bug #6346 » replaceBug.xsl

John Lumley, 2024-02-14 15:03

 
<?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"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
exclude-result-prefixes="xs math"
version="3.0" expand-text="yes">
<xsl:template name="go">
<xsl:result-document href="#sandpit" method="ixsl:replace-content">
FOO {replace(string(current-date()),'2','B')}
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>
(3-3/3)