Search found 7 matches

by Tiramma
Mon Apr 18, 2005 10:43 pm
Forum: XSLT and FOP
Topic: Menu items parsed twice
Replies: 1
Views: 6773

Menu items parsed twice

I have a problem with a bit of XSLT that is parsing a submenu twice. What I need is this: <ul id="meny"> <li><a href="">Menu 1</a></li> <li><a href="">Menu 2</a> <ul> <li><a href="">Menu 2-1</a></li> <li><a href="">Menu 2-2</a></li> </ul> </li> <li><...
by Tiramma
Tue Apr 12, 2005 1:21 pm
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

All solved:) In case you want to know, this is the bit that did it: <xsl:template match="FOLDERS/*" mode="MAIN_MENU"> <xsl:variable name="url"> <xsl:choose> <xsl:when test="starts-with(LABEL, 'http://')"><xsl:value-of select="LABEL"/></xsl:when> <xsl...
by Tiramma
Mon Apr 11, 2005 10:08 pm
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

The good news is the server is back up, the bad news is it didn't work when I tried to do as you suggested:\ I'm not sure I did it right, though ... I'm including the full XSLT sheet as it was originally below, in case that helps any (crossing my fingers): <?xml version="1.0" encoding=&quo...
by Tiramma
Mon Apr 11, 2005 9:38 pm
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

Unfortunately I can neither give you a complete stylesheet nor test your suggestion right now, seeing as the production server is down:\ I'll be back when it is up and running again!
by Tiramma
Mon Apr 11, 2005 3:55 pm
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

Hm -- sorry about that ... I hope the code below helps. I've pared things down to four menu items, for brevity, but there should really be eight. This is the XML: <DOCUMENT> <BODY> (...) <ARTICLES> <ACTION ID="50"> <FOLDERS> <FOLDER> <NAME>Item 1</NAME> <ID>151</ID> <PARENT>148</PARENT> <U...
by Tiramma
Mon Apr 11, 2005 1:28 pm
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

I've been told it's a bit hard to understand what I want to achive, so I'll try to explain that more clearly: I need an unordered list where each list item can be given a different class, something like this: <ul> <li class="red">Item 1</li> <li class="blue">Item 2</li> ... <li c...
by Tiramma
Mon Apr 11, 2005 10:59 am
Forum: XSLT and FOP
Topic: :choose CSS-class?
Replies: 7
Views: 10173

:choose CSS-class?

Hi all! I have something of a basic question. It seems I was even more out of practice than I thought when I took on this job ... The XSLT below generates a menu in the form of an Unordered List. I've managed to make it appear where I want it, but I also need to assign a different .CLASS to each LIs...