bijib06 0 Newbie Poster

Hello out there!
Can anyone help me with a hint of how to solve this problem:
I have a text file and I want to count the frequency of each stopword in the file. I have an XML file stopwords.xml against which I check for stopwords. My code is working fine but if I use <xsl:key> to speed up the search, I encounter the following problem: [Cannot call the key() function when the context item is an atomic value]. In summary, I have 3 files:
1. unformattedText.txt
2. stopwords.xml
3. stopwords.xsl

If there is the need, I can send the files. Thank you in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.