• 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

common xsl

 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic