Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] node test on element of an attribute [Thread Next] Re: [xsl] node test on element of an attributeTo: Date: 9/1/2006 7:49:00 AM David Carlisle wrote:
I hoped to be able to treat this in one template match for @vo-name,
something like
you can test
<xsl:if test="parent::entity" > ...
Must have been a typo or other mistake by me. Of course it works.
but if a template just consists of a choose testing the parent its
normally clearer to have two templates
match="entity/@vo-name">....
match="property/@vo-name">...
Yes, this a possible solution too, but then I had to duplicate a lot of
other code. So xsl:choose was the better approach for me.
Thanks,
Georges | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
