XML, XSLT and generating ID's

R

rob.guitar.rob

Hello,

I need to generate unique numeric identifiers for XML file nodes. I
tried the generate-id() function but it does not genereate numeric
codes (gives me strings of letters). Unfortunately the XML files are
being used by a 3rd party software that must have them as numbers.

Does anyone know of a way to generate unique numeric id's? Tried the
position() funciton as well, but cannot get that to work for the whole
document as the numbers are related to the query return.

Thanks for any help, Rob.
 
D

David Carlisle

<xsl:attribute name="x"><xsl:number level="any" count="*"/></xsl:attribute>

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top