Skip to content
GitLab
Menu
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
919b5655
Commit
919b5655
authored
Dec 17, 2015
by
Zangdar1111
Browse files
del anciens xsl
parent
89f9f767
Changes
3
Hide whitespace changes
Inline
Side-by-side
mindmapping_to_hdoc/xslt/div.xsl
deleted
100755 → 0
View file @
89f9f767
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"2.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xpath-default-namespace=
"http://www.utc.fr/ics/hdoc/xhtml"
xmlns=
"http://www.utc.fr/ics/hdoc/xhtml"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<xsl:template
match=
"map"
>
<xsl:processing-instruction
name=
"oxygen"
>
RNGSchema="http://scenari.utc.fr/hdoc/schemas/xhtml/hdoc1-xhtml.rng" type="xml"
</xsl:processing-instruction>
<html>
<head>
<xsl:apply-templates
mode=
"header"
></xsl:apply-templates>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template
match=
"node[1]"
mode=
"header"
>
<title><xsl:value-of
select=
"@TEXT"
/></title>
<meta
charset=
"utf-8"
/>
<meta
name=
"author"
content=
""
/>
</xsl:template>
<xsl:template
match=
"node"
>
<xsl:element
name=
"section"
>
<header>
<h1>
<xsl:value-of
select=
"@TEXT"
/>
</h1>
</header>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template
match=
"node[not(node) and (preceding-sibling::node/node or following-sibling::node/node)]"
priority=
"5"
>
<xsl:element
name=
"section"
>
<xsl:attribute
name=
"data-hdoc-type"
>
unit-of-content
</xsl:attribute>
<xsl:element
name=
"header"
>
<xsl:element
name=
"h1"
><xsl:value-of
select=
"@TEXT"
/></xsl:element>
</xsl:element>
<xsl:element
name=
"div"
>
<xsl:element
name=
"h6"
>
<xsl:value-of
select=
"@TEXT"
/>
</xsl:element>
<p></p>
<xsl:apply-templates/>
</xsl:element>
</xsl:element>
</xsl:template>
<xsl:template
match=
"node[not(node)]"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"h6"
>
<xsl:value-of
select=
"@TEXT"
/>
</xsl:element>
<p>
</p>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template
match=
"richcontent"
/>
</xsl:stylesheet>
mindmapping_to_hdoc/xslt/makeContainer.xsl
deleted
100755 → 0
View file @
89f9f767
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"1.0"
xmlns=
"urn:utc.fr:ics:hdoc:container"
>
<xsl:template
match=
"*"
>
<xsl:processing-instruction
name=
"oxygen"
>
RNGSchema="http://scenari.utc.fr/hdoc/schemas/container/hdoc1-container.rng" type="xml"
</xsl:processing-instruction>
<xsl:element
name=
"container"
>
<xsl:attribute
name=
"version"
>
1.0
</xsl:attribute>
<rootfiles>
<rootfile
full-path=
"content.xml"
media-type=
"text/xml"
/>
</rootfiles>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
mindmapping_to_hdoc/xslt/threeLevel.xsl
deleted
100755 → 0
View file @
89f9f767
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"2.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xpath-default-namespace=
"http://www.utc.fr/ics/hdoc/xhtml"
xmlns=
"http://www.utc.fr/ics/hdoc/xhtml"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<xsl:template
match=
"map"
>
<xsl:processing-instruction
name=
"oxygen"
>
RNGSchema="http://scenari.utc.fr/hdoc/schemas/xhtml/hdoc1-xhtml.rng" type="xml"
</xsl:processing-instruction>
<html>
<head>
<xsl:apply-templates
mode=
"header"
></xsl:apply-templates>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template
match=
"node[1]"
mode=
"header"
>
<title><xsl:value-of
select=
"@TEXT"
/></title>
<meta
charset=
"utf-8"
/>
<meta
name=
"author"
content=
""
/>
</xsl:template>
<xsl:template
match=
"node"
>
<xsl:element
name=
"section"
>
<xsl:element
name=
"header"
>
<xsl:element
name=
"h1"
>
<xsl:value-of
select=
"@TEXT"
/>
</xsl:element>
</xsl:element>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template
match=
"node[not(node/node/node)]"
>
<xsl:element
name=
"section"
>
<xsl:attribute
name=
"data-hdoc-type"
>
unit-of-content
</xsl:attribute>
<xsl:element
name=
"header"
>
<xsl:element
name=
"h1"
>
<xsl:value-of
select=
"@TEXT"
/>
</xsl:element>
</xsl:element>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template
match=
"node[not(node/node)] | node[not(node)]"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"h6"
>
<xsl:value-of
select=
"@TEXT"
/>
</xsl:element>
<p/>
</xsl:element>
<xsl:apply-templates/>
</xsl:template>
<xsl:template
match=
"node[not(node/node) and (preceding-sibling::node/node/node or following-sibling::node/node/node)]"
priority=
"5"
>
<xsl:element
name=
"section"
>
<xsl:attribute
name=
"data-hdoc-type"
>
unit-of-content
</xsl:attribute>
<xsl:element
name=
"header"
>
<xsl:element
name=
"h1"
><xsl:value-of
select=
"@TEXT"
/></xsl:element>
</xsl:element>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template
match=
"richcontent"
/>
</xsl:stylesheet>
Write
Preview
Supports
Markdown
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