Skip to content

Commit

Permalink
add parameter in order to direct output to a particular place
Browse files Browse the repository at this point in the history
  • Loading branch information
paregorios committed Feb 16, 2017
1 parent 28bf11b commit a911d48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion splitentries.xsl
Expand Up @@ -5,6 +5,7 @@
exclude-result-prefixes="#all"
version="2.0">

<xsl:param name="where">../posts</xsl:param>
<xsl:output encoding="UTF-8" indent="yes" media-type="application/atom+xml" method="xml" name="atom" exclude-result-prefixes="atom" cdata-section-elements="atom:content"/>

<xsl:template match="/">
Expand All @@ -23,7 +24,7 @@
<xsl:text>post-</xsl:text>
<xsl:value-of select="$fid"/>
</xsl:variable>
<xsl:result-document format="atom" href="posts/{$fpath}/{$fn}-atom.xml">
<xsl:result-document format="atom" href="{$where}/{$fpath}/{$fn}-atom.xml">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
Expand Down

0 comments on commit a911d48

Please sign in to comment.