Commit 2a1bbfc7 authored by lhommeni's avatar lhommeni

Separation de wikipedia_to_hdoc (faisant wikipedia_to_opale) en...

Separation de wikipedia_to_hdoc (faisant wikipedia_to_opale) en wikipedia_to_hdoc et wikipedia_to_opale
parent 704bcd3c
......@@ -5,12 +5,14 @@
>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:param name="filename"/>
<!-- This template matches the root and create a ANT project, the root of any ANT buildfile. -->
<xsl:template match="h:html">
<project name="moveRessourceFiles" basedir="." default="moveRessourceFiles">
<property file="global.properties"/>
<property name="filename" location="${filename}"/>
<property name="filename" location="{$filename}"/>
<target name="moveRessourceFiles">
<xsl:apply-templates select="./*"/>
</target>
......
......@@ -37,7 +37,9 @@
out="${{tmp}}/${{filename}}/decompressedOpale/main.xml"
style="${{xsl}}/transformation2.xsl"
processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"
/>
>
<param name="filename" expression="${{tmp}}/${{filename}}"/>
</xslt>
<chmod file="${{tmp}}/${{filename}}/decompressedOpale/main.xml" perm="777"/>
<!-- Finding references and converting them -->
......
......@@ -11,6 +11,8 @@
>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:param name="filename"/>
<!-- This template matches the root. One hdoc file = one Opale's "Module" -->
<xsl:template match="h:html">
<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
......@@ -577,15 +579,13 @@
</xsl:template>
<!-- Listing Informatique-->
<xsl:param name="text-encoding" as="xs:string" select="'iso-8859-1'"/>
<xsl:param name="text-uri" as="xs:string" select="res/listing/listing1.txt"/>
<xsl:template match="h:object[@type='application/pdf']" priority="1">
<sp:listing>
<xsl:copy-of select="document(fn:concat('../tmp/decompressedHdoc/',@data))/sc:item/op:code"/>
<xsl:copy-of select="document(fn:concat($filename,'/decompressedHdoc/',@data))/sc:item/op:code"/>
</sp:listing>
</xsl:template>
<xsl:template match="h:section[h:div[@data-hdoc-type = 'question']]">
<!-- Selecting the first question -->
<sp:trainUcMcqMur>
......
......@@ -4,7 +4,7 @@
<!-- input path -->
<property name="in" value="${basedir}/input"/>
<!-- inputFile is the only required parameter to run the script -->
<property name="inputFile" value="${inputFile}/source.xml"/>
<property name="inputFile" value="${in}/source.xml"/>
<basename property="filename" file="${inputFile}" suffix=".xml"/>
......@@ -20,11 +20,11 @@
<!-- Main target -->
<target name="main">
<antcall target="clean"/>
<antcall target="prepare"/>
<antcall target="prepareHdocStructure"/>
<antcall target="transformWikiToHdoc"/>
<antcall target="zip"/>
<antcall target="clean"/>
</target>
<target name="prepare">
......@@ -33,7 +33,7 @@
<mkdir dir="${hdocResultPath}"/>
<!-- Making tmp xml wikipedia file without some elements which are not useful -->
<xslt classpath="lib/saxon9he.jar" in="input/${inputFile}" out="${tmpFolderPath}/${filename}_prepared.xml" style="${xsltFolderPath}/prepare_wiki_to_hdoc.xsl">
<xslt classpath="lib/saxon9he.jar" in="${inputFile}" out="${tmpFolderPath}/${filename}_prepared.xml" style="${xsltFolderPath}/prepare_wiki_to_hdoc.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
......
<?xml version="1.0" encoding="UTF-8"?>
<project name="wikiToHdoc" default="main" basedir=".">
<project name="wikiToHdoc" default="main" basedir="..">
<!-- wikipediaUrl and destination are the only required parameters -->
<property name="wikipediaUrl" value=""/>
......@@ -14,15 +14,15 @@
<property name="xsltFolderPath" value="${basedir}/xslt"/>
<property name="hdocResultPath" value="${resultFolderPath}/${filename}"/>
<!--<property name="inputFile" value="${hdocResultPath}/${filename}.xml"/>-->
<property name="inputFile" value="${in}/${filename}.xml"/>
<property name="inputFile" value="${filename}.xml"/>
<!-- Main target -->
<target name="main">
<antcall target="clean"/>
<antcall target="prepare"/>
<antcall target="prepareHdocStructure"/>
<antcall target="transformWikiToHdoc"/>
<antcall target="zip"/>
<antcall target="clean"/>
</target>
<target name="prepare">
......@@ -38,10 +38,10 @@
<loadresource encoding="UTF-8" property="myURL">
<url url="${wikipediaUrl}"/>
</loadresource>
<echo file="${inputFile}" encoding="UTF-8">${myURL}</echo>
<echo file="${in}/${inputFile}" encoding="UTF-8">${myURL}</echo>
<!-- Making tmp xml wikipedia file without some elements which are not useful -->
<xslt classpath="lib/saxon9he.jar" in="${inputFile}" out="${tmpFolderPath}/${filename}_prepared.xml" style="${xsltFolderPath}/prepare_wiki_to_hdoc.xsl">
<xslt classpath="lib/saxon9he.jar" in="${in}/${inputFile}" out="${tmpFolderPath}/${filename}_prepared.xml" style="${xsltFolderPath}/prepare_wiki_to_hdoc.xsl">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
......
<?xml version="1.0" encoding="UTF-8"?>
<project name="wikiToOpale" default="main" basedir="..">
<!-- inputFile is the only required parameter to run the script -->
<property name="inputFile" value="source.xml"/>
<!-- Name of the output file -->
<basename property="filename" file="${inputFile}" suffix=".xml"/>
<!-- Folder paths -->
<!-- tmp paths (removed at the end of the process) -->
<property name="tmpFolderPath" value="${basedir}/tmp"/>
<property name="tmpHdocResultFolderPath" value="${tmpFolderPath}/hdoc"/>
<!-- ant and xslt paths -->
<property name="resultFolderPath" value="${basedir}/result"/>
<property name="antFolderPath" value="${basedir}/ant"/>
<property name="xsltFolderPath" value="${basedir}/xslt"/>
<!-- result path -->
<property name="hdocResultPath" value="${resultFolderPath}/${filename}"/>
<target name="main">
<!-- First: wiki to Hdoc -->
<ant antfile="${antFolderPath}/wiki_to_hdoc.ant"/>
<!-- Then hdoc to opale (important to set the new basedir in order to make it work) -->
<ant antfile="${basedir}/hdoc_to_opale/myantce.ant" dir="${basedir}/hdoc_to_opale">
<property name="in" value="${hdocResultPath}"/>
<property name="out" value="${hdocResultPath}"/>
</ant>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project name="wikiToOpale" default="main" basedir="..">
<!-- wikipediaUrl and destination are the only required parameters -->
<property name="wikipediaUrl" value=""/>
<property name="filename" value=""/>
<!-- Folder paths -->
<!-- tmp paths (removed at the end of the process) -->
<property name="tmpFolderPath" value="${basedir}/tmp"/>
<property name="tmpHdocResultFolderPath" value="${tmpFolderPath}/hdoc"/>
<!-- ant and xslt paths -->
<property name="resultFolderPath" value="${basedir}/result"/>
<property name="antFolderPath" value="${basedir}/ant"/>
<property name="xsltFolderPath" value="${basedir}/xslt"/>
<!-- result path -->
<property name="hdocResultPath" value="${resultFolderPath}/${filename}"/>
<target name="main">
<!-- First: wiki to Hdoc -->
<ant antfile="${antFolderPath}/wiki_to_hdoc_fetcher.ant"/>
<!-- Then hdoc to opale (important to set the new basedir in order to make it work) -->
<ant antfile="${basedir}/hdoc_to_opale/myantce.ant" dir="${basedir}/hdoc_to_opale">
<property name="in" value="${hdocResultPath}"/>
<property name="out" value="${hdocResultPath}"/>
</ant>
</target>
</project>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://www.utc.fr/ics/hdoc/xhtml">
<a:documentation>Last update : 2014-12-04</a:documentation>
<a:documentation>Changes since last update :
In order to manage quiz :
- Adding multiple-choice-question and fill-in-the-blank to section
- Adding question, choice-correct, choice-uncorrect and explanation to div
- Adding blank to span
- Externalizing ObjectType and VideoType from main schema
</a:documentation>
<!-- Type Microdata -->
<define name="SectionType">
<optional>
<attribute name="data-hdoc-type">
<choice>
<value>introduction</value>
<value>conclusion</value>
<value>unit-of-content</value>
<value>multiple-choice-question</value>
<value>fill-in-the-blank</value>
</choice>
</attribute>
</optional>
</define>
<define name="DivType">
<optional>
<attribute name="data-hdoc-type">
<choice>
<!-- block management -->
<value>emphasis</value>
<value>complement</value>
<value>definition</value>
<value>example</value>
<value>remark</value>
<value>warning</value>
<value>advice</value>
<!-- quiz management -->
<value>question</value>
<value>choice-correct</value>
<value>choice-incorrect</value>
<value>explanation</value>
</choice>
</attribute>
</optional>
</define>
<define name="SpanType">
<optional>
<attribute name="data-hdoc-type">
<choice>
<value>syntax</value>
<value>latex</value>
<!-- quiz management -->
<value>blank</value>
</choice>
</attribute>
</optional>
</define>
<define name="ObjectType">
<attribute name="type">
<choice>
<value>application/vnd.oasis.opendocument.graphics </value>
<value>application/vnd.oasis.opendocument.spreadsheet</value>
<value>application/pdf</value>
<value>text/x-listing</value>
</choice>
</attribute>
</define>
<define name="VideoType">
<attribute name="type">
<choice>
<value>video/mp4</value>
<value>video/ogg</value>
<value>video/webm</value>
</choice>
</attribute>
</define>
</grammar>
<?xml version="1.0" encoding="UTF-8" ?>
<wspType defaultCode="Opale" title="Opale Advanced 3.5 (fr-FR)" description="" uri="Opale3-5_fr-FR_005" key="Opale3-5" lang="fr-FR" version="3.5.005"><wspUpdate localAutoUpdate="minor"><res key="Opale3-5.wsp"/></wspUpdate><systemSpace space="~param/Opale3-5/ss"><res key="Opale3-5.ss"/></systemSpace><systemSpace space="~param/Opale3-5/bs" optional="true"><res key="Opale3-5.bs"/></systemSpace><systemSpace space="~param/Opale3-5/gen/web"><res key="Opale3-5.gen.web"/></systemSpace><systemSpace space="~param/Opale3-5/gen/scormMono"><res key="Opale3-5.gen.scormMono"/></systemSpace><systemSpace space="~param/Opale3-5/gen/scormMulti"><res key="Opale3-5.gen.scormMulti"/></systemSpace><systemSpace space="~param/Opale3-5/gen/paper"><res key="Opale3-5.gen.paper"/></systemSpace><systemSpace space="~param/Opale3-5/gen/pres"><res key="Opale3-5.gen.pres"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewPresShort"><res key="Opale3-5.gen.previewPresShort"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewPresStandard"><res key="Opale3-5.gen.previewPresStandard"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebStandard"><res key="Opale3-5.gen.previewWebStandard"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebShort"><res key="Opale3-5.gen.previewWebShort"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebStandardComments"><res key="Opale3-5.gen.previewWebStandardComments"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebShortComments"><res key="Opale3-5.gen.previewWebShortComments"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packScorm12"><res key="Opale3-5.gen.packScorm12"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packScorm2k4"><res key="Opale3-5.gen.packScorm2k4"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packClaroline"><res key="Opale3-5.gen.packClaroline"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packGanesha"><res key="Opale3-5.gen.packGanesha"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packMoodle"><res key="Opale3-5.gen.packMoodle"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packSyfadis"><res key="Opale3-5.gen.packSyfadis"/></systemSpace><editionSheet pack="Opale3-5_fr-FR_005" brickSelector="{Opale3-5.moz;3.5.005;fr-FR}"/></wspType>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<wspType defaultCode="Opale" title="Opale Advanced 3.5 (fr-FR)" description="" uri="Opale3-5_fr-FR_005" key="Opale3-5" lang="fr-FR" version="3.5.005"><wspUpdate localAutoUpdate="minor"><res key="Opale3-5.wsp"/></wspUpdate><systemSpace space="~param/Opale3-5/ss"><res key="Opale3-5.ss"/></systemSpace><systemSpace space="~param/Opale3-5/bs" optional="true"><res key="Opale3-5.bs"/></systemSpace><systemSpace space="~param/Opale3-5/gen/web"><res key="Opale3-5.gen.web"/></systemSpace><systemSpace space="~param/Opale3-5/gen/scormMono"><res key="Opale3-5.gen.scormMono"/></systemSpace><systemSpace space="~param/Opale3-5/gen/scormMulti"><res key="Opale3-5.gen.scormMulti"/></systemSpace><systemSpace space="~param/Opale3-5/gen/paper"><res key="Opale3-5.gen.paper"/></systemSpace><systemSpace space="~param/Opale3-5/gen/pres"><res key="Opale3-5.gen.pres"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewPresShort"><res key="Opale3-5.gen.previewPresShort"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewPresStandard"><res key="Opale3-5.gen.previewPresStandard"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebStandard"><res key="Opale3-5.gen.previewWebStandard"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebShort"><res key="Opale3-5.gen.previewWebShort"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebStandardComments"><res key="Opale3-5.gen.previewWebStandardComments"/></systemSpace><systemSpace space="~param/Opale3-5/gen/previewWebShortComments"><res key="Opale3-5.gen.previewWebShortComments"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packScorm12"><res key="Opale3-5.gen.packScorm12"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packScorm2k4"><res key="Opale3-5.gen.packScorm2k4"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packClaroline"><res key="Opale3-5.gen.packClaroline"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packGanesha"><res key="Opale3-5.gen.packGanesha"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packMoodle"><res key="Opale3-5.gen.packMoodle"/></systemSpace><systemSpace space="~param/Opale3-5/gen/packSyfadis"><res key="Opale3-5.gen.packSyfadis"/></systemSpace><editionSheet pack="Opale3-5_fr-FR_005" brickSelector="{Opale3-5.moz;3.5.005;fr-FR}"/></wspType>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="main" default="convert">
<property name="InputPath" value="bib2.bib"></property>
<property name="OutputPath" value="${basedir}\result\ref.scar"></property>
<target name="convert">
<antcall target="preparation"/>
<antcall target="BibtexToBibXml"/>
<antcall target="BibXmlToHdocBib"/>
<antcall target="HdocToOpale"/>
<antcall target="zip"/>
<antcall target="CleanDirectory"/>
</target>
<target name="convertfrombibxml">
<antcall target="preparation"/>
<antcall target="HdocToOpale"/>
<antcall target="zip"/>
<antcall target="CleanDirectory"/>
</target>
<target name="preparation">
<delete dir="${basedir}/result"></delete>
<mkdir dir="${basedir}/result"></mkdir>
<mkdir dir="${basedir}/decompressedOpale"></mkdir>
<mkdir dir="${basedir}/decompressedOpale/ref"></mkdir>
<mkdir dir="${basedir}/tmp"></mkdir>
</target>
<target name="CleanDirectory">
<delete dir="${basedir}/tmp"></delete>
<delete dir="${basedir}/java"></delete>
<delete dir="${basedir}/decompressedOpale"></delete>
</target>
<target name="BibtexToBibXml">
<!-- Convert Bibtex into BibtexXml -->
<java
fork="true"
failonerror="true"
jar="lib/bibtex.jar"
>
<arg value="${InputPath}"/>
<arg value="${basedir}/tmp"/>
<arg value="/tmpBibXml.xml"/>
</java>
</target>
<target name="BibXmlToHdocBib">
<!-- Convert from BibXlm to HdocBib -->
<xslt classpath="${basedir}/lib/saxon9he.jar"
in="${basedir}\tmp\tmpBibXml.xml" out="${basedir}\tmp\tmpHdocBib.xml"
xslresource="${basedir}/XSL/BibToHdoc.xsl"></xslt>
</target>
<target name="HdocToOpale">
<!-- Convert from HdocBib to Opale -->
<xslt in="${basedir}\tmp\tmpHdocBib.xml"
out="${basedir}/tmp/tempHdoc.xml"
xslresource="${basedir}/XSL/SeparateXmlt.xsl">
<param name="in" expression="${basedir}\tmp\tmpHdocBib.xml"></param>
<param name="out" expression="${basedir}\decompressedOpale\ref"></param>
</xslt>
<ant antfile="${basedir}/tmp/tempHdoc.xml"/>
</target>
<target name="zip">
<chmod dir="${basedir}/decompressedOpale" perm="777"></chmod>
<copy file=".wspmeta" todir="${basedir}/decompressedOpale"/>
<zip basedir="decompressedOpale" destfile="${OutputPath}" encoding="UTF-8"/>
<chmod dir="${OutputPath}" perm="777"/>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- This sheet replaces the url of a namespace where needed -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:oldmods="http://bibtexml.sf.net/"
xmlns:myns="http://www.utc.fr/ics/hdoc/bibtexXm">
<xsl:template match="node()|@*" priority="3">
<xsl:copy>
<xsl:apply-templates select="node()|@*">
</xsl:apply-templates></xsl:copy>
</xsl:template>
<xsl:template match="
oldmods:file | oldmods:entry |
oldmods:entry/oldmods:article | oldmods:entry/oldmods:book | oldmods:entry/oldmods:booklet | oldmods:entry/oldmods:conference |
oldmods:entry/oldmods:manual | oldmods:entry/oldmods:techreport | oldmods:entry/oldmods:mastersthesis |
oldmods:entry/oldmods:phdthesis | oldmods:entry/oldmods:inbook | oldmods:entry/oldmods:incollection |
oldmods:entry/oldmods:proceedings | oldmods:entry/oldmods:unpublished | oldmods:entry/oldmods:misc |
oldmods:article/oldmods:title | oldmods:article/oldmods:author | oldmods:article/oldmods:journal |
oldmods:article/oldmods:volume | oldmods:article/oldmods:number | oldmods:article/oldmods:pages |
oldmods:book/oldmods:author | oldmods:book/oldmods:editor | oldmods:book/oldmods:title |
oldmods:book/oldmods:publisher | oldmods:book/oldmods:volume | oldmods:book/oldmods:number |
oldmods:book/oldmods:series | oldmods:book/oldmods:address | oldmods:book/oldmods:edition |
oldmods:booklet/oldmods:title | oldmods:booklet/oldmods:author | oldmods:booklet/oldmods:howpublished |
oldmods:booklet/oldmods:address | oldmods:booklet/oldmods:key | oldmods:booklet/oldmods:howpublished |
oldmods:book/oldmods:adress | oldmods:book/oldmods:month | oldmods:book/oldmods:year |
oldmods:inbook/oldmods:chapter | oldmods:inbook/oldmods:pages | oldmods:inbook/oldmods:publisher |
oldmods:inbook/oldmods:series | oldmods:inbook/oldmods:type | oldmods:inbook/oldmods:address |
oldmods:inbook/oldmods:edition |
oldmods:manual/oldmods:title | oldmods:manual/oldmods:author | oldmods:manual/oldmods:editor | oldmods:manual/oldmods:volume |
oldmods:manual/oldmods:number | oldmods:manual/oldmods:series | oldmods:manual/oldmods:pages | oldmods:manual/oldmods:organization |
oldmods:manual/oldmods:address | oldmods:manual/oldmods:edition | oldmods:manual/oldmods:key |
oldmods:techreport/oldmods:author | oldmods:techreport/oldmods:title | oldmods:techreport/oldmods:institution |
oldmods:techreport/oldmods:type | oldmods:techreport/oldmods:number | oldmods:techreport/oldmods:address |
oldmods:techreport/oldmods:key |
oldmods:mastersthesis/oldmods:author | oldmods:mastersthesis/oldmods:title |
oldmods:mastersthesis/oldmods:school | oldmods:mastersthesis/oldmods:year | oldmods:mastersthesis/oldmods:type |
oldmods:mastersthesis/oldmods:address | oldmods:mastersthesis/oldmods:key |
oldmods:phdthesis/oldmods:author | oldmods:phdthesis/oldmods:title |
oldmods:phdthesis/oldmods:school | oldmods:phdthesis/oldmods:year | oldmods:phdthesis/oldmods:type |
oldmods:phdthesis/oldmods:address | oldmods:phdthesis/oldmods:key |
oldmods:inbook/oldmods:author | oldmods:inbook/oldmods:editor | oldmods:inbook/oldmods:title |
oldmods:inbook/oldmods:chapter | oldmods:inbook/oldmods:pages | oldmods:inbook/oldmods:publisher |
oldmods:inbook/oldmods:volume | oldmods:inbook/oldmods:number | oldmods:inbook/oldmods:series |
oldmods:inbook/oldmods:type | oldmods:inbook/oldmods:address | oldmods:inbook/oldmods:edition | oldmods:inbook/oldmods:key |
oldmods:incollection/oldmods:author | oldmods:incollection/oldmods:title | oldmods:incollection/oldmods:booktitle |
oldmods:incollection/oldmods:publisher | oldmods:incollection/oldmods:editor | oldmods:incollection/oldmods:volume |
oldmods:incollection/oldmods:number | oldmods:incollection/oldmods:series | oldmods:incollection/oldmods:type |
oldmods:incollection/oldmods:chapter | oldmods:incollection/oldmods:pages | oldmods:incollection/oldmods:address |
oldmods:incollection/oldmods:edition | oldmods:incollection/oldmods:key |
oldmods:proceedings/oldmods:title | oldmods:proceedings/oldmods:year | oldmods:proceedings/oldmods:editor |
oldmods:proceedings/oldmods:volume | oldmods:proceedings/oldmods:number | oldmods:proceedings/oldmods:series |
oldmods:proceedings/oldmods:address | oldmods:proceedings/oldmods:publisher | oldmods:proceedings/oldmods:organization |
oldmods:proceedings/oldmods:key |
oldmods:unpublished/oldmods:author | oldmods:unpublished/oldmods:title | oldmods:unpublished/oldmods:howpublished |
oldmods:unpublished/oldmods:key |
oldmods:misc/oldmods:author | oldmods:misc/oldmods:title | oldmods:misc/oldmods:howpublished |
oldmods:misc/oldmods:key |
oldmods:conference/oldmods:author | oldmods:conference/oldmods:title | oldmods:conference/oldmods:booktitle |
oldmods:conference/oldmods:editor | oldmods:conference/oldmods:volume | oldmods:conference/oldmods:number |
oldmods:conference/oldmods:series | oldmods:conference/oldmods:pages | oldmods:conference/oldmods:address |
oldmods:conference/oldmods:organization | oldmods:conference/oldmods:publisher | oldmods:conference/oldmods:key |
oldmods:inproceedings/oldmods:author | oldmods:inproceedings/oldmods:title | oldmods:inproceedings/oldmods:booktitle |
oldmods:inproceedings/oldmods:editor | oldmods:inproceedings/oldmods:volume | oldmods:inproceedings/oldmods:number |
oldmods:inproceedings/oldmods:series | oldmods:inproceedings/oldmods:pages | oldmods:inproceedings/oldmods:address |
oldmods:inproceedings/oldmods:organization | oldmods:inproceedings/oldmods:publisher | oldmods:inproceedings/oldmods:key |
*/oldmods:month | */oldmods:year | */oldmods:url" priority="5">
<xsl:element name="myns:{local-name()}">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>
<xsl:template match="*" priority="4">
<xsl:element name="myns:note">
<xsl:attribute name="type_of"><xsl:value-of select="local-name()"></xsl:value-of></xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
<xsl:template match="oldmods:metadata"></xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:bib="http://www.utc.fr/ics/hdoc/bibtexXm"
xmlns:op="utc.fr:ics/opale3">
<xsl:output encoding="UTF-8" method="xml" indent="yes"/>
<xsl:param name="Position"/>
<xsl:template match="bib:file">
<xsl:for-each select="bib:entry">
<xsl:if test="position()=$Position">
<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<op:bib xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:op="utc.fr:ics/opale3">
<op:bibM>
<sp:id xmlns="http://www.utc.fr/ics/scenari/v3/primitive"><xsl:value-of select="@id"></xsl:value-of></sp:id>
<xsl:if test="child::node()/bib:url = true()"> <sp:type>web</sp:type> </xsl:if>
<xsl:if test="child::node()/bib:url = false()"> <sp:type>bib</sp:type></xsl:if>
<sp:desc>
<op:bibTxt>
<sc:para xml:space="preserve">
<xsl:apply-templates select="child::node()/bib:author"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:year"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:title"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:booktitle"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:editor"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:publisher"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:address"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:edition"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:url"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:journal"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:series"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:volume"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:number"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:chapter"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:pages"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:type"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:institution"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:organization"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:howpulished"></xsl:apply-templates>
<xsl:apply-templates select="child::node()/bib:note"></xsl:apply-templates>
</sc:para>
</op:bibTxt>
</sp:desc>
</op:bibM>
</op:bib>
</sc:item>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="bib:editor | bib:publisher">
<sc:textLeaf role="ed" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"><xsl:value-of select="."/>
<xsl:text> </xsl:text></sc:textLeaf>
</xsl:template>
<xsl:template match="bib:editor[last()] | bib:publisher[last()]">
<sc:textLeaf role="ed" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<xsl:value-of select="."/>
</sc:textLeaf>
</xsl:template>
<xsl:template match="bib:author">
<sc:textLeaf role="auth" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<xsl:value-of select="."/> <xsl:text> </xsl:text>
</sc:textLeaf>
</xsl:template>
<xsl:template match="bib:author[last()]">
<sc:textLeaf role="auth" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<xsl:value-of select="."/>
</sc:textLeaf>
</xsl:template>
<xsl:template match="bib:year">
<sc:textLeaf role="date" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"><xsl:value-of select="../bib:month"/> <xsl:text> </xsl:text><xsl:value-of select="."/></sc:textLeaf>
</xsl:template>
<xsl:template match="bib:title | bib:booktitle">
<sc:textLeaf role="title" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<xsl:value-of select="."/>
</sc:textLeaf>
</xsl:template>
<xsl:template match="bib:url">
<sc:uLink role="url" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
<xsl:attribute name="url"> <xsl:value-of select="."/></xsl:attribute>
<xsl:value-of select="."/>
</sc:uLink>
</xsl:template>
<xsl:template match="bib:volume | bib:number">
Volume : <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:chapter">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:series">
Series : <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:edition">
Edition : <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:address">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:journal">
Journal : <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="bib:pages">