xsl-list
[Top] [All Lists]

Re: [xsl] Basic XSLT 3.0 question about "map"

2013-07-25 16:47:32
There are inconsistencies in the various draft specs about the correct 
namespace URI for map functions. The namespace implemented in Saxon 9.5 is

http://www.w3.org/2005/xpath-functions/map

Michael Kay
Saxonica


On 25 Jul 2013, at 22:12, Costello, Roger L. wrote:

Hi Folks,

I am trying to learn the "map" in XSLT 3.0

I copied the following example straight from the spec:

--------------------------------------------------------------------
<?xml version="1.0"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                           
xmlns:map="http://www.w3.org/2011/xpath-functions/map";
                           version="3.0">

   <xsl:template match="/">
       <xsl:sequence select="map:keys(map{1:='yes', 2:='no'})" />
   </xsl:template>

</xsl:transform>
--------------------------------------------------------------------

When I run it in oXygen 15.0 I get this error:

XPath syntax error at char 0 on line 9 in 
      {map:keys(map{1:='yes', 2:='no'...}: 
Cannot find a matching 1-argument function named      
{http://www.w3.org/2011/xpath-functions/map}keys()

What am I doing wrong please?

/Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>