Re: Can func:function return a xsl:message with nodes inside the xsl:message?
Shaun McCance <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2003-09-30 at 11:17, Christine Li wrote: > > > Hello, > > Could someone help me to verify the right results of the func:function? I > have following code, currently it doesn't work with Xalan. It throws error > that says "misplace literal result in a func:function container" > > <func:function name="my:test"> > <xsl:param name="type"/> > <xsl:choose> > <xsl:when test="$type='B'"> > <func:result select="2"/> > </xsl:when> > <xsl:otherwise> > <xsl:message> > Error > </xsl:message> > </xsl:otherwise> > </xsl:choose> > </func:function> > > <xsl:template match="foo"> > <xsl:value-of select="my:test(@Name)"/> > </xsl:template> This works in the libxslt implementation. You should probably talk to whoever implemented EXSLT functions in Xalan. -- Shaun