• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help with XSLT stylesheets.

Zombie

Platinum Member
Mod:- I need a answer to this and not many people check Software, Apps and programming forum.

need help with XSLT stylesheets.

I am transfroming an XML file to HTML file(using stylesheet). It creates a table and formats the data based on stylesheet. Now I would like to highlight certain cells in that table and I don't know how to go about it. All I can think of is add a highlight value for each field in XML file. Is this the best way to implement it?


I am using java for transformation.


thanks.
 
Uhh...I guess it depends. You may want to add an XML attribute like highlight="yes" to those fields you want highlighted. Then in the XSLT script do an xsl:if statement to check what the value of that highlight attribute is.

Some info on xsl:if
 
but I am afraid that adding attributes like that will explode the XML filesize 🙁. I should look in to bit operations since I have an element with several subelements as members/attributes.
 
Originally posted by: Zombie
but I am afraid that adding attributes like that will explode the XML filesize 🙁. I should look in to bit operations since I have an element with several subelements as members/attributes.

that is the only way i know of making it work.
it shouldnt be that bad adding a highlight tag.
i've done xml->html transformations on 5-10MB XML files from java and they are still pretty fast.
 
Back
Top