Document Library Dataview Filter error

I have a document library in which I would like to filter based on a substring
of the file name. Basically, I'm wanting to only show the documents in which
there is a underscore for the fifth letter of the "Name" field.

I created a document library view, opened in SPD and converted it to a data
view.
I clicked on Filter and then checked ADD XSLT filtering and clicked the Edit
button.

I added the following code to the filter:

[substring(/dsQueryResponse/Rows/Row/@FileLeafRef,5,1)='_']

I click Ok and get the following message:
Failed setting processor stylesheet: 0x80004005: Expression must evaluate to a
node set.

Could someone help me with this? I'm not that familiar with doing advanced
coding in a dataview so I'm not sure what I'm doing wrong.

Thanks.

imstac73Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

66866Commented:
try
[substring(@FileRef,5,1)='_']
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
imstac73Author Commented:
That worked!  Thanks so much.
0
66866Commented:
No problemo
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.