[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:function problem

Subject: xsl:function problem
From: "Ilya Sterin" <sterini@xxxxxxxxx>
Date: Sun, 13 May 2007 14:23:19 -0400
 xsl:function problem
I'm using a very simple function and transforming through oxygen
configured to use Saxon8B.

The function seems to be ok when no parameters are required, but seems
to ignore xsl:param when added?

Here is an example...

<xsl:function name="p2f:lookupNameFor">
       <xsl:param name="formOID" as="xs:string"/>
       <xsl:value-of
select="tokenize(//ItemGroupDef[OID=$formOID]/@Name, '::')"/>
</xsl:function>


Then when the function is called without any params the xslt validates fine...


<xsl:variable name="identifiers"><xsl:value-of
select="p2f:lookupNameFor('test')"/></xsl:variable>

and the following throws an error...

<xsl:variable name="identifiers"><xsl:value-of
select="p2f:lookupNameFor('test')"/></xsl:variable>

F [Saxon8B] XPath syntax error at char 30 on line 23 in
{p2f:lookupPrismNameFor('test')}:
   Cannot find a matching 1-argument function named
{http://www.nextrials.com/ns/prism2flex/v1.0}lookupNameFor()

The p2f namespace prefix is declared correctly.


Am I doing something wrong?


Ilya

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.