You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Orit Shchori <or...@ibotsoft.com> on 2001/02/18 17:27:33 UTC

External Function

Hi

1. is there a way to pass more than one argument using external function ?
2. How can i get the source XML Node when using the External Function, for Example

if The xml is

<?xml version="1.0"?>
<doc>
  <area value="397" units="mm"/>
  <now/>
</doc>

and the XSL is

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:external="http://ExternalFunction.xalan-c++.xml.apache.org"
        exclude-result-prefixes="external">

<xsl:template match="/">
<out>
      <xsl:apply-templates/>
</out>
</xsl:template>

<xsl:template match="doc">
<out>
 <xsl:value-of select="external:MappingMetadata(area/@value)"/>
</out>
</xsl:template>

</xsl:stylesheet>

_______

How to get from the execute argument a pointer to the source XalanNode "@value" ?

thank u very much 

orit