Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Processing Mixed Content (combining copy-of and apply-templates?) Processing Mixed Content (combining copy-of and apply-templates?)To: NULL Date: 1/4/2007 2:31:00 PM
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?
Thanks!
Kevin
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
