- From: Florent Georges <fgeorges@fgeorges.org>
- Date: Sat, 8 Jan 2011 17:49:45 +0100
- To: Norman Walsh <ndw@nwalsh.com>
- Cc: XProc Dev <xproc-dev@w3.org>
On 20 December 2010 22:33, Norman Walsh wrote:
Hi,
> I just rewrote that code to support the current semantics for
> { and }. Hopefully I fixed that :-)
I confirm this is fixed in the latest version (0.9.30). But
while confirming this, I found another bug. If you add a comment
after the root element of the template port, which contains an
expression enclosed in { and }, it generates a Null Pointer
Exception. Full repro (I only added the comment):
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0">
<p:output port="result"/>
<p:document-template>
<p:input port="template">
<p:inline>
<c:data>before { $val } after</c:data>
<!-- { $val } -->
</p:inline>
</p:input>
<p:input port="source">
<p:empty/>
</p:input>
<p:with-param name="val" select="'xyz'"/>
</p:document-template>
</p:declare-step>
Hope that helps. Regards,
--
Florent Georges
http://fgeorges.org/
Received on Saturday, 8 January 2011 16:50:41 UTC