agon glo | 1 Sep 22:27 2002
Picon

sidebar in pop up window

Hello,

I'd like to display the <sidebar> element content in a pop up window.

Any suggestions on how I can accomplish that with DocBook stylesheets.

Thank you in advance.

Agon

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Michael Smith | 2 Sep 03:53 2002

Ant XSLT style processing

A couple of other Ant/XSLT-related things to check out:

  Andy Clark's CyberNeko Style Processor
  http://www.apache.org/~andyc/neko/doc/style/

  Arnold deVos's Styler task
  http://www.langdale.com.au/styler/

[Note that messages related to publishing DocBook documents or about
specific tools should go to the docbook-apps list. The docbook list is
for messages related to authoring or markup -- that is, related to
creating DocBook source documents, as opposed to processing them.]

Michael Smith <smith <at> xml-doc.org> writes:

> Robert Kr?ger <krueger <at> signal7.de> writes:
> 
> > thanks a lot. that is exactly what I was looking for. I use ant's style task 
> > with jdk1.4. You don't happen to know how I can hook an XInclude processior 
> > into that combo? 
> 
> Ernst de Haan's Ant XInclude task:
> 
>   http://people.freebsd.org/~znerd/xinclude-task/
> 
> It uses Elliotte Rusty Harold's XInclude Engine:
> 
>   http://www.ibiblio.org/xml/XInclude/

(Continue reading)

Bob Stayton | 2 Sep 09:35 2002
Picon

Re: sidebar in pop up window

On Sun, Sep 01, 2002 at 04:27:09PM -0400, agon glo wrote:
> Hello,
> 
> I'd like to display the <sidebar> element content in a pop up window.
> 
> Any suggestions on how I can accomplish that with DocBook stylesheets.

That's not a a built-in feature, so you would have
to write a customization to do that.
You need to write a replacement XSL template
for <xsl:template match="sidebar"> (the original is
in html/block.xsl in the DocBook XSL distribution, but
it doesn't do much).

The things it would need to do include:

1.  Figure out a unique filename for each popup.

2.  Call the 'write.chunk' template with the correct set of
parameters, including the content.

3.  Generate an anchor of some sort so the user knows there
is a sidebar and can click to reach it. The anchor might
look like this:

<a href="sidebar.filename.html" target="sidebar">Sidebar title</a>

An easier but slower way would be to submit a feature
request to the docbook sourceforge site at
http://sourceforge.net/projects/docbook/.  No guarantee
(Continue reading)

Robert Krüger | 2 Sep 13:36 2002
Picon

anyone success ant's style task with jdk1.4 and org.znerd.xincludetask.XIncludeTask


Hi,

I tried that combination but the xi:include tags are not resolved. instead the 
processed document contains a lot of attributes the source didn't contain 
(probably deafult values specified in the dtd but I haven't checked).

is this a known problem? did anyone solve it?

thanks in advance,

robert

Robert Krüger | 2 Sep 14:38 2002
Picon

docbook-xsl and textdata fileref


Hi,

upon a suggestion by norman I tried the following with docbook xsl v1.53:

<programlisting><textobject>
<textdata fileref="pathtoprogramlisting"/>
</textobject>
</programlisting>

the fileref does not seem to be resolved and I do not get any text output?

I'm using xml parser/xslt processor bundled with jdk1.4 and ant's style task.

is this feature not yet implemented in docbook-xsl or is this a problem with 
my local setup?

thanks in advance,

robert

Jirka Kosek | 2 Sep 15:52 2002
Picon

Re: docbook-xsl and textdata fileref

Robert Krüger wrote:

> the fileref does not seem to be resolved and I do not get any text output?
> 
> I'm using xml parser/xslt processor bundled with jdk1.4 and ant's style task.

This works only if your XSLT processor is configured to use specific
DocBook extensions. Currently Xalan and Saxon are supported processors.
In order to use this extensions you must add xalan2.jar or saxon643.jar
to your classpath and set stylesheet parameter use.extensions to 1.

				Jirka

--

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka <at> kosek.cz
  http://www.kosek.cz

Kraa de Simon | 1 Sep 22:31 2002

OT: Searching HTML

Hi,

We would like to be able to search the HTML files generated by the DocBook
stylesheets.

Anyone know how this can be done?

Is this also possible if the files are on a CD instead of a website?

Thanks,

Simon.

Janning Vygen | 2 Sep 16:18 2002
Picon
Picon

Manually Chunking with PIs

Hi,

after searching quite a bit i found the possibility to chunk docbook 
docs manually with maketoc.xsl and chunktoc.xsl and parse them into 
different subdirectories with <?dbhtml dir=..?> PIs (using 
docbook-xsl 1.53) now i have a few question after reading lots of 
stuff about docbook

these questions all belong to the same topic so i post them in one 
message. i hope thats ok for you:

1. the toc file ist generated by maketoc.xsl
but you always have to edit the toc file according to your needs. 

Wouldn't it be nice to have a processing instruction like
<?dbhmtl chunk=0?> or <?dbhmtl chunk=1?> 
to place inside you xml and let maketoc.xsl generate a toc file 
respecting xsl parameters like chunk.section.depth and those PIs??

2. Is there a doc about dbhtml attributes. I found "filename" and 
"dir". Are there more dbhtml attributes which can be used?

3. Directories cant be created by the XSLT Processor. Does anybody 
has written a stylesheet converting toc file to a shell script which  
creates all needed directories?

kind regards,
janning

(Continue reading)

Jirka Kosek | 2 Sep 16:39 2002
Picon

Re: OT: Searching HTML

Kraa de Simon wrote:

> We would like to be able to search the HTML files generated by the DocBook
> stylesheets.
> 
> Anyone know how this can be done?
> 
> Is this also possible if the files are on a CD instead of a website?

If you know that target users will have Windows, you can generate HTML
Help from DocBook. HTML Help is format used for on-line help in many
Windows applications including Windows itself. HTML Help contains HTML
pages and additional panes with ToC, index and full-text search.
Starting from Windows 98 HTML Help viewer is standard part of Windows
and you can also redistribute viewer on your CD.

There is also Java-based JavaHelp with similar capabilities, but it's
significantly slower and not so user-friendly as HTML Help.

I saw also some Java-applet based search engines targeted for CD-ROM
distributed collections of HTML pages. 

				Jirka

--

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka <at> kosek.cz
  http://www.kosek.cz

(Continue reading)

Jirka Kosek | 2 Sep 16:42 2002
Picon

Re: Manually Chunking with PIs

Janning Vygen wrote:

> 3. Directories cant be created by the XSLT Processor. Does anybody
> has written a stylesheet converting toc file to a shell script which
> creates all needed directories?

This depends on OS and processor used. E.g. Saxon on Windows is able to
create directory if it doesn't exists yet.

			Jirka

--

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka <at> kosek.cz
  http://www.kosek.cz


Gmane