Commit 11952eae authored by Esquilax76's avatar Esquilax76
Browse files

opale_to_hoc fix issue with external divisions

parent 3016c2e3
......@@ -24,6 +24,8 @@
<copy file="{$link2}/{$name}" todir="output/hdoc/re"/>
<xsl:template match="sp:res[contains(@sc:refUri,'.xml')]"/>
<xsl:template match="*"></xsl:template>
\ No newline at end of file
......@@ -28,6 +28,16 @@
<!-- cas d'une division (avec contenu externe) -->
<xsl:template match="op:ue/sp:div[@sc:refUri] | op:ueDiv/sp:div[@sc:refUri]">
<!-- se copie soit même -->
<!-- avec comme contenu ce qui se trouve dans la balise sc:item du fichier distant -->
<xsl:apply-templates select="document(./@sc:refUri)/sc:item/*"/>
<xsl:template match="sp:res[@sc:refUri]">
<sp:res sc:refUri="{resolve-uri(@sc:refUri, document-uri(/))}">
......@@ -265,7 +265,7 @@
<xsl:template match="sp:res[op:resInfoM/sp:index/text() = 'tab']">
<xsl:variable name="name" select="tokenize(@sc:refUri, '/')[last()]"/>
<object data="re/{$name}" type="application/vnd.oasis.opendocument.spreadsheet"/>
<!-- content Information : no microformat -->
<xsl:template match="sp:pb/op:pb/sp:info">
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