<div><div><font color="#777777" face="arial, sans-serif"><span style="font-size:12px">Hello, I would like you to publish your question in the forum <a href="http://www.opencmsforum.com" target="_blank">http://www.opencmsforum.com</a> to move it</span></font></div>


<div><font color="#777777" face="arial, sans-serif"><span style="font-size:12px"><br></span></font></div><div><font color="#777777" face="arial, sans-serif"><span style="font-size:12px">Thank you.</span></font></div><div style="font-style:italic">

<br></div></div><div><font size="4"><i><br></i></font></div><div><i><font color="#6633ff">Fábio Gomes</font></i></div><div><i><font color="#6633ff">Analista de sistemas - w3bh Tecnologia</font></i></div><div><i><font color="#6633ff"><a href="http://www.w3bh.com.br" target="_blank">http://www.w3bh.com.br</a></font></i></div>

<div><i><font color="#6666cc">+55 31 3447-6201</font></i></div><div><i><font color="#6666cc">skype: fabiogomes.ti</font></i></div><br>
<br><br><div class="gmail_quote">2012/10/30 Schliemann, Kai <span dir="ltr"><<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi list,<br>
I am trying to convert one xml content type to another using the "Convert XML contents" tool in the administration view of OpenCms.<br>
I don't get it to work.<br>
Can anybody tell me what I am doing wrong or provide a working example (I couldn't find one), please.<br>
<br>
Thank you very much in advance.<br>
<br>
Best regards<br>
Kai<br>
<br>
This is the message I get during transformation:<br>
#####################<br>
Resource path: /a/b/c/<br>
Inclusive sub folders: true<br>
Xslt file: /transform.xslt<br>
Only count files to transform: false<br>
New xsd main file: opencms://system/modules/<a href="http://module.name/schemas/overview.xsd" target="_blank">module.name/schemas/overview.xsd</a><br>
Start searching for files to transform...<br>
Number of files found to transform: 2<br>
Transform (published) file (encoding type): /sites/default/a/b/c/d/content.html (UTF-8)<br>
Error while writing.<br>
Transform (published) file (encoding type): /sites/default/a/b/c/content1.html (UTF-8)<br>
Error while writing.<br>
Publishing files...<br>
Result:<br>
Number of files found to transform: 2<br>
Number of files already transformed: 0<br>
Number of errors while transforming: 2<br>
Number of locked files (could not become transformed): 0<br>
Transforming files failed.<br>
Finished transforming xml contents.<br>
Statistics:duration: 00:00:00<br>
#####################<br>
<br>
This is my setup:<br>
<br>
My xslt file for transformation:<br>
#####################<br>
<?xml version="1.0" ?><br>
<xsl:stylesheet version="1.0"<br>
                xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform" target="_blank">http://www.w3.org/1999/XSL/Transform</a>"<br>
                xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:noNamespaceSchemaLocation="opencms://system/modules/<a href="http://module.name/schemas/newschema.xsd" target="_blank">module.name/schemas/newschema.xsd</a>"<br>


><br>
  <xsl:output method="xml" indent="yes"/><br>
  <xsl:template match="/"><br>
                <Title><![CDATA[]]></Title><br>
                <Headline><xsl:value-of select="/headline"/></Headline><br>
                <BoxesPath><![CDATA[]]></BoxesPath><br>
    <BoxRubrikUebersicht><br>
      <BoxPic><xsl:value-of select="/teaserImage"/></BoxPic><br>
      <BoxTitle><xsl:value-of select="/teaserText"/></BoxTitle><br>
                <BoxText name="BoxText0"><br>
                               <links><xsl:value-of select="/mainText/links"/></links><br>
                        <content><xsl:value-of select="/mainText/content"/></content><br>
                </BoxText><br>
    </BoxRubrikUebersicht><br>
    <LeftNavigationenBoxes><br>
      <Boxpath><![CDATA[]]></Boxpath><br>
      <BoxTransmissionIndex><![CDATA[]]></BoxTransmissionIndex><br>
    </LeftNavigationenBoxes><br>
  </xsl:template><br>
  <xsl:template match="*"/><br>
</xsl:stylesheet><br>
#####################<br>
<br>
New controlcode (contextmenu --> advanced --> edit controlcode)<br>
#####################<br>
<Overviews xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:noNamespaceSchemaLocation="opencms://system/modules/de.mwsg.spool.cms.modules.mastertemplates/schemas/newschema.xsd"><br>


  <Overview language="de"><br>
    <Title><![CDATA[mytitle]]></Title><br>
    <Headline><![CDATA[myheadline]]></Headline><br>
    <BoxesPath><![CDATA[/a/b/c/mybox.html]]></BoxesPath><br>
    <BoxRubrikUebersicht><br>
      <BoxPic><![CDATA[/_resources/images/Kategorie2.jpg]]></BoxPic><br>
      <BoxTitle><![CDATA[myboxtitle]]></BoxTitle><br>
      <BoxText name="BoxText0"><br>
        <links/><br>
        <content><![CDATA[<p>&nbsp;kurzer Text</p>]]></content><br>
      </BoxText><br>
    </BoxRubrikUebersicht><br>
    <LeftNavigationenBoxes><br>
      <Boxpath><![CDATA[/a/b/c/mybox2.html]]></Boxpath><br>
      <BoxTransmissionIndex>true</BoxTransmissionIndex><br>
    </LeftNavigationenBoxes><br>
  </Overview><br>
</Overviews><br>
#####################<br>
<br>
Old controlcode (contextmenu --> advanced --> edit controlcode)<br>
#####################<br>
<Freitexts xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:noNamespaceSchemaLocation="opencms://system/modules/<a href="http://module.name/schemas/oldschema.xsd" target="_blank">module.name/schemas/oldschema.xsd</a>"><br>


  <Freitext language="de"><br>
    <headline><![CDATA[myheadline]]></headline><br>
    <teaserImage/><br>
    <teaserText name="teaserText0"><br>
      <links/><br>
      <content><![CDATA[Teaser-Text]]></content><br>
    </teaserText><br>
    <mainText name="mainText0"><br>
      <links/><br>
      <content><![CDATA[content text]]></content><br>
    </mainText><br>
  </Freitext><br>
</Freitexts><br>
#####################<br>
<br>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br>