cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

docmap content display question

ptc-2916524
1-Newbie

docmap content display question

Hello folks,

I want to change what content is displayed on a given node in the document
map display. My XML is like this:

<chapter>
<num>123</num>
<title>blah blah</title>

I always want the content of <title> to display next to the <chapter> node
in the docmap. <num> is an optional element. When <num> is not present,
I get what I want. When <num> is present, I see "123" on the chapter node
but I don't see the title at all. I need to always see the title.
Optimally, I would like to suppress the number when it is present but I
can live without that.

I can't figure out if this is possible using the DCF. Has anyone else out
there done this type of thing?

BTW, ignore the fact that it's seems silly to not see the chapter number
in the docmap - the above is just a simple representation of my actual
content.

Thanks,

Allen
4 REPLIES 4

Hi, Allen...
From some quick testing, I couldn't figure out a way to completely
hide the number, but playing with the "docmapInline" attribute (mostly
setting it to "hidden") of the "ElementOption" element in the DCF did
allow me to get the number and title to both display on the chapter line
in the docmap.

-Brandon 🙂



Brandon,

I see what you are suggesting. However, I left out an important detail: I
want to see the title when the chapter node is closed. Trying what you
suggest, I can see the title on the chapter line only if the chapter node
is open. BTW, in case you were wondering, I'm trying to do this without
resorting to gentext.

Thanks for your help,

Allen




"Ibach, Brandon L" <->
07/05/2007 01:29 PM
Please respond to
-


To
-
cc

Subject
[adepters] - RE: docmap content display question






Hi, Allen...
From some quick testing, I couldn't figure out a way to completely
hide the number, but playing with the "docmapInline" attribute (mostly
setting it to "hidden") of the "ElementOption" element in the DCF did
allow me to get the number and title to both display on the chapter line
in the docmap.
-Brandon Smiley Happy

Hi, Allen...
Ah, changing the software requirements after the initial delivery,
eh? Shame on you... 😉
Testing this out in the version of Docbook (axdocbook) delivered
with Editor 5.2, I put a <chapterinfo> tag at the front of my chapter
(before the title) and put a <productnumber> tag inside of that with the
content "123". Nothing appears on the chapter line in the docmap when
the chapter node is open, but when it is closed, the title appears there
and nothing else.
This behavior may be due to the chapter element being set to
category="division" on the ElementOption in the DCF and the title
element being set to category="title". If you have your DTD setup like
that in your DCF and it doesn't behave this way, how does it behave?
Also, do you have any DCF settings for the element(s) that come before
the title?

-Brandon 🙂



Brandon, you did it! Categorizing <chapter> as a div and <title> as a
title made the docmap look like I want.

Thanks!

Allen




"Ibach, Brandon L" <->
07/05/2007 03:01 PM
Please respond to
-


To
-
cc

Subject
[adepters] - RE: docmap content display question






Hi, Allen...
Ah, changing the software requirements after the initial delivery, eh?
Shame on you... Smiley Wink
Testing this out in the version of Docbook (axdocbook) delivered with
Editor 5.2, I put a <chapterinfo> tag at the front of my chapter (before
the title) and put a <productnumber> tag inside of that with the content
"123". Nothing appears on the chapter line in the docmap when the chapter
node is open, but when it is closed, the title appears there and nothing
else.
This behavior may be due to the chapter element being set to
category="division" on the ElementOption in the DCF and the title element
being set to category="title". If you have your DTD setup like that in
your DCF and it doesn't behave this way, how does it behave? Also, do you
have any DCF settings for the element(s) that come before the title?
-Brandon Smiley Happy

Announcements