xsl-list
[Top] [All Lists]

Re: [xsl] Compacting with xmllint

2014-10-26 16:40:59
ok thats useful to know...... Note that strip-space  is already specified
on the stylesheet and I still get the 6MB reduction on file size after
formatting though.

On Sun, Oct 26, 2014 at 8:53 PM, Michael Kay mike(_at_)saxonica(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

The question of whether a file is too big to transform depends on the tree
size, not the lexical XML size. Presumably --format is only changing
whitespace, and a decent processor will compress whitespace, or remove it
entirely if you specify xsl:strip-space.

Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com
+44 (0) 118 946 5893




On 26 Oct 2014, at 20:00, Ihe Onwuka ihe(_dot_)onwuka(_at_)gmail(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

I'm sure most are familiar with the --format option on xmllint to get more
readable XML. I've also found it useful for compacting a large file. A file
of mine that was 92MB pre-compacting comes out at 86MB after. This could be
very handy for files like mine that are bordering on being too big to
transform.


  XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://-list/293509> (by email)


  XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <-list/1005724> (by
email <>)

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>