xsl-list
[Top] [All Lists]

[xsl] Creating Nested Structure Based on Attributes

2007-03-19 02:25:23
Hi,

I have elements that have the following attributes:
- font-style
- font-variant
- font-weight
- text-underline-style
- vertical-alignment

however these attributes may or may not be all present in an element. How can I create a structure output based on this attributes:

example source:

<inline font-style="italic" font-variant="small-caps" font-weight="bold" vertical-alignment="superscript">text</inline>

desired output:

<inline>
   <emphasis format="italic">
       <emphasis format="smallcaps">
           <emphasis format="bold">
               <superscript>text</superscript>
           </emphasis>
       </emphasis>
   </emphasis>
</inline>

Thanks,
--
*Jeff Sese*


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>