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.


Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group

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


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:input port="source">
        <p:with-param name="param-name" select="'param-value'"/>
        <p:input port="stylesheet">
                <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}"/>

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...

Received on Wednesday, 17 August 2011 11:36:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:08 UTC