I have been poring over the following for ages now and just can't find out what is going wrong.
Thus, another set of XML-savvy eyes would be greatly appreciated!
This is a relevant snippet of the XML that I want to transform via XSLT:
I want to select the content of the <string> following <key>'s with "plainText" as content,
<string>The text I'm trying to select.</string>
but only in <dict>'s where the string following key='source' is "Your description".
I've set the XSL up like this:
While I do get the content of the string I want with this, the string "Your Description" is also appended to it in my resulting XML, like so:
<!-- data is contained in an array: applies to synopses -->
<!-- only import own synopses -->
<xsl:if test="following-sibling::array/dict/key['source']/following-sibling::string/text()='Your Description'">
But I have NO idea how that "Your Description" is getting pulled in?
<synopsis>The text I'm trying to select. Your Description</synopsis>
It is as if the last string is being ignored??
Thanks for any pointers here,