xsl-list
[Top] [All Lists]

gathering entities when transforming

2005-06-22 13:12:11
I have an XML file that I need to add another layer of elements to.  The
XML currently is:

<?xml version="1.0" encoding="utf-8"?>
<!--ArborText, Inc., 1988-2002, v.4002-->
<!DOCTYPE diagnosticwp SYSTEM
"Production_Rev_3061_MIL-STD-40051-2361C.dtd"[
<!ENTITY obj.5  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\CHORD.wmf" NDATA WMF>
<!ENTITY obj.6  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8801.wmf" NDATA
WMF>
<!ENTITY obj.7  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8802.wmf" NDATA
WMF>
<!ENTITY obj.8  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8801.wmf" NDATA
WMF>
<!ENTITY obj.9  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8802.wmf" NDATA
WMF>
<!ENTITY obj.10  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8803.wmf" NDATA
WMF>
]>
<?Pub Inc?>
<diagnosticwp wpno="e88-20">
<statemanipulation>
<string>foobar</string>
</statemanipulation>
</diagnosticwp>
...

What I want is:

<?xml version="1.0" encoding="utf-8"?>
<!--ArborText, Inc., 1988-2002, v.4002-->
<!DOCTYPE diagnosticwp SYSTEM
"Production_Rev_3061_MIL-STD-40051-2361C.dtd"[
<!ENTITY obj.5  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\CHORD.wmf" NDATA WMF>
<!ENTITY obj.6  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8801.wmf" NDATA
WMF>
<!ENTITY obj.7  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8802.wmf" NDATA
WMF>
<!ENTITY obj.8  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8801.wmf" NDATA
WMF>
<!ENTITY obj.9  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8802.wmf" NDATA
WMF>
<!ENTITY obj.10  SYSTEM "G:\EMS2\FMTV20\GRAPHICS\E\R2e8803.wmf" NDATA
WMF>
]>
<?Pub Inc?>
<diagnosticwp wpno="e88-20">
<statemanipulation>
<expression>                                   <<<< new tag
<string>foobar</string>
</expression>
</statemanipulation>
</diagnosticwp>
...

How do I get the entities in my new file?  If I do a copy-of the root,
I'll get the entire file won't I?  Just using the copy is giving me:

<?xml version="1.0" encoding="utf-8"?>
<!--ArborText, Inc., 1988-2002, v.4002-->
<!DOCTYPE diagnosticwp SYSTEM
"Production_Rev_3061_MIL-STD-40051-2361C.dtd">
<?Pub Inc?>
<diagnosticwp wpno="e88-20">
<statemanipulation>
<expression>
<string>foobar</string>
</expression>
</statemanipulation>
</diagnosticwp>
...

Thanks for any help you can offer.

Carolyn



**********************************************************************
Confidentiality Notice
The information contained in this e-mail is confidential and intended for
use only by the person(s) or organization listed in the address. If you have
received this communication in error, please contact the sender at O'Neil &
Associates, Inc., immediately. Any copying, dissemination, or distribution
of this communication, other than by the intended recipient, is strictly
prohibited.
**********************************************************************


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