xsl-list
[Top] [All Lists]

[xsl] How to strip all optional but empty elements from a XML doc?

2009-08-04 00:56:12
Assume I have a XML doc and a XSD schema file which defines mandatory and 
optional element fields.

How can I now go recursively through the whole XML document and find all 
elements which are optional (e.g. minoccurs=0)
but currently EMPTY. These empty, optional elements should be stripped off so 
that the resulting XML does not contain them any more.

How can I achive this with an XSLT script?

Ben



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>