devxlogo

Create Elements in the Output tree of an XSL Transformation

Create Elements in the Output tree of an XSL Transformation

Consider the following XML fragment:

   www.devx.com  DevX Website

Let’s say that you want to transform this XML in the following simple HTML code:

 DevX Website

The most common way is to use the , , and elements as in the following template:

 

Consider using the templates that make use of the curly braces notation instead to save lots of typing as in the following:

 

devx-admin

Share the Post: