Re: [xsl] fixing XSL search using values from a variable against multiple XML files

Subject: Re: [xsl] fixing XSL search using values from a variable against multiple XML files
From: "Dave Lang emaildavelang@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Oct 2018 01:42:14 -0000
Thanks for your reply, Graydon. I don't need to worry about not finding anything right now - the rest of the xsl is working - it's this part that is causing problems.

I know (I think) that it's missing a </xsl:for-each> but for some reason Oxygen won't accept another one. Also the if test references a variable that isn't declared but I'm not sure what's going on with the search so I don't know what to put there.

cheers

<xsl:template match="/">
B B B <xsl:for-each select="collection('.?select=*.xml;recurse=yes')"/>
B B B <xsl:variable name="xml_filenames" select="."/>
B B B B B B <xsl:for-each select="$filenames_to_find">
B B B B B B B B B <xsl:if test="(contains($t, .))">
B B B B B B B B B B B B <xsl:message>{document-uri($xml_filenames)} contains {.}</xsl:message>
B B B B B B B B B </xsl:if>
B B B B B B </xsl:for-each>
</xsl:template>


Current Thread