[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] Compacting with xmllint
From:       "Ihe Onwuka ihe.onwuka () gmail ! com" <xsl-list-service () lists ! mulberrytech ! com>
Date:       2014-10-26 21:41:31
Message-ID: 20141026174052.87427 () lists ! mulberrytech ! com
[Download RAW message or body]

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@saxonica.com <
xsl-list-service@lists.mulberrytech.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@saxonica.com
> +44 (0) 118 946 5893
>
>
>
>
> On 26 Oct 2014, at 20:00, Ihe Onwuka ihe.onwuka@gmail.com <
> xsl-list-service@lists.mulberrytech.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/651070
or by email: xsl-list-unsub@lists.mulberrytech.com
--~--
[Attachment #3 (text/html)]

<div dir="ltr">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.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Sun, Oct 26, 2014 at 8:53 PM, Michael Kay <a \
href="mailto:mike@saxonica.com">mike@saxonica.com</a> <span dir="ltr">&lt;<a \
href="mailto:xsl-list-service@lists.mulberrytech.com" \
target="_blank">xsl-list-service@lists.mulberrytech.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>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.</div><br><div> <div \
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-tr \
ansform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>Michael \
Kay</div><div>Saxonica</div><div><a href="mailto:mike@saxonica.com" \
target="_blank">mike@saxonica.com</a></div><div><a \
href="tel:%2B44%20%280%29%20118%20946%205893" value="+441189465893" \
target="_blank">+44 (0) 118 946 5893</a></div><div><br></div></div><br><br>

</div><div><div class="h5">
<br><div><div>On 26 Oct 2014, at 20:00, Ihe Onwuka <a \
href="mailto:ihe.onwuka@gmail.com" target="_blank">ihe.onwuka@gmail.com</a> &lt;<a \
href="mailto:xsl-list-service@lists.mulberrytech.com" \
target="_blank">xsl-list-service@lists.mulberrytech.com</a>&gt; \
wrote:</div><br><blockquote type="cite"><div dir="ltr">I&#39;m sure most are familiar \
with the --format option on xmllint to get more readable XML. I&#39;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.<div><div><br></div><div><br></div></div></div> <div>
<div style="border-top:1px solid \
black;background-color:#dddddd;color:#888888;font-size:smaller;padding:5px;text-align: \
center;font-family:arial,verdana,arial,sans-serif;margin-top:1em;clear:both;margin:auto">
 <a href="http://www.mulberrytech.com/xsl/xsl-list" target="_blank">
XSL-List info and archive</a>
<div style="text-align:center">
<a style="color:blue" href="http://-list/293509" target="_blank">EasyUnsubscribe</a>
(<a style="color:blue">by email</a>)
</div>
</div>
</div></blockquote></div><br></div></div></div><div class="HOEnZb"><div class="h5">
<div>
<div style="border-top:1px solid \
black;background-color:#dddddd;color:#888888;font-size:smaller;padding:5px;text-align: \
center;font-family:arial,verdana,arial,sans-serif;margin-top:1em;clear:both;margin:auto">
 <a href="http://www.mulberrytech.com/xsl/xsl-list" target="_blank">
XSL-List info and archive</a>
<div style="text-align:center">
<a style="color:blue" href="-list/1005724" target="_blank">EasyUnsubscribe</a>
(<a style="color:blue" href="" target="_blank">by email</a>)
</div>
</div>
</div></div></div></blockquote></div><br></div>
<div><!-- begin bl.html.trailer -->
<div style="border-top:1px solid black; background-color: #dddddd;
color: #888888; font-size: smaller; padding: 5px; text-align: center;
font-family: arial,verdana,arial,sans-serif; margin-top:1em; clear:
both; margin: auto">
<a href="http://www.mulberrytech.com/xsl/xsl-list">
XSL-List info and archive</a>
<div style="text-align:center;">
<a style="color: blue;"
  href="http://lists.mulberrytech.com/unsub/xsl-list/651070"
> EasyUnsubscribe</a>
(<a style="color: blue;"
href="mailto:xsl-list-unsub@lists.mulberrytech.com?subject=remove"
> by email</a>)
</div>
</div>
<!-- end bl.html.trailer --></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic