Andy B. wrote:
Thank you so much, Hussein!

I used alternative #1 (with a slight addition).  That made a big
difference, although not as big as you experienced.  I used

---
object:before
{
    color: black;
    font-family: sans-serif;
    font-size: 100%;
    font-style: normal;
    font-weight: normal;
    content:text-field(attribute, type, columns, 8, font-size,
small,background-color,object-background-color())

text(xpath("(/xxxxxpaper/styledPaper/xxxxPaper|/xxxxPaper)/types/type[@id=current()/@type]/@before"),background-color,object-background-color())
    ;
}
---

and
---
\object:after
{

content:text(xpath("(/xxxxxpaper/styledPaper/xxxxPaper|/xxxxPaper)/types/type[@id=current()/@type]/@after"),background-color,object-background-color())
    ;
}
---

That is, the difference is in the xpath:

xpath("(/xxxxxpaper/styledPaper/xxxxPaper|/xxxxPaper)/...

I did this because the top level element is xxxxxpaper when there is a
publisher style sheet and the top level element is xxxxPaper when there
is no publisher style sheet.

For me, it went from 13:30 minutes down to 5:27 minutes to load.

This confirms that what I wrote you is correct. Something like text(xpath("id(@type)/...")) is indeed extremely slow.




While that's a huge difference it doesn't match the 10 seconds you got.  Did
you also make some other CSS loading improvements that XXE 7.3 does not
have?


Sorry. Yes, you are right.

I did a change which I thought was insignificant. This very minor change --removing one useless line of code-- was related to "label(xpath,...)" (http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/label.html).

Without this change, the JJJ.xml document takes about 3 minutes to load. With this change, I confirm that the JJJ.xml document takes about 10 seconds to load.

Note that even with:

xpath("(/xxxxxpaper/styledPaper/xxxxPaper|/xxxxPaper)/...

it still takes about 10 seconds to load, which is good news.



--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to