After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 114117 - Change chunking behavior
Change chunking behavior
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: XSLT
git master
Other Linux
: Normal normal
: ---
Assigned To: Mikael Hallendal
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2003-05-31 09:40 UTC by Shaun McCance
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Overhaul of Yelp's stylesheet customizations (41.71 KB, patch)
2003-05-31 10:10 UTC, Shaun McCance
none Details | Review
Additional file required by new stylesheet customizations. (12.55 KB, text/xsl)
2003-05-31 10:11 UTC, Shaun McCance
  Details
Stylesheet overhaul with better Prev/Next link handling (41.70 KB, patch)
2003-05-31 13:31 UTC, Shaun McCance
none Details | Review
Still more improvements on the new stylesheets. (43.23 KB, patch)
2003-06-01 04:16 UTC, Shaun McCance
none Details | Review
Improved improved new stylesheets. (43.20 KB, patch)
2003-06-01 07:35 UTC, Shaun McCance
none Details | Review
Updated set of functions for improved improved new stylesheet. (14.49 KB, text/xsl)
2003-06-01 07:36 UTC, Shaun McCance
  Details
Restrict depth of nodes in the sidebar. (800 bytes, patch)
2003-06-07 22:56 UTC, Shaun McCance
none Details | Review

Description Shaun McCance 2003-05-31 09:40:25 UTC
As discussed on gnome-doc-list, I'd like to change the chunking behavior of
Yelp so that divisions are either in their own chunk, or they're displayed
inline in their parent division, but never both.  I've attached a patch to
do this.  This patch is a fairly extensive overhaul of Yelp's stylesheet
customizations.

The relevant gnome-doc-list thread is here:
http://mail.gnome.org/archives/gnome-doc-list/2003-May/msg00036.html
Comment 1 Shaun McCance 2003-05-31 10:10:32 UTC
Created attachment 17006 [details] [review]
Overhaul of Yelp's stylesheet customizations
Comment 2 Shaun McCance 2003-05-31 10:11:35 UTC
Created attachment 17008 [details]
Additional file required by new stylesheet customizations.
Comment 3 Shaun McCance 2003-05-31 13:19:13 UTC
That patch gets Prev/Next links wrong in a few cases.  I'm attaching a
patch that doesn't suck as badly.
Comment 4 Shaun McCance 2003-05-31 13:31:39 UTC
Created attachment 17012 [details] [review]
Stylesheet overhaul with better Prev/Next link handling
Comment 5 Shaun McCance 2003-06-01 04:15:30 UTC
Submitting yet another improved patch.  The Next link on the TOC was
unchanged from the old stylesheets, which was broken.  That's fixed. 
And href.target was unchanged, which causes stuff like the preface and
glossary of AisleRiot not to be properly linked to.  That's also fixed.
Comment 6 Shaun McCance 2003-06-01 04:16:35 UTC
Created attachment 17021 [details] [review]
Still more improvements on the new stylesheets.
Comment 7 Shaun McCance 2003-06-01 07:34:06 UTC
OK, that's not quite right either.  The last patch breaks stuff for
the User's Guide.  I don't like the rather hacked way the User's Guide
is registered, but there's not much I can do about it right now other
than work around it.  I'm attaching yet another patch which fixes this
and another little bug in the Previous links.  This also involves an
extra function in yelp-functions.xsl, so I'm attaching a new version
of that as well.  Sorry for all the noise here.
Comment 8 Shaun McCance 2003-06-01 07:35:17 UTC
Created attachment 17033 [details] [review]
Improved improved new stylesheets.
Comment 9 Shaun McCance 2003-06-01 07:36:10 UTC
Created attachment 17034 [details]
Updated set of functions for improved improved new stylesheet.
Comment 10 Shaun McCance 2003-06-07 22:55:59 UTC
Since Yelp can't scroll to fragments, the sidebar is a bit broken with
these stylesheets.  Specifically, the sidebar may show nodes which are
deeper than these stylesheets chunk.  Since there's no chunk for them,
Yelp throws the whole document at you, which is unpleasant.  I'm
attaching a patch that restricts the depth of the sidebar to be
consistant with how the document is chunked.
Comment 11 Shaun McCance 2003-06-07 22:56:49 UTC
Created attachment 17300 [details] [review]
Restrict depth of nodes in the sidebar.
Comment 12 John Fleck 2003-06-09 00:54:00 UTC
Shaun - In terms of the "rather hacked way the User's Guide
is registered," to borrow your apt description - The 2.4 release
offers a chance to change things if you've an alternative approach.

Also, do you have a cvs account yet so you can check things in yourself?
Comment 13 Shaun McCance 2003-06-09 01:07:51 UTC
I don't think I could change the way the User's Guide is registered
very well before the feature freeze in four hours.  With my
stylesheets, registering the chapter directly would almost work, but
you wouldn't get the front matter.  I'm not sure how widespread this
"transparent part" stuff is, but I've never seen it used elsewhere. 
However, Scrollkeeper does support it for the TOC.  (Also, I should
change my support of it to match Scrollkeeper's, i.e. thread over
id-less parts.  That's a trivial change, and it's also less messy.)

I don't have a CVS account.  Should I email accounts and ask for one?
Comment 14 Shaun McCance 2003-06-09 01:16:46 UTC
I meant to elaborate more on the way the User's Guide is registered
with Scrollkeeper.  Note that registering chapters instead of parts
still doesn't fix #111886.  I think the best solution would be to
register the whole file and a fragment identifier of some sort,
preferably with XPointer.  But I can't do that in time for the feature
freeze.
Comment 15 John Fleck 2003-06-10 13:15:54 UTC
Shaun's omnibus patch is checked in.
Comment 16 John Fleck 2003-06-14 18:57:13 UTC
Can I close this one now (and therefore also 98805 and 98361)?