Quantcast

Changes in white space handling with xmldb:store and .xar deployment

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Changes in white space handling with xmldb:store and .xar deployment

wsalesky
Hi All, 
I have noticed an interesting change in whitespace handling since eXist 3.0 (also found in 3.1.0 and 3.1.1). When deploying our .xar package and storing files using xmldb:store I get added whitespace that is not present when saving via webdav. 

The place I noticed it the most is in our navigation menu, where we use SVG icons. When the .xar is deployed to eXist, the html has spaces added in between the span elements which results in the SVG not displaying correctly. See:


I can go in via webdav and remove the spaces, re-save the html and the display is fine. 

Example html code looks like this: 

     <a href="$app-root/geo/index.html" class="icon-container">
                <span class="syriaca-icon syriaca-geo icon-nav">
                    <span class="path1"/>
                    <span class="path2"/>
                    <span class="path3"/>
                    <span class="path4"/>
                </span>
                <span class="icon-text">Gazetteer</span>
            </a>

We had no problem with this code in v2.2. 

Has anyone else experienced this? Should I file a bug? 

Thanks, 

-Winona


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Changes in white space handling with xmldb:store and .xar deployment

Dannes Wessels-3
Hi Winona,

On 4 Apr 2017, at 15:31 , Winona Salesky <[hidden email]> wrote:

I have noticed an interesting change in whitespace handling since eXist 3.0 (also found in 3.1.0 and 3.1.1)

….

I can go in via webdav and remove the spaces, re-save the html and the display is fine. 

….

We had no problem with this code in v2.2. 



We had quite some changes in the whitespace handling after 3.0RC1 ; The changes are merely improvements (e,g, for the TEI community), but a you show there is either a side effect or a bug. We’d need to consult Leif-Jöran on this.

Filing an issue will certainly help up, please attach some files/code/… that show what is happening….

cheers

Dannes


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Changes in white space handling with xmldb:store and .xar deployment

wsalesky
Thanks, I will write up an issue, with some example files. 
-Winona


On Tue, Apr 4, 2017 at 5:03 PM, Dannes Wessels <[hidden email]> wrote:
Hi Winona,

On 4 Apr 2017, at 15:31 , Winona Salesky <[hidden email]> wrote:

I have noticed an interesting change in whitespace handling since eXist 3.0 (also found in 3.1.0 and 3.1.1)

….

I can go in via webdav and remove the spaces, re-save the html and the display is fine. 

….

We had no problem with this code in v2.2. 



We had quite some changes in the whitespace handling after 3.0RC1 ; The changes are merely improvements (e,g, for the TEI community), but a you show there is either a side effect or a bug. We’d need to consult Leif-Jöran on this.

Filing an issue will certainly help up, please attach some files/code/… that show what is happening….

cheers

Dannes



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...