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

Re: String hashing code

Subject: Re: String hashing code
From: Deborah Pickett <debbiep-list-xsl@xxxxxxxxxx>
Date: Sat, 15 Dec 2007 21:29:30 +1100
Re:  String hashing code
Robert Koberg wrote:
> On Sat, 2007-12-15 at 11:31 +1100, Deborah Pickett wrote:
> Just make the path from some root dir the filename (replacing the
> slashes with whatever) and then append generate-id() or position()
> (possibly combined with depth and prev-sibl count). You could create the
> file with a unique extension (*.mathml ?) for easy fileset selection in
> ant. Also your main output can create a list of all the files.

Yeah, that's sort of what I've done.  It's not ideal, because the path
names are very long and likely to break the 255-character limit on path
segment names in the Windows filesystem.  The final n (I picked 30)
characters of the path are probably unique, but I'd feel more confident
if every character in the source filename contributed to the uniqueness.
   Or some other mechanism which doesn't need the source filename to
generate unique-enough-ness.  (Which is where I came in with my original
message.)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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