Problème d'indentation du plugin Sources_export
Hello !
Je viens de m'apercevoir d'un problème d'indentation lorsque l'on récupère des sources via le plugin Sources_export. Mais visiblement ce problème d'indentation ne concerne que la partie teiHeader.
Je t'ai copié, à la fin du ticket, un bout du fichier avant son indexation dans BaseX et ce même fichier lorsque je le récupère dans le .zip généré en utilisant la route %rest:path("/{$project}/{$archive}.zip")
J'ai également fait plusieurs tests : J'ai ajouté un %output:indent("no") dans le fichier sources_export.xqm, ligne 10 :
declare
%rest:GET
%output:media-type("application/octet-stream")
%output:indent("no")
%rest:path("/{$project}/{$archive}.zip")
et j'ai ajouté dans le fichier .basex :
# Local Options
CHOP = false
SERIALIZER = indent=no
Mais je n'ai pas vu de différence...
--
Indentation avant indexation dans BaseX :
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:ead="urn:isbn:1-931666-22-9" xmlns:examples="http://www.tei-c.org/ns/Examples" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:ns="http://www.tei-c.org/ns/1.0" xmlns:xhtml="http://www.w3.org/TR/xhtml/strict" xmlns:xinclude="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxe="http://www.unicaen.fr/mrsh/pddn/xxe/1.0/" type="texte" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://www.unicaen.fr/mrsh/pddn/schemas/ichtya.xsd" xml:id="AM_fr"><teiHeader><fileDesc><titleStmt><title>Albert Le Grand, Les animaux — Livre XXIV. Les animaux
aquatiques</title><author role="auteur" xml:id="AM">Albert Le Grand</author><editor role="editeur_scientifique" xml:id="BGauvin">Brigitte
Gauvin</editor></titleStmt><editionStmt><edition><date>2009-12</date></edition></editionStmt><publicationStmt><authority/></publicationStmt><sourceDesc><p>Traduction native</p></sourceDesc></fileDesc><profileDesc><langUsage><language ident="fr">français</language></langUsage></profileDesc></teiHeader><text><body xml:space="preserve"><div n="24" type="livre" xml:id="FR.am.24" xml:lang="la"><head xml:id="FR.am.24.0">Les animaux, livre XXIV - Les animaux aquatiques</head>
Indentation dans le .zip :
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:ead="urn:isbn:1-931666-22-9" xmlns:examples="http://www.tei-c.org/ns/Examples" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:ns="http://www.tei-c.org/ns/1.0" xmlns:xhtml="http://www.w3.org/TR/xhtml/strict" xmlns:xinclude="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxe="http://www.unicaen.fr/mrsh/pddn/xxe/1.0/" type="texte" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://www.unicaen.fr/mrsh/pddn/schemas/ichtya.xsd" xml:id="AM_fr">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Albert Le Grand, Les animaux — Livre XXIV. Les animaux
aquatiques</title>
<author role="auteur" xml:id="AM">Albert Le Grand</author>
<editor role="editeur_scientifique" xml:id="BGauvin">Brigitte
Gauvin</editor>
</titleStmt>
<editionStmt>
<edition>
<date>2009-12</date>
</edition>
</editionStmt>
<publicationStmt>
<authority/>
</publicationStmt>
<sourceDesc>
<p>Traduction native</p>
</sourceDesc>
</fileDesc>
<profileDesc>
<langUsage>
<language ident="fr">français</language>
</langUsage>
</profileDesc>
</teiHeader>
<text>
<body xml:space="preserve"><div n="24" type="livre" xml:id="FR.am.24" xml:lang="la"><head xml:id="FR.am.24.0">Les animaux, livre XXIV - Les animaux aquatiques</head>