[KLUG Members] XML/DSML/XSL Transform Help
Adam Tauno Williams
adam at morrison-ind.com
Fri Nov 12 11:36:14 EST 2004
I've made some simple XML transforms, but now I'm facing one that is a
little beyond me. (Unfortunately, googling on any of these keywords just
turns up piles and piles of noise).
I have a DSML document (DSML is LDAP data expressed in XML)
It looks like
<?xml version="1.0" encoding="UTF-8"?>
<batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<searchResponse requestID="8">
<searchResultEntry dn="cn=YoYo MaMa,ou=People,o=Morrison
Industries,c=US" requestID="8">
<attr name="morrisonserialid">
<value>1015</value>
</attr>
<attr name="birthDate">
<value>02/17/1848</value>
</attr>
<attr name="cn">
<value>YoYo Mama</value>
</attr>
<attr name="employeeNumber">
<value>YOY004</value>
</attr>
</searchResultEntry>
....
(many many more search Result Entries
....
<searchResultDone requestID="8">
<resultCode code="0" descr="Success"/>
</searchResultDone>
</searchResponse>
</batchResponse>
What I want to do is transform it to something like
<resultSet>
<resultEntry>
<morrisonserialid>1015</morrisonserialid>
<birthDate>02/17/1848</birthDate>
<cn>YoYo MaMa</cn>
<employeeNumber>YOY004</employeeNumber>
</resultEntry>
</resultSet>
But all my feeble attempts have failed miserably.
More information about the Members
mailing list