Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hdoc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Stephane Crozat
hdoc
Commits
df09e3ff
Commit
df09e3ff
authored
Dec 21, 2015
by
Drain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Opale2Optim] Improved the result.hdoc validity
parent
a1e574cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
opale_to_hdoc/input/sample.scar
opale_to_hdoc/input/sample.scar
+0
-0
opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl
opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl
+19
-2
No files found.
opale_to_hdoc/input/sample.scar
View file @
df09e3ff
No preview for this file type
opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl
View file @
df09e3ff
...
...
@@ -12,6 +12,10 @@
xmlns:sp=
"http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:op=
"utc.fr:ics/opale3"
>
<xsl:template
match=
"sc:item"
>
<xsl:apply-templates/>
</xsl:template>
<!-- MODULE -->
<xsl:template
match=
"op:ue"
>
...
...
@@ -109,7 +113,11 @@
</header>
<!-- currently : grain & introduction & conclusion -->
<xsl:apply-templates
select=
"./op:courseUa/child::*[name() != 'op:uM'][name() != 'sp:quest']"
/>
<!-- <xsl:apply-templates select="./op:courseUa/child::*[name() != 'op:uM'][name() != 'sp:quest']"/>-->
<xsl:apply-templates
select=
"./op:courseUa/sp:courseUc"
/>
<xsl:apply-templates
select=
"./op:courseUa/sp:intro"
/>
<xsl:apply-templates
select=
"./op:courseUa/sp:conclu"
/>
<xsl:apply-templates
select=
"./op:courseUa/sp:obj"
/>
<!-- overview questions : regroup questions into a section-->
<xsl:if
test=
"./op:courseUa/sp:quest"
>
...
...
@@ -140,7 +148,8 @@
</header>
<!-- call for blocs and parts -->
<xsl:apply-templates
select=
"./op:expUc/child::*[name() != 'op:uM']"
/>
<!-- <xsl:apply-templates select="./op:expUc/child::*[name() != 'op:uM']"/>-->
<xsl:apply-templates
select=
"./op:expUc/sp:pb/op:pb/*"
/>
<footer>
<xsl:apply-templates
select=
"./op:expUc/op:uM/sp:info/op:info/sp:keywds"
/>
...
...
@@ -186,6 +195,12 @@
</section>
</xsl:template>
<xsl:template
match=
"sp:filtered"
>
<xsl:if
test=
"op:filter/sp:exclude/text() = 'short'"
>
<xsl:apply-templates
select=
"./op:res/*"
/>
</xsl:if>
</xsl:template>
<!-- Overview questions (fr : question de synthèse) -->
<xsl:template
match=
"sp:quest"
>
<xsl:apply-templates
select=
"./op:txt/*"
/>
...
...
@@ -437,4 +452,6 @@
</p>
</xsl:template>
<xsl:template
match=
"*"
></xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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