W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2011

RE: p:xslt parameters and default namespaces

From: <vojtech.toman@emc.com>
Date: Wed, 17 Aug 2011 07:35:13 -0400
To: <xproc-dev@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE33D974EE51@MX20A.corp.emc.com>
Indeed, this looks like a Calabash bug. I will add a test to the XProc test suite (http://tests.xproc.org/) for this case.

Regards,
Vojtech

--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech


From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Jostein Austvik Jacobsen
Sent: Wednesday, August 17, 2011 12:36 PM
To: XProc Dev
Subject: p:xslt parameters and default namespaces

Hi.

I've come across a curious behavior in p:xslt. Try this pipeline:

<?xml version="1.0" encoding="UTF-8"?>
<p:pipeline xmlns:p="http://www.w3.org/ns/xproc" version="1.0" name="main" xmlns="http://example.net/">
    <p:xslt>
        <p:input port="source">
            <p:inline>
                <doc/>
            </p:inline>
        </p:input>
        <p:with-param name="param-name" select="'param-value'"/>
        <p:input port="stylesheet">
            <p:inline>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:param name="param-name" required="yes"/>
                    <xsl:template match="/*">
                        <doc value="{$param-name}"/>
                    </xsl:template>
                </xsl:stylesheet>
            </p:inline>
        </p:input>
    </p:xslt>
</p:pipeline>

It gives out "Underlying exception: net.sf.saxon.trans.XPathException: No value supplied for required parameter param-name".

However, if I remove the xmlns="http://example.net/", it gives out the expected <doc value="param-value"/>.

I'm using Calabash 0.9.32, but I suspect that Saxon is the culprit...

Regards
Jostein
Received on Wednesday, 17 August 2011 11:36:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 17 August 2011 11:36:10 GMT