oLi Bou

Greenhorn
+ Follow
since Jul 03, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by oLi Bou

hi all,
I'm trying to output some HTML using the HTMLEditorKit.
to do this, i use the HTMLEditorKit.read(Reader, Document, int) method like this :

unfortunately, the output is not like i'd like to .. i'd like to see the "bold" parts if there is a <b> tag around some word.
Instead of this output, I get this one :

could you plz help me ?
thx in advance, oLi
21 years ago
thanks ...
In fact i do not need it anymore because i decided to implement this in DOM with Java. So i'll be able to popup some DialogBox and tell the user that a book is not referenced, and let him the possibility to reference it directly.
It suits more to my needs finally. But i'm glad to know something i didn't knew yet, thanks
see ya .. oLi
hi all,
I'll try to be as clear as i can :roll:
here is the code :

this is a variable i'd like to access with the xalan:nodeset extension function to be able to access the node values (for ex : $1861005946/bookTitle )
to do this; i need to do the following :

my point is that i need to get this "isbn information" from another .xml file that contains tag like :

so i've made an xsl:variable that looks like this

and i'd like to use the value of $isbn to call the xalan:nodeset.. dunno if ur still following
so i finally would like to use something like this

i've tried

but it doesn(t seems to work ..
if ur still there and understood something, do u plz have an answer ?
==========================
to be clearer :
i have a variable who's value is the name of another variable i need to call ... how do i do that ?
==========================
thx
[ August 22, 2002: Message edited by: oLi Bou ]
hi,
I'd like to automatically create an index of words at the end of my pdf doc (generated with FOP and fo file).
By now, my index is created, and sorted alphabetically (<xsl:sort> element). but if i index a word (let's say "HTTP") more than one time, I've got an output like this
HTTP, Definition.....................page2
HTTP, HTTP Response..................page3
instead of :
HTTP
Definition.........................page2
HTTP Response......................page3
How do you thinf i could check if there is already an index created for each word (with xslt, not JAVA).
thx and regards.
it's not really a good solution ...
but i've got another one, which seems to be able to work : using <fo:block white-space-collapse="false">
but then i need to have my fo to look like this

but it isn't really like this, sadly ...
when I've got my xml code

and my stylesheet code

it renders it in my fo more like

do you have some suggestion to get my fo to look great ?
thx
hi all,
I'd like to auto-indent some xml code while rendering it to PDF (using FOP).
i thought about using whitespaces ( , , ) to do it but it doesn't seems to work ... does anyone have another idea ?
thx.
what do u mean by not using the J2SE 1.4 ?
The way i would actually do it :

dunno if that helps ..
21 years ago
hi,
I've got two other questions about this piece of code ..
1) how could it be possible to render the title differently if it is a level1 title or a level2, or level3, ...
2) with your code, my chapter titles aren't displayed correctly because i can have chapters inside chapters. and with the ./chapter, it can only take the "first level" chapters, and not the others. I tried something like this ".//chapter" but it doesn't go, because of my <xsl:apply-templates/> tag. it displays all the chapters twice.
I know it is possible because i read it somewhere but I can't find it anymore
thx
[ July 25, 2002: Message edited by: oLi Bou ]
Why, Why, Why didn't I found it by myself ?
i changed the post with the UBBcode thanks for the advice ...
and thanks for the trick too
oLi
[ July 25, 2002: Message edited by: oLi Bou ]
hi,
i've got an xml file like this

---------------------
and i'd like to make an fo that displays
the courseName for each course and then the title (and content) of the chapters of THIS course.
something like :
WEB
HTTP
contentHTTP
HTML
contentHTML
JAVA
Observer Design Pattern
contentODP
...
the way i do it now :

-----------------------------------
it doesn't work because for each course, it displays ALL the chapters.
could you give me some help .. thanks
oLi
[ July 25, 2002: Message edited by: oLi Bou ]
[ July 25, 2002: Message edited by: oLi Bou ]
here is my code :
------------------
XML file :
<image>
<src>c:/courses/XML/images/HTTP.svg</src>
</image>
StyleSheet :
<xsl:template match="image">
<fo:block text-align="center"
space-after.optimum="10pt"
space-before.optimum="10pt">
<fo:external-graphic src="{src}"
width-max="8.2in"/>
</fo:block>
</xsl:template>
-------------------
so src contains the Path to the image on my disk.
In Fact, i do not use <xsl:variable>s anymore because it seems that the attribute "width" doesn't work on SVG files.
so i made modifications in my svg transcoder instead.
See ya
[ July 24, 2002: Message edited by: oLi Bou ]
hi,
for {src} i think it is right coz it's no xslt variable.
for the rest, thank you very much.
oLi
hi,
i'd like to give variables values to an fo element :
<xsl:variable name="page-height" select="297"/>
<xsl:variable name="width-max" select="concat($page-height,'mm')"/>
<xsl:variable name="widthval" select="0.75 * $page-height"/>
<xsl:variable name="width" select="concat($widthval, 'mm')/>
<xsl:template match="image">
<fo:block text-align="center"
space-after.optimum="10pt"
space-before.optimum="10pt"
width-max="$width-max"
width="$width">
<fo:external-graphic src="{src}"/>
</fo:block>
</xsl:template>
this doesn't work , and FOP says '$width' does not fit.
thx.
hi,
how is it possible to change the space between list-item-label and the list-item-body ?
thx.