Thursday 7 May 2020

java file list method in xslt

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:vis="java:java.io.File">
   
   
   
<xsl:template match="/">
       
       
<xsl:variable name="file" select="vis:new('/Users/vis/Practice/XSLT/test/')"/>
       
<xsl:for-each select="vis:list($file)">
           
<xsl:value-of select="."/> <xsl:value-of select="'&#x0A;'"/>
       
</xsl:for-each>
   
</xsl:template>
</xsl:stylesheet>

3 comments:

Pravesh Kumar said...

Superb code..

Pravesh Kumar said...

Nice. .

Pravesh Kumar said...

Useful code for the file list in XSLT,

Superb, Great!!!!