Commit 9a9bb779 authored by anp's avatar anp

debug syntaxe compatible multi-os (result-document/@href nécessite une syntaxe...

debug syntaxe compatible multi-os (result-document/@href nécessite une syntaxe URL... et cette syntaxe différe, pour un fichier sur le fileSystem, en tre lin et mac)
parent 121a410a
......@@ -9,15 +9,15 @@ Jun 14, 2015
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:op="utc.fr:ics/opale3" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<xsl:param name="pOutputPath">/tmp</xsl:param>
<xsl:param name="pOutputUrl">file:///tmp</xsl:param>
<xsl:template match="bib">
<xsl:apply-templates select="ref"/>
<message>Output set to <xsl:value-of select="$pOutputPath"/></message>
<message>Output set to <xsl:value-of select="$pOutputUrl"/></message>
</xsl:template>
<xsl:template match="ref">
<xsl:result-document href="file://{$pOutputPath}/{ref-id}.ref" encoding="UTF-8" method="xml" >
<xsl:result-document href="{$pOutputUrl}/{ref-id}.ref" encoding="UTF-8" method="xml" >
<sc:item>
<op:bib>
<op:bibM>
......
......@@ -9,7 +9,7 @@ Aug 31, 2015
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:of="scpf.org:office" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<xsl:param name="pOutputPath">/tmp</xsl:param>
<xsl:param name="pOutputUrl">file:///tmp</xsl:param>
<xsl:template name="section">
<xsl:param name="title"/>
......@@ -99,7 +99,7 @@ Aug 31, 2015
</xsl:template>
<xsl:template match="ref">
<xsl:result-document href="file://{$pOutputPath}/{ref-id}.fragment" encoding="UTF-8" method="xml" >
<xsl:result-document href="{$pOutputUrl}/{ref-id}.fragment" encoding="UTF-8" method="xml" >
<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<of:fragment xmlns:of="scpf.org:office" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:info>
......
......@@ -9,15 +9,15 @@ Sep 03, 2015
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:of="scpf.org:office" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<xsl:param name="pOutputPath">/tmp</xsl:param>
<xsl:param name="pOutputUrl">file:///tmp</xsl:param>
<xsl:template match="bib">
<xsl:apply-templates select="ref"/>
<message>Output set to <xsl:value-of select="$pOutputPath"/></message>
<message>Output set to <xsl:value-of select="$pOutputUrl"/></message>
</xsl:template>
<xsl:template match="ref">
<xsl:result-document href="file://{$pOutputPath}/{ref-id}.refs" encoding="UTF-8" method="xml" >
<xsl:result-document href="{$pOutputUrl}/{ref-id}.refs" encoding="UTF-8" method="xml" >
<sc:item>
<of:def>
<of:defM>
......
......@@ -25,16 +25,17 @@ Aug 31, 2015
<xslt classpath="${lib}/saxon9he.jar" basedir="${in}" includes="*.xml" destdir="${tmp}" extension=".xml" style="${xsl}/zoterotei2scbib.xsl"/>
<makeurl file="${out}" property="out.url"/>
<xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${log}/optim1" extension=".xml" style="${xsl}/scbib2optim.xsl" failonerror="false">
<param name="pOutputPath" expression="${out}/zotero-optim-1"/>
<param name="pOutputUrl" expression="${out.url}/zotero-optim-1"/>
</xslt>
<xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${out}/zotero-optim-2" extension=".section" style="${xsl}/scbib2optim-fragment.xsl" failonerror="false">
<param name="pOutputPath" expression="${out}/zotero-optim-2/co"/>
<param name="pOutputUrl" expression="${out.url}/zotero-optim-2/co"/>
</xslt>
<xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${log}/opale" extension=".xml" style="${xsl}/scbib2opale.xsl" failonerror="false">
<param name="pOutputPath" expression="${out}/zotero-opale"/>
<param name="pOutputUrl" expression="${out.url}/zotero-opale"/>
</xslt>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment