[umbrello] [Bug 409411] Export to XHTML generates empy html file

"Oliver Kellogg" <[email protected]>
Newsgroups gmane.linux.umbrello.devel
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=409411

Oliver Kellogg <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected].
                   |                            |net
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Oliver Kellogg <[email protected]> ---
(In reply to Ralf Habacker from comment #1)
> [...]
> https://commits.kde.org/umbrello/c6002b5c68592932a64bb194449d2e884725631f

The sections "actors", "usecases", "interfaces", "classes" in the generated
docbook continue to be empty after that change:

<article role="specification">
  <section id="actors">
    <title>Actors</title>
  </section>
  <section id="usecases">
    <title>Use Cases</title>
  </section>
  <section id="interfaces">
    <title>Interfaces</title>
  </section>
  <section id="classes">
    <title>Classes</title>
  </section>
  [...]

umbrello/umldoc.cpp commit 847b6e0d (2017-02-20) set the supported UML version
in XMI file header to 1.4:

@@ -2015,13 +2015,13 @@ void UMLDoc::saveToXMI1(QIODevice& file)
     QDateTime now = QDateTime::currentDateTime();
     root.setAttribute(QLatin1String("timestamp"), now.toString(Qt::ISODate));
     root.setAttribute(QLatin1String("verified"), QLatin1String("false"));
-    root.setAttribute(QLatin1String("xmlns:UML"),
QLatin1String("http://schema.omg.org/spec/UML/1.3"));
+    root.setAttribute(QLatin1String("xmlns:UML"),
QLatin1String("http://schema.omg.org/spec/UML/1.4"));
     doc.appendChild(root);

However, the umbrello/docgenerators/xmi2docbook.xsl continues to use

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0"
                xmlns:UML="http://schema.omg.org/spec/UML/1.3"
                exclude-result-prefixes="UML">

libxslt apparently performs a consistency check on the xmlns URI between the
stylesheet and the XML input file.
On the version mismatch, xsltApplyStylesheet() does not return an error but
silently refuses to carry out the transformations.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.