Re: [xsl] Re: WML input problem

Subject: Re: [xsl] Re: WML input problem
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 09 Jul 2002 10:49:39 +0200
There is a second possibility for Muenchian Method.

Instead of

"generate-id() = generate-id(key('radios', @name))"

write

"count( . | key('radios', @name)[1] ) = 1"

It works in the same way. The statement is only true if the count of . (the current node) "united" with the first node of the group is 1.

Otherwise you have to use the preceding-sibling-axis, which is less efficient in general.

Regards,

Joerg

ashu t wrote:
thanks a lot that code must have run on your machine .
but it is not running on my machine the reason could be that i am using sablotron processor of php for transformation and i found this in the documentation of sablotron at
http://www.gingerall.com/charlie/ga/act/gadoc.act?pg=sablot
*
5.16 Built-in functions
There is only one function from the standard function library which remains unimplemented:


id() (need for a DTD or schema),
Functions key() and format-number() are available since the 0.70.

As for the implemented fuctions, the following is a list of differences from the spec:

document() only accepts one argument, always getting the base URI from the stylesheet URI.
generate-id() might fail to generate unique identifiers when several input documents are present (giving the same id to nodes from different documents). *


i think generate-id () is the reason it is not working.
then how can i do it with sablotron i can not change the processor.is there any way to do that?
ashu


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


Current Thread