Subject: [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:15:58 -0000 |
dir1/*.xml dir2/*.xml with the output being
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" B B B xmlns:xs="http://www.w3.org/2001/XMLSchema" B B B xmlns:h="http://www.w3.org/1999/xhtml" B B B exclude-result-prefixes="xs" B B B version="3.0" B B B expand-text="yes" B B B >
B B B <xsl:template match="/"> B B B B B B B <xsl:for-each select="collection('.?select=*.xml;recurse=yes')"/> B B B B B B B B B B B <xsl:variable name="xml_filenames" select="."/> B B B B B B B B B B B B B B B <xsl:for-each select="$filenames_to_find"> B B B B B B B B B B B B B B B B B B B <xsl:if test="(contains($t, .))"> <xsl:message>{document-uri($xml_filenames)} contains {.}</xsl:message> B B B B B B B B B B B B B B B B B B B </xsl:if> B B B B B B B B B B B B B B B </xsl:for-each> B B B </xsl:template> </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-List Guidelines, Tommie Usdin btusdin | Thread | Re: [xsl] fixing XSL search using v, Graydon graydon@xxxx |
[xsl] XSL-List Guidelines, Tommie Usdin btusdin | Date | Re: [xsl] fixing XSL search using v, Graydon graydon@xxxx |
Month |