Jump to content

sacha74

Members
  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sacha74

  • Rank
    Newbie
  1. Hello, I tried to put a new xsl:for each inside the treatment I already do for table (shown in the xslt file of the previous message) because the table is in a table.It doesn't work better than the first code I mentionned yesterday in the code below.Here is my new code : <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy></xsl:template> <xsl:template match="table[descendant::tr]"> <table> <tgroup> <xsl:attribute name="cols"><xsl:value-of select="count(.//th)"/></xsl:attribute>
  2. Hello, I would like to transform those two examples : <topic><body><p><table><tgroup cols="3"><colspec colname="1" colnum="1" colwidth="25%"/><colspec colname="2" colnum="2" colwidth="55%"/><colspec colname="3" colnum="3" colwidth="20%"/><thead></thead><tbody><row><entry><p>Conditions à respecter :</p><ul><li>Renseigner ...</li> <li>Renseigner les champs "Obligatoires" : <table> <thead> <tr> <th scope="col">Code opération</th> <th sc
  3. Thanks a lot for your answer, I made some changes in the code but it really guides me to find the code responding to my case.
  4. Hello,I'm trying to transform an XHTML file. <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta name="template" content="Modele_NexT.htt" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="topic-status" content="Complete" /> <meta name="generator" content="Adobe RoboHelp - www.adobe.com" /> <meta name="generator-major-version" content="0.1" /> <meta name="generator-minor-version" content="1" /> <meta name="filetype" content="RoboHelp" /> <meta name="filetype-version" content="1" /> <
  5. Once again thanks a lot for your answer, which works wonderfully. That's also really kind of you to answer so quickly.Thank you, Martin Honnen
  6. Hello,I have a xml file and what I want to do is to copy the entire file with all the tags. I've done this with : <xsl:template match="node()"> <xsl:copy> <xsl:apply-templates select="node()"/> </xsl:copy></xsl:template> But I also want to replace all characters "ÁÉÍÓÚ" with"AEIOU". I managed to do this with : <xsl:variable name="Schar">ÁÉÍÓÚ</xsl:variable><xsl:variable name="Rchar">AEIOU</xsl:variable> <xsl:template match="node()"> <xsl:copy-of select="translate(normalize-space(.), $Schar, $Rchar)"></xsl:copy-of>
  7. I would like to delete the <DIV> tags while keeping all the tags that are in the <Div> tag. The problem is that in the code there are <DIV> tags in other <DIV> tags.The original code: <XML><Map-Start><A ID="pgfId-592691"/></Map-Start> <Bloc-paragraphe><A ID="pgfId-596086"/>074 is used to customise application codes for the administration of time and call fiduciary deposit orders. </Bloc-paragraphe><Map><A ID="pgfId-596087"/>information </Map> <Bloc-paragraphe> <A ID="pgfId-596106"/>ggjug guigik &l
  8. I am so sorry to have bother you with such a stupid mistake; THE LIGHTS ARE ON BUT NOBODY'S HOMEThanks a lot for your help.
  9. If I use this code: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xml" href="formedita.xslt"?><Paramétrage>tulo<p> </p> <table> <tr> <th> Table </th> <th> Élément </th> </tr> <tbody> <tr> <td> 900 </td> <td> 999 </td></tr><tr> <td> 900 </td> <td> 998 </td> </tr><tr> <td> 900 </td> <td> 999 </td></tr><tr> <td> 900 </td> <td> 989 </td> </tr> </tbody>
  10. Thanks a lot for the rapidity, with which you answer me.I have to try the code you propose because it does not seem to resolve the case each time it is present in the code.Whatever, thanks. I'm going to try and I tell you...
  11. Hello,The data, to be transformed, have been extracted from a database and now there is some text data without tags. Here is my xml code <body>doc simé <p> La table 050 permet de paramétrer les libellés qui doivent figurer sur les relevés de comptes et les écrans de consultation des mouvements sur les comptes imputés lors des opérations de transfert définies dans la table 049. </p> <p> La table 050 permet aussi de paramétrer les comptes sur lesquels imputer les commissions et les frais, ainsi que les comptes de contreparties aussi bien des opérations de transfert
  12. Thank you for the valuable information you provided. You're really good.Once again a big thank to you.
  13. My input :<XML><FM1Titre>description</FM1Titre><p>tata</p> <TABLE>....</TABLE><FM1Titre>Codes retenus</FM1Titre><TABLE><ROW><TH><Tableau-intitulé>totot</Tableau-intitulé></TH><TH><Tableau-intitulé> [...]<ROW><CELL><Tableau-cellule-centrée-gras>ACT(802)</Tableau-cellule-centrée-gras></CELL><CELL> [...]</TABLE><TABLE>....</TABLE><TABLE>....</TABLE><TABLE>....</TABLE></XML> My xslt file is rather long so perhaps
  14. Hello,I'm back once again. I try to group two transformations in my xslt file but I have the impression that my xml editor don't manage to go on the second template after doing the first one.I want to treat tables. The problem is that I have 4 tables which follows one another and when i asked for the transformation just one table is transfromed and the following three have disappeared.Here is my xslt:<xsl:template match="/XML" priority="1"> <xsl:copy> <xsl:apply-templates select="FM1Titre[1]"/> </xsl:copy> </xsl:template> <xsl:variable name="Scha
×
×
  • Create New...