xslt/xpath string manipulation

Discussion in 'Software' started by juanita_guiterrez, Jul 29, 2006.

  1. juanita_guiterrez

    juanita_guiterrez

    Joined:
    Jul 29, 2006
    Messages:
    1
    An xslt variable has the following format: "ab.cd.ef.MyTypeName"

    I need to insert a constant substring "ZZZ" just before "MyTypeName" so that it has the following format: "ab.cd.ef.ZZZ.MyTypeName"

    What precedes "MyTypeName" is completely arbitrary, but there is never anything after MyTypeName.

    I had looked at one of the XML books, where they used a "fibonacci example" to perform recursive manipulations. I was wondering if there was an easier way of performing this conversion.

    Any help would be appreciated.

    by the way, I don't believe I'm using the new XPATH 2, although I'm not really sure so I can't use those extended string facilities.

    Juanita
    juanita_guiterrez, Jul 29, 2006
    #1
    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. cameron

    XSLT programming

    cameron, Jan 4, 2004, in forum: Firefox
    Replies:
    0
    Views:
    511
    cameron
    Jan 4, 2004
  2. arumahi
    Replies:
    0
    Views:
    1,036
    arumahi
    Sep 3, 2007
  3. newasp.net
    Replies:
    1
    Views:
    1,599
    imransyed63
    Aug 21, 2008
  4. airwalker

    XPath problem

    airwalker, Jun 28, 2006, in forum: MCAD
    Replies:
    4
    Views:
    543
    Cerebrus
    Jun 29, 2006
  5. sandhya

    XPath expression in PERL

    sandhya, Mar 27, 2010, in forum: Software
    Replies:
    0
    Views:
    1,319
    sandhya
    Mar 27, 2010
Loading...

Share This Page