xt : Extension Functions

Subject: xt : Extension Functions
From: Christopher Devenoges <devenoges@xxxxxxxxxxx>
Date: Mon, 13 Dec 1999 02:37:18 +0100
i am using an extension function in xt to replace a ID in a document
generated by a another system. i was formally doing this with a sax
handler, but basically the the whole document remains unchanged except
for one type of tag. it would be nice to do all the processing in the
system in a similar way as this would make things a lot simpler.

i have:
xmlns:post="http://www.jclark.com/xt/java/com.webfair.content.Post";
along with the other namespace declarations.

in a template rule: 
<data>
	<xsl:value-of elect="post:process(//wfdata[@id='articleID'])"/>
</data>
in the stylesheet, and :
<wfdata id='articleID'>12</wfdata>
someplace in the xml document.

Calling the extension works if i use a literal, but not if it is a
variable, parameter or select. can this be done?

regards

chris devenoges
developer - webfair.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread