Created
April 18, 2016 17:44
-
-
Save jessgusclark/70be78ee68a206af18f7203ce152eb93 to your computer and use it in GitHub Desktop.
Get Files in Folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- static folder to look for data files: --> | |
<xsl:variable name="data-folder" select="'/pcf/data'" /> | |
<xsl:variable name="data-location" select="concat($ou:root, $ou:site, $data-folder)" /> | |
<!-- Create Sorted Version First, this has to happen here so we can use preceding-sibling later --> | |
<xsl:variable name="sortedcopy"> | |
<xsl:for-each select="doc($data-location)/list/file"> | |
<xsl:sort select="." order="ascending"/> | |
<xsl:copy-of select="."/> | |
</xsl:for-each> | |
</xsl:variable> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment