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
c0f99887
Commit
c0f99887
authored
Jan 01, 2017
by
Neveux Anais
Browse files
Add method and remind on hdoc_to_opale and hdoc schemas, add remind and method on canoprof_to_opale
parent
8cc8cc2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
canoprof_to_hdoc/xsl/programmation.xsl
View file @
c0f99887
...
...
@@ -299,12 +299,18 @@
<!-- Gestion methode -->
<xsl:template
match=
"sp:method"
>
<!-- TODO -->
<div
data-hdoc-type=
'method'
>
<h6><xsl:value-of
select=
"cp:block/cp:blockM/sp:title"
/></h6>
<xsl:apply-templates
select=
"cp:block/sp:body/cp:flow/sp:txt/cp:txt//sc:para"
/>
</div>
</xsl:template>
<!-- Gestion rappel -->
<xsl:template
match=
"sp:reminder"
>
<!-- TODO -->
<div
data-hdoc-type=
'remind'
>
<h6><xsl:value-of
select=
"cp:block/cp:blockM/sp:title"
/></h6>
<xsl:apply-templates
select=
"cp:block/sp:body/cp:flow/sp:txt/cp:txt//sc:para"
/>
</div>
</xsl:template>
<!-- ******** FIN ACTIVITE TETM ********** -->
...
...
canoprof_to_opale/sample/Rappel_Methode.scar
0 → 100644
View file @
c0f99887
File added
hdoc_to_opale/xsl/transformation2.xsl
View file @
c0f99887
...
...
@@ -382,6 +382,34 @@
</op:res>
</sp:adv>
</xsl:when>
<xsl:when
test=
"./@data-hdoc-type = 'method'"
>
<sp:meth>
<op:pbTi>
<xsl:if
test=
"string-length(./h:h6/text()) > 0"
>
<sp:title>
<xsl:value-of
select=
"./h:h6"
/>
</sp:title>
</xsl:if>
</op:pbTi>
<op:res>
<xsl:apply-templates
select=
"./*"
/>
</op:res>
</sp:meth>
</xsl:when>
<xsl:when
test=
"./@data-hdoc-type = 'remind'"
>
<sp:remind>
<op:pbTi>
<xsl:if
test=
"string-length(./h:h6/text()) > 0"
>
<sp:title>
<xsl:value-of
select=
"./h:h6"
/>
</sp:title>
</xsl:if>
</op:pbTi>
<op:res>
<xsl:apply-templates
select=
"./*"
/>
</op:res>
</sp:remind>
</xsl:when>
<xsl:otherwise>
<sp:info>
<op:pbTi>
...
...
schemas/xhtml/type.rng
View file @
c0f99887
...
...
@@ -46,6 +46,8 @@
<value>
remark
</value>
<value>
warning
</value>
<value>
advice
</value>
<value>
remind
</value>
<value>
method
</value>
<!-- quiz management -->
<value>
question
</value>
<value>
singlechoicequestion
</value>
...
...
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