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

Re: Generate identifier

Subject: Re: Generate identifier
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Dec 2009 07:55:22 -0800
Re:  Generate identifier
> At 2009-12-29 07:13 -0800, Vladimir Nesterovsky wrote:
> >I need to convert a string into an identifier.
> Does that string include white-space?

Yes. Original function handles this.

> Do your identifiers have to be unique or are you 
> allowed to create the same identifier for two different input strings?

Same identifier for different input is acceptable.

> >Earlier I was using the following function:
> >...
> >Now, I have to build a name with only containing [A-Za-z0-9] only.
> That is very limiting ... the value space for 
> names in XML includes hyphen and underscore, both 
> of which would be handy ... are you sure those two characters are not 

Pretty sure.
cobol-word = [A-Za-z0-9]+ ([\-]+ [A-Za-z0-9]+)*

> I hope this gives you some ideas.

In fact conversation itself gave an idea.
If nothing more, I'll build a transliteration static table, which I'll use 
to make identifiers.

Vladimir Nesterovsky

Current Thread


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.
First Name
Last Name
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.