Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

zvon example doubt

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.zvon.org/xxl/XSLTutorial/Output/example7_ch1.html
Stylesheet1 example.
why is <b></b> common for fname and surname in output?
Why did it not display surname in italics?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since there is no match of surname as child of source (root).
 
Vasan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shan,
in the example we are selecting the value. Instead of value-of when we use apply-templates it will come in <i>.
Hope iam clear.
regards
Vasan
 
Vidya Nayak
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is value-of, then only content of element is used without further processing. If apply-template is used, processing is done as per template definition (i for surname in this case).
Cheers,
Vidya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic