xsl-list
[Top] [All Lists]

Re: [xsl] priority of key patterns

2012-11-14 04:59:36
On Wed, Nov 14, 2012 at 10:44 AM, Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
<xsl:template match="EmployeeCategory | PersonName | FormerlyKnown">
  <Name>


I cut the examples off with .... too early. Here are a few more
illustrating the more general case for which that solution will not
work.

 <ren:element from="Directors" to="Names"/>
 <ren:element from="ParentCompany" to="Names"/>
 <ren:element from="LegalStatusAdditional" to="AdditionalInfo"/>
 <ren:element from="EmployeeChanges" to="Changes"/>

...just add more templates!?!


I think it is better to achieve it by adding data (which is what that
variable is).

--~------------------------------------------------------------------
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>
--~--