Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
11952eae
Commit
11952eae
authored
Dec 18, 2016
by
Esquilax76
Browse files
opale_to_hoc fix issue with external divisions
parent
3016c2e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
opale_to_hdoc/xsl/find_ressources.xsl
View file @
11952eae
...
...
@@ -24,6 +24,8 @@
<copy
file=
"{$link2}/{$name}"
todir=
"output/hdoc/re"
/>
</xsl:template>
<xsl:template
match=
"sp:res[contains(@sc:refUri,'.xml')]"
/>
<xsl:template
match=
"*"
></xsl:template>
</xsl:stylesheet>
\ No newline at end of file
opale_to_hdoc/xsl/opale_to_hdoc_regle1.xsl
View file @
11952eae
...
...
@@ -28,6 +28,16 @@
</xsl:copy>
</xsl:template>
<!-- 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 -->
<xsl:copy>
<!-- 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:copy>
</xsl:template>
<xsl:template
match=
"sp:res[@sc:refUri]"
>
<sp:res
sc:refUri=
"{resolve-uri(@sc:refUri, document-uri(/))}"
>
<xsl:apply-templates/>
...
...
opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl
View file @
11952eae
...
...
@@ -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"
/>
</xsl:template>
</xsl:template>
<!-- content Information : no microformat -->
<xsl:template
match=
"sp:pb/op:pb/sp:info"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment