|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Diferentiating the last element..
I have a small dtd for definig libraries of functions. This
is an excerpt from a test file:
<function name="setUserId" description="blah here">
<parameter name="$id" description="desc here" datatype="string" />
<parameter name="$value" description="blah blah" datatype="int" />
</function>
What I need to do, is to create skeleton files from the description
of the library. For example (in php):
/**
*blah here
*
*@para $id desc here
*@para $value blah blah
*/
setUserId( $id, $value )
{
}
My problem is i want to print the parameters, and as you might know
the last parameter must not be followed by a comma (",") thus my
need to identificate when I am at the last "parameter" element.
Is this possible, and if so, how ?
thanks in advance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








