Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

On printing the fields based on the xsi type in XLS formatting                             

Author Name Status Posted Time
Akshay Devsi 1/7/2008 1:09:29 AM
Author is Offline

Hi all,

My XML schema defines a customer to be of type UK or Non-UK European making use of xsi:type.

The difference between the complex UK and Non-UK European customer types is they have an additional TWO extra fields from the standard customer type.

UK customer additionaly have CustomerCounty &
CustomerPostcode
Non-UK European have CustomerAddressline5(optional) &
Timezone(I dont need to print this)

However in my XSL I'm hardcoding the selecting of element names in (see code below).

I've looked at <xsl:if>
but dont know how to compare the complex xsi type.

Can anyone help please to suggest away I only print the fields based on the xsi type?

Also as elemnt addresslline5 is optional for complex type NonUKEuropean customer is there a way to check if the field is present i.e. nulls before selectign the value?

I guess I could just reference all fields and if there empty or not present they wont print, but I'm sure there's a much better solution outthere.

Thanks

 

Subject Author Status Date

Re: On printing the fields based on the xsi type i
n XLS formatting

Philippe Henderson 1/7/2008 3:08:25 AM

Re: On printing the fields based on the xsi type i
n XLS formatting

Philippe Henderson 1/7/2008 3:09:00 AM

Re: I've got the testing for empty strings

Akshay Devsi 1/7/2008 3:10:50 AM

Re: I removed

Philippe Henderson 1/7/2008 3:19:02 AM

Re: the xmlns:xsi namespace

Philippe Henderson 1/7/2008 3:22:09 AM

Re: Thanks for all the help

Akshay Devsi 1/7/2008 3:23:31 AM

Re: the xmlns:xsi namespaces are defined different
ly.

Philippe Henderson 1/7/2008 3:25:04 AM
Related Forums
Optimizing Images
Get a Website Template for Free!!!
Get a Website Template for Free!!!
Reply to Hesus!!!
Do You Sell Your Templates on Ebay?





Home | About Us | Site Map | Privacy Policy