I’m getting a similar error to what has been reported in the past.

 

I’m using Oxygen 10.2 with Saxon SA-9.1.0.6.

 

I define a function

<xsl:function name="lib:my_name" as="item()*">

 

There are <xsl:sequence> elements in “when” clauses in the function body, and an <xsl:if test="exists($data)"> that surrounds the ‘meat’ of the function body.

 

If the sequence elements are commented out, I don’t get the "The context item is undefined at this point" error message.  But when they are uncommented, I get the error message.  The “if” may prevent anything at all from being returned, which is what the “item()*” is supposed to allow.

 

Suggestions?

 

http://markmail.org/message/cofdn2kmc5ahj2jz#query:xsl%20function%20The%20context%20item%20is%20undefined%20at%20this%20point+page:1+mid:vlr423tp3ojo2d7p+state:results

 

Thanks, Mike


This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original.