Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: xsl copy xsl copyTo: NULL Date: 11/12/2008 2:46:00 PM Hi,
I have an xml something like this.
<Test>
<Type>New</Type>
<Lang>
<English>
<Screenplay>test11</Screenplay>
<Script>script11</Script>
</English>
<ExpiryDate>2009-10-10</ExpiryDate>
</Lang>
<StudentNumber>1234333</StudentNumber>
<RequestDate>2008-10-10</RequestDate>
<FirstName>David</FirstName>
<MiddleName>-</MiddleName>
<LastName>Burges</LastName>
<Qualifier>-</Qualifier>
<Status></Status>
</Test>
I would like to have an output xml as the same structure as above, but
Omit the elements if a "-" is the only data in the element (for eg. should
keep the date element expiry date, but omit MiddleName, Qualifier)
Since i dont know about the xml data and structure inside the xml when doing
the xsl transformation, i tried using xsl copy instead of select,
but didnt know how to check for the conditions.
Thanks
Ganesh
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
