Subject: [xsl] positional grouping problem with flat structure From: "Kelley, Maria" <maria.kelley@xxxxxxxxxxxxxx> Date: Sat, 10 Feb 2007 22:57:23 -0600 |
I have the following XML file that I have no control over: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="Infdisp.xsl"?> <AVAILPERSON> <INFCOMMENTS>REQUEST</INFCOMMENTS> <TITLE>PERSON REQUESTED</TITLE> <TYPERESP>INFO.</TYPERESP> <CMT1>KNOWN TO HAVE BAD HAIR.</CMT1> <DEFTAG>STA/ CHECK IT.</DEFTAG> <DEFTAG>ORI/87338377.</DEFTAG> <DEFTAG>ORN/DOGWOOD.</DEFTAG> <LNAM>BAKER</LNAM> <FNAM>JACK</FNAM> <MNAM>ISADOG</MNAM> <RAC>W.</RAC> <SEX>M.</SEX> <DOB>19890711</DOB> <DEFTAG>.</DEFTAG> <POB>OX.</POB> <HGT>502.</HGT> <WGT>145.</WGT> <REF>111223333.</REF> <DEFTAG>MNU/SS-98766.</DEFTAG> <DEFTAG>MNU/XX-YZ9987.</DEFTAG> <DEFTAG>MNU/PI-PT9888.</DEFTAG> <OLN>720388402.</OLN> <OLS>ZZ.</OLS> <DEFTAG>OLY/2007.</DEFTAG> <OLN>02385762.</OLN> <OLS>AB.</OLS> <DEFTAG>OLY/2005.</DEFTAG> <DEFTAG>ADR/2 NORTH MAIN/ANYWHERE.</DEFTAG> <DEFTAG>STS/AB.</DEFTAG> <ZIP>99887.</ZIP> <DEFTAG>DDA/FOR THIS TIME.</DEFTAG> <DEFTAG>DDA/FOR NEXT TIME.</DEFTAG> <DEFTAG>QPR/932003.</DEFTAG> <OFF>5012.</OFF> <DEFTAG>DOW/19970101.</DEFTAG> <DEFTAG>TYP/1.</DEFTAG> <DEFTAG>ORI/PKE7SS870300.</DEFTAG> <MISD>BIG DESCRIPSION HERE</MISD> <TYPERESP>INFO.</TYPERESP> <CAUTION>FORGOT SHOWER.</CAUTION> <DEFTAG>STA/ MORE STUFF TO DO.</DEFTAG> <DEFTAG>OHI/PW9JJSD98.</DEFTAG> <DEFTAG>OHN/MORE DESC.</DEFTAG> <LNAM>SMITH</LNAM> <FNAM>JOHN</FNAM> <MNAM>GEORGE</MNAM> <RAC>W.</RAC> <SEX>M.</SEX> <DOB>19690101</DOB> <DEFTAG>.</DEFTAG> <DOB>19691001</DOB> <DEFTAG>.</DEFTAG> <DOB>19790101</DOB> <DEFTAG>.</DEFTAG> <DOB>19780101</DOB> <POB>ZM.</POB> <HGT>609.</HGT> <WGT>240.</WGT> <DEFTAG>QMN/299H3766S03JF03482J.</DEFTAG> <REF>555667777.</REF> <REF>666778888.</REF> <REF>888990000.</REF> <REF>222334444.</REF> <DEFTAG>KPS/88-388SS.</DEFTAG> <OLN>9876543.</OLN> <OLS>ZZ.</OLS> <DEFTAG>OLY/2002.</DEFTAG> <DEFTAG>MSC/DEFINITIONS.</DEFTAG> <DEFTAG>MSC/DESCRIPTIONS.</DEFTAG> <DEFTAG>MSC/FOR REAL.</DEFTAG> <DEFTAG>ILK/PP98775D.</DEFTAG> <OFF>5012.</OFF> <DEFTAG>DOW/20040118.</DEFTAG> <DEFTAG>TYP/4.</DEFTAG> <DEFTAG>OHI/9OEMS9DF7.</DEFTAG> <MISD>BIG HOOTIN DESCRIPTION AGAIN.</MISD> <DEFTAG>MSG-ENDS</DEFTAG> <TYPERESP>INFO.</TYPERESP> <TCP>05</TCP> <OLN>877602287 X</OLN> <CHARCT>.</CHARCT> <DEFTAG>NAMOLD/NONE .</DEFTAG> <DEFTAG>ADROLD/NONE.</DEFTAG> <NAME>JOHN GERALD JONES</NAME> <HGT>506</HGT> <WGT>280</WGT> <RAC>2-WHITE</RAC> <SEX>M</SEX> <DOB>010167</DOB> <DEFTAG>.</DEFTAG> <SNA>4513 W 14H</SNA> <CIS>CITY OF LAKES</CIS> <CNTY>F</CNTY> <STA>AB</STA> <ZIP>12345</ZIP> <ZIP>.</ZIP> <DEFTAG>EFFDTE/1987-03-02.PERIOD/</DEFTAG> <LIT>ENDDT/ .</LIT> <DEFTAG>OLN-RESTRI/NONE .</DEFTAG> <DEFTAG>ACTION/C102400.REASON/JUST BECAUSE</DEFTAG> <DEFTAG>MSG-CONTINUES..</DEFTAG> <DEFTAG></DEFTAG> <DEFTAG>MSG-ENDS</DEFTAG> <DEFTAG>NEG/01</DEFTAG> <LNAM>BAKER</LNAM> <FNAM>JACK</FNAM> <MNAM>ISADOG</MNAM> <DOB>19800804</DOB> <DEFTAG>***MESSAGE CONTINUES***</DEFTAG> <DEFTAG>A BUNCH MORE DESCRIPTION</DEFTAG> <DEFTAG>AND EVEN MORE</DEFTAG> <DEFTAG>MSG-ENDS</DEFTAG> <INFRESP>AND THIS IS EVEN MORE, IT WILL GO ON FOR MILES SOMETIMES</INFRESP> </AVAILPERSON> I need to display this like I have it below, but a separate table for each, LNAM or NAME within the xml file I am sent. All like data needs to be bunched together like I have it below for REFS (which I figured out how to do from Jeni's site J), but only those REFS that belong to that particular person need to be in that table person's table (which it is not doing right now). I think this is going to require positional grouping and unfortunately, I can't take advantage of the 2.0 capabilities since this has to be done on the client end. I have scoured the web and the FAQ's, but everything I can find is based on more initial XML grouping than I have (which is absolutely none). I can do the formatting and I can do some of the positional grouping, but for the life of me, I can't get the primary groups to work at all. I don't have the option of taking this XML and creating another XML which would be grouped so it would work better, due to the software I'm having to work within. Is there someplace I can look or something I can use to help me put the primary groups (LNAM or NAME) in place? Thank you for any help you may be able to give someone just learning... Maria AVAILABLE PERSONNEL - INFO Name: BAKER, JACK ISADOG Address: 4513 W 14H City/State/Zip: CITY OF LAKES, AB 99887. DOB/POB/Sex: 19890711 / OX. / M. Hgt/Wgt/Race: 502. / 145. / W. OLN/State/Year: 720388402. / ZZ. / 2007....02385762. / AB. / 2005....9876543. / ZZ. / 2002....877602287 X REFS: 111223333...555667777...666778888...888990000...222334444...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Doctype Declerations Impo, Michael Kay | Thread | Re: [xsl] positional grouping probl, Mukul Gandhi |
Re: [xsl] XSL-FO: Centering text ve, Chris Graham [WarpSp | Date | RE: [xsl] Doctype Declerations Impo, Michael Kay |
Month |