Subject: [xsl] Accessing every second node, extract and sort their elements and then not copy the node name From: Carlos German Ruiz Ibañez <cruiz@xxxxxxxxxx> Date: Mon, 28 Jul 2008 13:25:18 -0500 |
Trying to convert to a XML document into another, I'm trying to figure out how to access every second element node from the document root, take and sort all their elements according 2 attributes ( GroupNumber and ElementNumber) and then show them without copy the name of the second element name. I have this file: <VLPhotographicImageIOD xsi:noNamespaceSchemaLocation="vl_iod.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PatientIE> <PatientModule> <PatientsName ElementNumber="0010" GroupNumber="0010" Name="Patient4s Name"/> <PatientID ElementNumber="0020" GroupNumber="0010" Name="Patient ID"/> </PatientModule> </PatientIE> <StudyIE> <GeneralStudyModule> <StudyInstanceUID ElementNumber="000D" GroupNumber="0020" Name="Study Instance UID"/> <StudyDate ElementNumber="0020" GroupNumber="0008" Name="Study Date"/> </GeneralStudyModule> <PatientStudyModule> <AdmittingDiagnosesDescription ElementNumber="1080" GroupNumber="0008" Name="Admitting Diagnoses Description"/> <PatientsAge ElementNumber="1010" GroupNumber="0010" Name="Patient4s Age"/> </PatientStudyModule> </StudyIE> </VLPhotographicImageIOD> And I want the other xml document in this way: <StudyDate ElementNumber="0020" GroupNumber="0008" Name="Study Date"/> <AdmittingDiagnosesDescription ElementNumber="1080" GroupNumber="0008" Name="Admitting Diagnoses Description"/> <PatientsName ElementNumber="0010" GroupNumber="0010" Name="Patient4s Name"/> <PatientID ElementNumber="0020" GroupNumber="0010" Name="Patient ID"/> <PatientsAge ElementNumber="1010" GroupNumber="0010" Name="Patient4s Age"/> <StudyInstanceUID ElementNumber="000D" GroupNumber="0020" Name="Study Instance UID"/> What shoul i do?? Thanks. La informacisn contenida en este mensaje electrsnico y en los archivos adjuntos es propiedad de la Escuela de Ingenierma de Antioquia - EIA; es de caracter confidencial y se remitis para uso exclusivo del destinatario. Las opiniones emitidas en este mensaje competen al autor y no reflejan necesariamente el concepto de la EIA. Si por error usted recibe este mensaje, le solicitamos de manera comedida que informe al remitente de la EIA y lo borre, pues esta prohibido su uso, distribucisn, divulgacisn o almacenamiento, salvo autorizacisn expresa de la EIA. The Information stated on this electronic message and on the attached files is a property of the Escuela de Ingenierma de Antioquia - EIA. It has a confidential character and has been sent to be used exclusively by the receiver. The opinions given on this message belong to the authors and do not reflect in any case the EIA's ones. If you receive this message by mistake, please, inform the EIA's sender and erase it. As far as it is forbidden its use, distribution, divulgation or storage, unless the EIA has given expressed authorization.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Grouping Problem - XML Repeat, Brent Solly | Thread | Re: [xsl] Accessing every second , christoph . naber |
Re: [xsl] Grouping Problem - XML Re, Mukul Gandhi | Date | [xsl] Nested predicate question, Tom Heiber-Cobb |
Month |