thanks!
I did stumble upon something similar.
I did have to reinstall the dev tools to get the SourceCode.mdimporter package, and, the installer didn't even put it in an active place, but put it inside /Developer/Applications/Xcode.app/Contents/Library/Spotlight/
So...
1.) I moved it to Leopard's place for these /System/Library/Spotlight/
2.) Checked the meta-data properties of my .xsl files using % mdls filename.xsl (I use Oxygen and all files are associated with it)
-- you use this string: kMDItemContentType = "com.panic.coda.source-files" funny it's associated with Coda but whatever...
3.) Edit the midimporter file's Info.plist and add it to the Document types: Item 1: Document Content Type UTIs list of strings...
4.) THEN run mdimport -r /System/Library/Spotlight/SourceCode.mdimporter ... which does in fact initiate some activity with the process "mds" which is in fact the indexer.
Sigh. It worked for some files, so now searching for "parent::" includes some php files but not my xsl files. I'm adding the "public.plain-text" string from the metadata report and re-running.
Quote
kMDItemContentType = "com.panic.coda.source-files"
kMDItemContentTypeTree = (
"com.panic.coda.source-files",
"public.plain-text",
"public.text",
"public.data",
"public.item",
"public.content"
)