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
cc729deb
Commit
cc729deb
authored
Dec 17, 2015
by
Ivan D'halluin
Browse files
clean formating
parent
d2da4eb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
optim_to_hdoc/README
View file @
cc729deb
...
...
@@ -13,7 +13,6 @@ Todo list
- resolve bugs
- the level of unit of content for the Opal conversion if basically set to sections witch doesn't contains any section but some could need it to be set to another level. Create a selection of this level could be a next step for this project.
Bugs
----
...
...
optim_to_hdoc/xsl/internalisation.xsl
View file @
cc729deb
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:of=
"scpf.org:office"
xmlns:sp=
"http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:sc=
"http://www.utc.fr/ics/scenari/v3/core"
...
...
@@ -17,8 +17,8 @@
<xsl:apply-templates
select=
"node()|@*"
>
<xsl:with-param
name=
"src"
select=
"$src"
/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"/"
>
<xsl:variable
name=
"src"
><xsl:value-of
select=
"$currentDir"
/>
/
</xsl:variable>
...
...
@@ -26,8 +26,8 @@
<xsl:apply-templates
select=
"node()|@*"
>
<xsl:with-param
name=
"src"
select=
"$src"
/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"sp:main[@sc:refUri]"
priority=
"1"
>
<xsl:param
name=
"src"
/>
...
...
@@ -52,7 +52,7 @@
<xsl:template
match=
"sp:sec[@sc:refUri]"
priority=
"1"
>
<xsl:param
name=
"src"
/>
<xsl:variable
name=
"refUri"
select=
"@sc:refUri"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refUriWithoutLastPart"
>
<xsl:call-template
name=
"removeLastPart"
>
<xsl:with-param
name=
"value"
select=
"$refUri"
/>
...
...
@@ -70,7 +70,7 @@
<xsl:template
match=
"sp:subPage[@sc:refUri]"
priority=
"1"
>
<xsl:param
name=
"src"
/>
<xsl:variable
name=
"refUri"
select=
"@sc:refUri"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refUriWithoutLastPart"
>
<xsl:call-template
name=
"removeLastPart"
>
<xsl:with-param
name=
"value"
select=
"$refUri"
/>
...
...
@@ -88,7 +88,7 @@
<xsl:template
match=
"sp:page[@sc:refUri]"
priority=
"1"
>
<xsl:param
name=
"src"
/>
<xsl:variable
name=
"refUri"
select=
"@sc:refUri"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refUriWithoutLastPart"
>
<xsl:call-template
name=
"removeLastPart"
>
<xsl:with-param
name=
"value"
select=
"$refUri"
/>
...
...
@@ -108,7 +108,7 @@
<xsl:template
match=
"sp:frag"
priority=
"1"
>
<xsl:param
name=
"src"
/>
<xsl:variable
name=
"refUri"
select=
"@sc:refUri"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"totalUri"
>
<xsl:value-of
select=
"concat($src, $refUri)"
/>
</xsl:variable>
...
...
@@ -128,7 +128,6 @@
<xsl:with-param
name=
"src"
select=
"$totalUri"
/>
</xsl:apply-templates>
</xsl:template>
<xsl:template
match=
"sc:uLink[@role='ref' and contains(@sc:refUri, '.section')]"
priority=
"2"
>
<xsl:param
name=
"src"
/>
...
...
@@ -191,7 +190,7 @@
<xsl:template
match=
"sp:gallery[@sc:refUri]"
>
<xsl:param
name=
"src"
/>
<xsl:variable
name=
"refUri"
select=
"@sc:refUri"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refDoc"
select=
"document($refUri)"
/>
<xsl:variable
name=
"refUriWithoutLastPart"
>
<xsl:call-template
name=
"removeLastPart"
>
<xsl:with-param
name=
"value"
select=
"$refUri"
/>
...
...
@@ -239,8 +238,8 @@
<xsl:apply-templates
select=
"node()|@*"
>
<xsl:with-param
name=
"src"
select=
"$src"
/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<!--Retracer le bon lien pour tous les refUri...-->
...
...
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