IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Word Discussion :

Styles Word -> XSL [WD-2007]


Sujet :

Word

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2009
    Messages : 7
    Points : 6
    Points
    6
    Par défaut Styles Word -> XSL
    Bonjour,

    Utilisant jusqu'à présent uniquement Word, mon entreprise produit maintenant des documents XML mis en forme grâce à une feuille de style XSL. J'ai pour mission d'intégrer la charte graphique de mon entreprise dans ma feuille de style XSL. Hors, est-il possible d'extraire à partir de Word un fichier XSL ou CSS qui me permettrait de connaître exactement le détail des styles appliqués dans Word?

    D'avance merci.

  2. #2
    Rédacteur/Modérateur

    Avatar de Heureux-oli
    Homme Profil pro
    Contrôleur d'industrie
    Inscrit en
    Février 2006
    Messages
    21 087
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : Belgique

    Informations professionnelles :
    Activité : Contrôleur d'industrie
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Février 2006
    Messages : 21 087
    Points : 42 926
    Points
    42 926
    Par défaut
    Salut,


    Le contraire est possible, mais extraire un fichier XSL d'un document Word, je ne pense pas.

    http://heureuxoli.developpez.com/office/xml/

    Word ne travaille pas avec les XSL pour la gestion des ses documents.
    J'ai pas encore de décodeur, alors, postez en clair ! Comment mettre une balise de code ?
    Débutez en VBA

    Mes articles


    Dans un MP, vous pouvez me dire que je suis beau, ... mais si c'est une question technique je ne la lis pas ! Vous êtes prévenus !

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2009
    Messages : 7
    Points : 6
    Points
    6
    Par défaut
    Merci pour votre réponse, c'est bien ce que je craignais. La seule solution est donc de créer "à la main" dans mon XSL des styles équivalents à ceux créés dans word?

  4. #4
    Rédacteur/Modérateur

    Avatar de Heureux-oli
    Homme Profil pro
    Contrôleur d'industrie
    Inscrit en
    Février 2006
    Messages
    21 087
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : Belgique

    Informations professionnelles :
    Activité : Contrôleur d'industrie
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Février 2006
    Messages : 21 087
    Points : 42 926
    Points
    42 926
    Par défaut
    Salut,

    Pour t'en rendre compte, essaie de faire un fichier Word simple et fais une sauvegarde en XML.

    Seul le départ est simple.
    J'ai pas encore de décodeur, alors, postez en clair ! Comment mettre une balise de code ?
    Débutez en VBA

    Mes articles


    Dans un MP, vous pouvez me dire que je suis beau, ... mais si c'est une question technique je ne la lis pas ! Vous êtes prévenus !

  5. #5
    Futur Membre du Club
    Profil pro
    Inscrit en
    Octobre 2009
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2009
    Messages : 7
    Points : 6
    Points
    6
    Par défaut
    C'est ce que j'ai fait, et j'obtiens le résultat suivant qui, vous en conviendrez, est assez opaque :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?mso-application progid="Word.Document"?>
    <w:wordDocument xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve"><w:ignoreSubtree w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/><o:DocumentProperties><o:Title>PROCEDURES</o:Title><o:Author>BENOIT</o:Author><o:LastAuthor>guillaume.gaguet</o:LastAuthor><o:Revision>2</o:Revision><o:TotalTime>1</o:TotalTime><o:LastPrinted>2009-07-04T00:08:00Z</o:LastPrinted><o:Created>2009-10-27T09:26:00Z</o:Created><o:LastSaved>2009-10-27T09:26:00Z</o:LastSaved><o:Pages>2</o:Pages><o:Words>44</o:Words><o:Characters>247</o:Characters><o:Lines>2</o:Lines><o:Paragraphs>1</o:Paragraphs><o:CharactersWithSpaces>290</o:CharactersWithSpaces><o:Version>12</o:Version></o:DocumentProperties><w:fonts><w:defaultFonts w:ascii="Calibri" w:fareast="Times New Roman" w:h-ansi="Calibri" w:cs="Times New Roman"/><w:font w:name="Times New Roman"><w:panose-1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="Roman"/><w:pitch w:val="variable"/><w:sig w:usb-0="E0002AFF" w:usb-1="C0007841" w:usb-2="00000009" w:usb-3="00000000" w:csb-0="000001FF" w:csb-1="00000000"/></w:font><w:font w:name="Courier New"><w:panose-1 w:val="02070309020205020404"/><w:charset w:val="00"/><w:family w:val="Modern"/><w:pitch w:val="fixed"/><w:sig w:usb-0="E0002AFF" w:usb-1="C0007843" w:usb-2="00000009" w:usb-3="00000000" w:csb-0="000001FF" w:csb-1="00000000"/></w:font><w:font w:name="Symbol"><w:panose-1 w:val="05050102010706020507"/><w:charset w:val="02"/><w:family w:val="Roman"/><w:pitch w:val="variable"/><w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000"/></w:font><w:font w:name="Wingdings"><w:panose-1 w:val="05000000000000000000"/><w:charset w:val="02"/><w:family w:val="auto"/><w:pitch w:val="variable"/><w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000"/></w:font><w:font w:name="Cambria Math"><w:panose-1 w:val="02040503050406030204"/><w:charset w:val="00"/><w:family w:val="Roman"/><w:pitch w:val="variable"/><w:sig w:usb-0="A00002EF" w:usb-1="420020EB" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="0000019F" w:csb-1="00000000"/></w:font><w:font w:name="Arial Unicode MS"><w:panose-1 w:val="020B0604020202020204"/><w:charset w:val="80"/><w:family w:val="Swiss"/><w:pitch w:val="variable"/><w:sig w:usb-0="F7FFAFFF" w:usb-1="E9DFFFFF" w:usb-2="0000003F" w:usb-3="00000000" w:csb-0="003F01FF" w:csb-1="00000000"/></w:font><w:font w:name="Calibri"><w:panose-1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="Swiss"/><w:pitch w:val="variable"/><w:sig w:usb-0="E10002FF" w:usb-1="4000ACFF" w:usb-2="00000009" w:usb-3="00000000" w:csb-0="0000019F" w:csb-1="00000000"/></w:font><w:font w:name="Bookman Old Style"><w:panose-1 w:val="02050604050505020204"/><w:charset w:val="00"/><w:family w:val="Roman"/><w:pitch w:val="variable"/><w:sig w:usb-0="00000287" w:usb-1="00000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="0000009F" w:csb-1="00000000"/></w:font><w:font w:name="StarSymbol"><w:altName w:val="Arial Unicode MS"/><w:charset w:val="00"/><w:family w:val="auto"/><w:pitch w:val="default"/><w:sig w:usb-0="00000000" w:usb-1="00000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="00000000" w:csb-1="00000000"/></w:font><w:font w:name="Wingdings 2"><w:panose-1 w:val="05020102010507070707"/><w:charset w:val="02"/><w:family w:val="Roman"/><w:pitch w:val="variable"/><w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000"/></w:font><w:font w:name="@Arial Unicode MS"><w:panose-1 w:val="020B0604020202020204"/><w:charset w:val="80"/><w:family w:val="Swiss"/><w:pitch w:val="variable"/><w:sig w:usb-0="F7FFAFFF" w:usb-1="E9DFFFFF" w:usb-2="0000003F" w:usb-3="00000000" w:csb-0="003F01FF" w:csb-1="00000000"/></w:font></w:fonts><w:lists><w:listDef w:listDefId="0"><w:lsid w:val="FFFFFF7C"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="6B5E4E80"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:lvlText w:val="%1."/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="1492"/></w:tabs><w:ind w:left="1492" w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef w:listDefId="1"><w:lsid w:val="FFFFFF7D"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="68864642"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:lvlText w:val="%1."/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="1209"/></w:tabs><w:ind w:left="1209" w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef w:listDefId="2"><w:lsid w:val="FFFFFF7E"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="A6F239D6"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:lvlText w:val="%1."/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="926"/></w:tabs><w:ind w:left="926" w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef w:listDefId="3"><w:lsid w:val="FFFFFF7F"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="26F02588"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:lvlText w:val="%1."/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="643"/></w:tabs><w:ind w:left="643" w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef w:listDefId="4"><w:lsid w:val="FFFFFF80"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="7350490C"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:nfc w:val="23"/><w:lvlText w:val=""/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="1492"/></w:tabs><w:ind w:left="1492" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Symbol" w:h-ansi="Symbol" w:hint="default"/></w:rPr></w:lvl></w:listDef><w:listDef w:listDefId="5"><w:lsid w:val="FFFFFF81"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="9F68D800"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:nfc w:val="23"/><w:lvlText w:val=""/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="1209"/></w:tabs><w:ind w:left="1209" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Symbol" w:h-ansi="Symbol" w:hint="default"/></w:rPr></w:lvl></w:listDef><w:listDef w:listDefId="6"><w:lsid w:val="FFFFFF82"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="B53A224A"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:nfc w:val="23"/><w:lvlText w:val=""/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="926"/></w:tabs><w:ind w:left="926" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Symbol" w:h-ansi="Symbol" w:hint="default"/></w:rPr></w:lvl></w:listDef><w:listDef w:listDefId="7"><w:lsid w:val="FFFFFF83"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="B516B4F6"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:nfc w:val="23"/><w:lvlText w:val=""/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="643"/></w:tabs><w:ind w:left="643" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Symbol" w:h-ansi="Symbol" w:hint="default"/></w:rPr></w:lvl></w:listDef><w:listDef w:listDefId="8"><w:lsid w:val="FFFFFF88"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="EC3E9FB2"/><w:lvl w:ilvl="0"><w:start w:val="1"/><w:lvlText w:val="%1."/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="list" w:pos="360"/></w:tabs><w:ind w:left="360" w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef w:listDefId="9"><w:lsid w:val="FFFFFF89"/><w:plt w:val="SingleLevel"/><w:tmpl w:val="15DCE656"/><w:lvl w:ilvl="0">
    J'avoue avoir du mal à retrouver ici des informations telles que taille, police, etc etc. Je vais tenter de me débrouiller. C'est néanmoins dommage que Word ne permette pas l'export des styles au format CSS ou XSL.

    Merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. feuille de style word
    Par battit64 dans le forum VBA Word
    Réponses: 1
    Dernier message: 04/04/2008, 21h29
  2. Réponses: 19
    Dernier message: 27/11/2007, 23h54
  3. [xsl fo] Appliquer un style "Word" à une transfo FO
    Par david_m dans le forum XSL/XSLT/XPATH
    Réponses: 3
    Dernier message: 29/05/2006, 08h55
  4. Effacement des styles Word
    Par luxmen dans le forum VBA Word
    Réponses: 8
    Dernier message: 13/01/2006, 16h32
  5. Utiliser un contrôle style "Word"
    Par soso78 dans le forum IHM
    Réponses: 5
    Dernier message: 13/12/2005, 22h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo