1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-27 14:52:16 +03:00
mal/impls/xslt/readline.xslt
AnotherTest fd99084ca6 no more infinite boot times!
move the repl inside XSLT itself, as a result, we'll exit the repl
after 100000000 iterations, but...that's probably enough for a lot
of things
2020-05-30 23:37:21 +04:30

13 lines
525 B
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Readline: interface for talking to the harness about readline -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:readline="READLINE" version="3.0">
<xsl:function name="readline:readline">
<xsl:param name="prompt"/>
<xsl:message>
<request kind="readline" value="{$prompt}"/>
</xsl:message>
<xsl:variable name="value" select="unparsed-text('xsl_input-string')"/>
<xsl:sequence select="$value"/>
</xsl:function>
</xsl:stylesheet>