Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Processing Mixed Content (combining copy-of and apply-templates?) >Thread Next - Re: Processing Mixed Content (combining copy-of and apply-templates?) Re: Processing Mixed Content (combining copy-of and apply-templates?)To: NULL Date: 1/4/2007 5:02:00 PM "KW" <kevinw@a...> wrote in message news:1167949889.753016.30180@q...... > If I have an xml snippet like... > > <mytag> > <h1>A Title Here</h1> > <p>A paragraph here</p> > <myothertag someatt="something"> > <more tags /> > </myothertag> > <p>A final paragraph</p> > </mytag> > > which contains both XHTML and some custom XML tags, how can I have my > XSL stylesheet process the XHTML tags using a <copy-of> approach > (simply outputting the markup as is) and also process the custom XML > tags using a <apply-templates> approach, all while maintaining the > order of the items in the result tree? > > I know I could write templates for every possible HTML tag along with > templates for my custom XML tags, but that seems like more work than > necessary. The idea is that I want to be able to combine XHTML and > custom tags within a specific element, but only really override the > processing for the custom XML tags. > > Is this even possible? Yes, and it is very easy :o) Do read about "identity template" or "identity transformation". Cheers, Dimitre Novatchev | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
