Commit | Line | Data |
---|---|---|
9c04968f | 1 | <?xml version="1.0" encoding="UTF-8"?> |
e4882d7d A |
2 | <!-- A way to keep a process waiting until we signal it --> |
3 | <!-- In order to have a process pool that executes our queries faster --> | |
4 | <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
5 | <xsl:import href="step9_try.inc.xslt"></xsl:import> | |
6 | <xsl:param name="process_id" required="yes"/> | |
7 | <xsl:template match="/"> | |
8 | <xsl:variable name="uri" select="concat('process-input-', $process_id, '.xml')"></xsl:variable> | |
9 | <xsl:variable name="_lock" select="unparsed-text(concat('process-lock-', $process_id))"></xsl:variable> | |
10 | <!-- use _lock to trick the runtime --> | |
11 | <xsl:variable name="ctx" select="doc(concat($uri, substring($_lock, 0, 0)))"/> | |
12 | <xsl:for-each select="$ctx/mal"> | |
13 | <xsl:call-template name="rep"/> | |
14 | </xsl:for-each> | |
15 | </xsl:template> | |
16 | </xsl:stylesheet> |