---- <[EMAIL PROTECTED]> ----
> I've drafted this much but I've no confidence its even close:
> <xsl:template match="page">
> <xsl:value-of select="java:addPage(
> <xsl:param>page</xsl:param>,
> <xsl:value-of select="@ident"/>,
> <xsl:apply-templates select="*"/>)"/>
> </xsl:template>

Um, I'm a little confused by the question in general, but here's a tip:
Nope, this section is not even close.  8-)

You can't 'pass' xsl: elements to the addPage extension function call -
you have to pass in literals or variables or xpath functions that
return the data you want there.  And I'm not sure what you intend by
trying to pass the apply-templates to your extension either, that
probably doesn't make sense.

Something like this is closer; look over the existing Xalan extensions
for more ideas or we need an extensions expert for more help.  (Note
I'm just making up the syntax, it may not be in the order or the values
you want)

<xsl:param name="task"></xsl:param>

...

<xsl:template match="page">
  <xsl:value-of 
    select="java:addPage($task, @ident, string(@ident)" />
  <xsl:apply-templates select="*"/>
</xsl:template>

- Shane

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

Reply via email to