[Github-comments] [geany/geany] loading unformatted XML takes too long (#2094)
Rolf Schumacher
notifications at xxxxx
Thu Feb 28 10:45:51 UTC 2019
However, knowing that unformatted xml is not so easy for geany, you can format it in advance. With the stylesheet
```
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<!-- standard copy template -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
```
saxon formats my 75MByte file to a 136MByte formatted xml in 8 seconds.
I would like to recommend that geany analyses whether the file is suited to be worked within geany and otherwise informs the user.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2094#issuecomment-468226231
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190228/56ecdcd3/attachment.html>
More information about the Github-comments
mailing list