--===============0621217528== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_uP4lASRS3CjMapC"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_uP4lASRS3CjMapC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 04 May 2004 11.33, frank_schoolmeesters@fastmail.fm wrote: > Hi, > > I write the documentation for Krusader and i try to use profiling, > but untill now without success. > The purpose is to put some extra screenshots in the HTML version of > the documentation, which is been parsed from the KDE/Docbook source. > These extra screenshots will not be available in the HTML documentation > but not in the KDE help center. > The reason is that i don't want to "blow up" the sourcecode tarball > with screenshots. > So the docbook (source) version needs profiling for displaying the extra > screenshot in HTML, or not in the other versions. > Untill now i dit not find out how i can do this. You can do it with xsltproc, but this is sort of from memory, and I'm not s= ure=20 you can profile on role (I *know* you can profile on vendor and arch, I've= =20 never tried on role, but it ought to work) I'm also not sure that you can = do=20 this while using the KDE DTD, I've never tried. Hopefully this is enough t= o=20 point you in the right direction though. I expect you can find more=20 information on either the docbook wiki or in Bob Stayton's excellent XSLT=20 book (also available online.) Something like this in your sources: And to process (one commandline, sorry for the wrapping): xsltproc --output doc/index.docbook --catalogs --stringparam profile.role=20 manual /usr/local/share/xsl/docbook/xhtml/profile-docbook.xsl source.docbook Where source.docbook is your original XML file, and doc/index.docbook is wh= ere=20 you want the resulting docbook file to go. That would give you a docbook=20 file for further tranforming as usual (normally with meinproc) This kind of stuff is nightmarish to distribute, which is why we don't. Th= e=20 profile stylesheet is provided with the standard stylesheets, you'll need t= o=20 fix the path above of course. =20 Regards, =2D-=20 Lauri Watts KDE Documentation: http://i18n.kde.org/doc/ KDE on FreeBSD: http://freebsd.kde.org/ --Boundary-02=_uP4lASRS3CjMapC Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAl4Pu/gUyA7PWnacRAkdXAJ47NxhnNNJ7ny2pJt/TH4DYupnihwCfUALX PMuxopqtDH8ctKC8t+ghBIs= =QFw9 -----END PGP SIGNATURE----- --Boundary-02=_uP4lASRS3CjMapC-- --===============0621217528== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-docbook mailing list kde-docbook@kde.org https://mail.kde.org/mailman/listinfo/kde-docbook --===============0621217528==--