• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help displaying Variables in XSLT

 
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a XSLT file that creates a HTML table. I have added a few rows and display a variable in them. Here's the relevenat code.


When I run the report the rows I added look fine except for the cells that are supposed to show the variables. The borders of those cells looks washed out not like the others. I an new to this if you could not tell and this is probably a beginner problem.


Thanks!
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My advice would be - don't look at the XSLT to work out why the output doesn't look like it should. Look at the generated HTML. Play with that until you get the right look, and then work out how to get the XSLT to produce that output.

(I'd also recommend getting rid of all your <font> tags and using CSS for styling, but that's not your actual problem).
 
James Hambrick
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am looking at the HTML and see that for the part that works the variable is shown as the value of the variable, while the one that does not work shows <FN:VALUE-OF select="26GaugeTotal" /> as the value. I am not real sure what namespaces are, but I am trying to access the fn namespace whlie inside a xsl loop namespace. Not sure if that matters. Here's the HTML



As far as all the font tags, this is a template made by another company, I am just modifying and with time constraints I just need for it to work for now.
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic