<?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="'
'"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<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="'
'"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
3 comments:
Superb code..
Nice. .
Useful code for the file list in XSLT,
Superb, Great!!!!
Post a Comment