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

Oliver Kellogg bugzilla_noreply at kde.org
Sun Feb 27 21:44:13 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=409411

Oliver Kellogg <okellogg at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|https://commits.kde.org/umb |https://invent.kde.org/sdk/
                   |rello/c6002b5c68592932a64bb |umbrello/commit/de636719fdf
                   |194449d2e884725631f         |c7245f5498ae9717cf4462dfaa0
                   |                            |1d
         Resolution|---                         |FIXED
   Version Fixed In|2.28.3 (KDE Applications    |2.33.80 (KDE releases
                   |19.04.3)                    |22.03.80)

--- Comment #3 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit de636719fdfc7245f5498ae9717cf4462dfaa01d by Oliver Kellogg.
Committed on 27/02/2022 at 21:42.
Pushed by okellogg into branch 'master'.

Address reopening https://bugs.kde.org/show_bug.cgi?id=409411#c2 ,
> [...]
> 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.

umbrello/docgenerators/xmi2docbook.xsl
- In the <xsl:stylesheet> attributes change
                xmlns:UML="http://schema.omg.org/spec/UML/1.3"
  to
                xmlns:UML="http://schema.omg.org/spec/UML/1.4"
  for synchronizing with Umbrello versions since 2.21 (Apps 17.03.80).
- Other changes:
  - Remove whitespace at line ends.
  - Join Xpath expressions spread over two lines to single line.
  - In <xsl:template name="class">,
    - in <xsl:for-each> fix Xpath expression of "select";
    - in <xsl:if test="@xmi.id = $idvalue">,
      - at entity &packagename; <xsl:value-of> fix attribute name in
        "select";
      - in <div role="push">,
        - fix typo at "Abstract";
        - at "Visibility" update ancient <xsl:if> expressions.
  - In <xsl:template name="attribute">,
    - at "Visibility" update ancient <xsl:if> expressions;
    - at "Default" remove non-ASCII/non-UTF8 unidentified characters.
  - In <xsl:template name="operation"> update ancient <xsl:if>
    expressions intended for decoding "visibility".

umbrello/docgenerators/docbookgeneratorjob.cpp
- Enclose additions of commit c6002b5 in #ifdef USE_SDOCBOOK_LOCAL_COPY.
  Reason: The docbook generation appears to function properly without
  them.
- In function run() :
  - Remove local variables for "write the XMI model in an in-memory
    char* string", they appear to be unused.
  - Test return value from xsltParseStylesheetFile(), xmlParseFile(),
    xsltApplyStylesheet() and log an error if null.
  - On freeing up pointers deallocate `cur' last.  Reason: Heap segments
    shall be freed in the opposite order of their allocation.
FIXED-IN:2.33.80 (KDE releases 22.03.80)

M  +30   -9    umbrello/docgenerators/docbookgeneratorjob.cpp
M  +230  -236  umbrello/docgenerators/xmi2docbook.xsl

https://invent.kde.org/sdk/umbrello/commit/de636719fdfc7245f5498ae9717cf4462dfaa01d

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list