aspose file tools*
The moose likes XML and Related Technologies and the fly likes Help displaying Variables in XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help displaying Variables in XSLT " Watch "Help displaying Variables in XSLT " New topic
Author

Help displaying Variables in XSLT

James Hambrick
Ranch Hand

Joined: Sep 04, 2004
Posts: 282

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!


Visit my blog! http://jameshambrick.com
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4363
    
    8

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

Joined: Sep 04, 2004
Posts: 282

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help displaying Variables in XSLT