XML, XSLT and generating ID's

Discussion in 'XML' started by rob.guitar.rob@gmail.com, Jul 29, 2005.

  1. Guest

    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.
    , Jul 29, 2005
    #1
    1. Advertising

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

    David
    David Carlisle, Jul 29, 2005
    #2
    1. Advertising

  3. Guest

    Thanks! Got it woking now. Cheers, Rob
    , Jul 29, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stylus Studio
    Replies:
    0
    Views:
    640
    Stylus Studio
    Aug 3, 2004
  2. Brent
    Replies:
    3
    Views:
    758
    Peter Flynn
    Mar 22, 2005
  3. Replies:
    6
    Views:
    3,383
    jon001
    Nov 7, 2011
  4. Replies:
    4
    Views:
    659
  5. jkflens
    Replies:
    2
    Views:
    1,449
    jkflens
    May 30, 2006
Loading...

Share This Page