This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes common xsl 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 "common xsl" Watch "common xsl" New topic
Author

common xsl

Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hai,
I'm trying to write a common xsl templates for pdf and html.
My idea is to have a global variable called "Tag", depending upon the command like parameter the variable "Tag" will be assigned either to "<fo:block></fo:block>" or "<span></span>"
now inside my template(s) i can use
<xsl:value-of select=""$Tag" />Some Text<xsl:value-of select=""$Tag" />
But this is not working as the xsl:variable can't have "<, /, >" literals. I also tried using xsl:copy-of but no use.
kindly looking for your help on this or any new ideas...
Regards
Balaji


Spritle Software Blogs
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: common xsl
 
It's not a secret anymore!