This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: WML input problem
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 09 Jul 2002 10:49:39 +0200
- Subject: Re: [xsl] Re: WML input problem
- References: <20020709065815.4811.qmail@webmail23.rediffmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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