[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: WML input problem

Subject: Re: Re: WML input problem
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 09 Jul 2002 10:49:39 +0200
wml input format
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.