Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] node test on element of an attribute

From: Georges Schmitz <georges.schmitz@--------->
To:
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent