xsl-list
[Top] [All Lists]

Copy missing elements

2005-09-06 05:14:17
I have the basic structure.

<list>
    <member>
        <lastname>Jones</lastname>
        <firstname>Frank</firstname>
        <email>frank(_at_)jones(_dot_)com</email>
    </member>
    <member>
        <lastname>Smith</lastname>
        <firstname>John</firstname>
    </member>
</list>

The second <member> does not have an <email> element. I want to duplicate
the structure, but add an empty <email> element to the new xml document, so
it looks like this:

<list>
    <member>
        <lastname>Jones</lastname>
        <firstname>Frank</firstname>
        <email>frank(_at_)jones(_dot_)com</email>
    </member>
    <member>
        <lastname>Smith</lastname>
        <firstname>John</firstname>
        <email></email>
    </member>
</list>

Thank you in advance.

Rick Quatro
Carmen Publishing
585 659-8267
rick(_at_)frameexpert(_dot_)com
www.frameexpert.com


--~------------------------------------------------------------------
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>