Commit 416b74b1 authored by Hanspeter Portner's avatar Hanspeter Portner

manual: work on atom containers.

parent ae48173e
This diff is collapsed.
......@@ -2,32 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:template match="/">
local _snippets = {
<xsl:for-each select="html/body/div/div/div/pre/code">
{
'<xsl:value-of select="current()/@id"/>',
[[
<xsl:value-of select="current()"/>
]]
},
</xsl:for-each>
}
for _, _v in ipairs(_snippets) do
run = nil
once = nil
stash = nil
apply = nil
save = nil
restore = nil
local _f = load(_v[2])
assert(_f)
print('[test] ' .. _v[1])
_f()
local function _test()
local _io = Stash()
if stash then
......@@ -60,5 +35,21 @@ for _, _v in ipairs(_snippets) do
--FIXME
end
end
<xsl:for-each select="html/body/div/div/div/pre/code">
do
run = nil
once = nil
stash = nil
apply = nil
save = nil
restore = nil
print('[test] <xsl:value-of select="current()/@id"/>')
<xsl:value-of select="current()"/>
_test()
end
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment