I'm having trouble loading data into an HTML table from an XML file. I'm running Mobile Windows 2003 on a Dell Axim 3xi. The code runs fine on the desktop, but the data doesn't show on the PDA. I've tried putting the two files in several different folders on the PDA, but that hasn't helped. What am I doing wrong? Any help is appreciated.

The code for both files are listed below

Sample code: Cust2x.ht

<html><head><script type="text/jscript"
function testclick(field

var row=field.rowInde
xmldso_list.recordset.absoluteposition=ro
td_title.innerHTML=xmldso_list.recordset("C_nmbr"
td_artist.innerHTML=xmldso_list.recordset("Name"
td_year.innerHTML=xmldso_list.recordset("Zip"
td_country.innerHTML=xmldso_list.recordset("Phone"
td_company.innerHTML=xmldso_list.recordset("Contact"
td_price.innerHTML=xmldso_list.recordset("Terms"

</script></head><body><xml id="xmldso_list" src="cust2x.xml"></xml><table datasrc="#xmldso_list" border="1"><thead><tr align="left"><th>C_nmbr</th><th>Name</th><th>Zip</th><th>Phone</th><th>Contact</th><th>Terms</th></tr></thead><td><div datafld="C_nmbr" /></td><td><div datafld="Name" /></td><td><div datafld="Zip" /></td><td><div datafld="Phone" /></td><td><div datafld="Contact" /></td><td><div datafld="Terms" /></td></tr></table></body></html

Sample Data: cust2x.xm

<?xml version="1.0" ?><Custlist><Customer><C_nmbr>100047</C_nmbr><Name>222 SUNSET</Name><Contact></Contact><Zip>92014</Zip><Phone>848-2427</Phone><Terms>NET 30 1</Terms></Customer><Customer><C_nmbr>100298</C_nmbr><Name>AB GIFT SHOP</Name><Contact>MARY LOU McDUFF</Contact><Zip>02667</Zip><Phone>1-555-946-5455</Phone><Terms>NET 30 1</Terms></Customer><Customer><C_nmbr>100296</C_nmbr><Name>AZ SPECIALTY SHOP, llc</Name><Contact>MARY LOU McBICKER</Contact><Zip>99352</Zip><Phone>1-509-946-5432</Phone><Terms>CASH 4</Terms></Customer><Customer><C_nmbr>100302</C_nmbr><Name>A CASE OF THE GLITTERS</Name><Contact>CHERYL, MERYL</Contact><Zip>10956</Zip><Phone>1-914-634-1922</Phone><Terms>C.O.D. 2</Terms></Customer></Custlist>

Re: XML Doesn't Load by KS

KS
Fri May 28 13:55:38 CDT 2004

Try renaming the file from Cust2x.htm to Cust2x.asp ...

I've never tried to use the <xml> tag in .htm files ...

KS

"wanewrld" <anonymous@discussions.microsoft.com> wrote in message
news:3120DBA2-B60A-4E9B-9A41-6B62531BB2A4@microsoft.com...
> I'm having trouble loading data into an HTML table from an XML file. I'm
running Mobile Windows 2003 on a Dell Axim 3xi. The code runs fine on the
desktop, but the data doesn't show on the PDA. I've tried putting the two
files in several different folders on the PDA, but that hasn't helped. What
am I doing wrong? Any help is appreciated.
>
> The code for both files are listed below.
>
> Sample code: Cust2x.htm
>
> <html><head><script type="text/jscript">
> function testclick(field)
> {
> var row=field.rowIndex
> xmldso_list.recordset.absoluteposition=row
> td_title.innerHTML=xmldso_list.recordset("C_nmbr")
> td_artist.innerHTML=xmldso_list.recordset("Name")
> td_year.innerHTML=xmldso_list.recordset("Zip")
> td_country.innerHTML=xmldso_list.recordset("Phone")
> td_company.innerHTML=xmldso_list.recordset("Contact")
> td_price.innerHTML=xmldso_list.recordset("Terms")
> }
> </script></head><body><xml id="xmldso_list" src="cust2x.xml"></xml><table
datasrc="#xmldso_list" border="1"><thead><tr
align="left"><th>C_nmbr</th><th>Name</th><th>Zip</th><th>Phone</th><th>Conta
ct</th><th>Terms</th></tr></thead><td><div datafld="C_nmbr" /></td><td><div
datafld="Name" /></td><td><div datafld="Zip" /></td><td><div datafld="Phone"
/></td><td><div datafld="Contact" /></td><td><div datafld="Terms"
/></td></tr></table></body></html>
>
> Sample Data: cust2x.xml
>
> <?xml version="1.0"
?><Custlist><Customer><C_nmbr>100047</C_nmbr><Name>222
SUNSET</Name><Contact></Contact><Zip>92014</Zip><Phone>848-2427</Phone><Term
s>NET 30 1</Terms></Customer><Customer><C_nmbr>100298</C_nmbr><Name>AB
GIFT SHOP</Name><Contact>MARY LOU
McDUFF</Contact><Zip>02667</Zip><Phone>1-555-946-5455</Phone><Terms>NET 30
1</Terms></Customer><Customer><C_nmbr>100296</C_nmbr><Name>AZ SPECIALTY
SHOP, llc</Name><Contact>MARY LOU
McBICKER</Contact><Zip>99352</Zip><Phone>1-509-946-5432</Phone><Terms>CASH
4</Terms></Customer><Customer><C_nmbr>100302</C_nmbr><Name>A CASE OF THE
GLITTERS</Name><Contact>CHERYL,
MERYL</Contact><Zip>10956</Zip><Phone>1-914-634-1922</Phone><Terms>C.O.D.
2</Terms></Customer></Custlist>



Re: XML Doesn't Load by anonymous

anonymous
Sat May 29 09:16:01 CDT 2004

Thanks for the replys. Any other suggestions?

Re: XML Doesn't Load by Darryl

Darryl
Sat May 29 22:06:49 CDT 2004

I was told never to answer a question with a question, but ...

I have a few Dell Axim X5s, that use the following XML files like the
follwing example XML file (10154.xml)


<?xml version="1.0" encoding="utf-8" ?>
<?xml:stylesheet type="text/xsl" href="info.xsl" ?>
<offenders>
<off o_id="10154" n="Person, Ima R." r="W" s="M" ht="5'09" wt="180"
tat="None visible" dob="12/4/62" ssn="000-00-0001" a1="56 Olean Street"
a2="Angelica, NY 02020" po="McLeanJ" so="" vio="" notes="New case"
photo="/CF Card/0010/0010154A.jpg"/>
</offenders>


The XML is displayed using the following three XSL stylesheets - Notes.xsl,
Info.xsl, and Photo.xsl. The X5 Dells work fine - no problems. The XML
displays on my PC Internet Explorer - no problem. However, I just received
some new Axim X3 PDAs with Windows CE 4.20. Nothing displays. Not an XML
error message, just a blank Internet Explorer screen.

Is this a bug? A feature change? There seems to be nothing different otehr
than
the Windows CE vesion.



Darryl Kerkeslager



(Photo.xsl)

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
<xsl:template match="/">
<table BORDER="0" CELLPADDING="1" CELLSPACING="0">
<xsl:for-each select="offenders/off">
<xsl:if test="@o_id[.='??????']">
<tr>
<td VALIGN="top" COLSPAN="2"><B><xsl:value-of
select="@n"/></B><BR/><HR/></td>
</tr>
<tr>
<td VALIGN="top"><img><xsl:attribute name="src"><xsl:value-of
select="@photo"/></xsl:attribute></img></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>







(Info.xsl)

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
<xsl:template match="/">
<html>
<head>
<title></title>
<script>
function showNotes(o_id)
{ var root = notesXSL.documentElement;
var selectedElems = root.selectNodes("//xsl:if");
var ifStatement = selectedElems.item(0);
ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
document.write(off.transformNode(notesXSL.documentElement));
}

function showPhoto(o_id)
{ var root = photoXSL.documentElement;
var selectedElems = root.selectNodes("//xsl:if");
var ifStatement = selectedElems.item(0);
ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
document.write(off.transformNode(photoXSL.documentElement));
}
</script>
</head>
<body>
<table BORDER="0" CELLPADDING="1" CELLSPACING="0">
<xsl:for-each select="offenders/off">
<tr>
<td VALIGN="top"><b><xsl:value-of
select="@n"/></b><br/><hr/></td>
</tr>
<tr>
<td VALIGN="top"><xsl:value-of select="@a1"/></td>
</tr>
<tr>
<td VALIGN="top"><xsl:value-of select="@a2"/></td>
</tr>
<tr>
<td VALIGN="top">
<input>
<xsl:attribute name="TYPE">button</xsl:attribute>
<xsl:attribute name="VALUE">Description</xsl:attribute>
<xsl:attribute name="ONCLICK">showNotes('<xsl:value-of
select="@o_id"/>')</xsl:attribute>
</input>
<input>
<xsl:attribute name="TYPE">button</xsl:attribute>
<xsl:attribute name="VALUE"> Photo </xsl:attribute>
<xsl:attribute name="ONCLICK">showPhoto('<xsl:value-of
select="@o_id"/>')</xsl:attribute>
</input>
</td>
</tr>
<tr><td><hr/></td></tr>
<tr>
<td VALIGN="top"><b>Officer: </b><xsl:value-of
select="@po"/></td>
</tr>
<tr><td><hr/></td></tr>
<tr>
<td VALIGN="top"><b><xsl:value-of select="@so"/></b></td>
</tr>
<tr>
<td VALIGN="top"><b><xsl:value-of select="@vio"/></b></td>
</tr>
<tr><td><hr/></td></tr>
<tr>
<td VALIGN="top"><xsl:value-of select="@notes"/></td>
</tr>
<XML>
<xsl:attribute name="ID">off</xsl:attribute>
<xsl:attribute name="SRC"><xsl:value-of
select="@o_id"/>.xml</xsl:attribute>
</XML>
</xsl:for-each>
</table>
<XML ID="photoXSL" SRC="photo.xsl"></XML>
<XML ID="notesXSL" SRC="notes.xsl"></XML>
</body>
</html>
</xsl:template>
</xsl:stylesheet>



(Notes.xsl)


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
<xsl:template match="/">
<table BORDER="0" CELLPADDING="1" CELLSPACING="0">
<xsl:for-each select="offenders/off">
<xsl:if test="@o_id[.='??????']">
<tr>
<td VALIGN="top" COLSPAN="2"><b><xsl:value-of
select="@n"/></b><br/><hr/></td>
</tr>
<tr>
<td VALIGN="top"><xsl:value-of select="@r"/>/<xsl:value-of
select="@s"/></td>
</tr>
<tr>
<td VALIGN="top"><b>DOB: </b><xsl:value-of select="@dob"/></td>
</tr>
<tr>
<td VALIGN="top"><b>SSN: </b><xsl:value-of select="@ssn"/></td>
</tr>
<tr>
<td VALIGN="top"><b>VACCIS: </b><xsl:value-of
select="@o_id"/></td>
</tr>
<tr>
<td VALIGN="top"><b>Ht: </b><xsl:value-of select="@ht"/>
<b>Wt: </b><xsl:value-of select="@wt"/>
lbs</td>
</tr>
<tr><td><br/></td></tr>
<tr>
<td VALIGN="top"><b>Tattoos: </b><xsl:value-of
select="@tat"/></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>



Re: XML Doesn't Load by John

John
Wed Jun 09 15:59:04 CDT 2004

I'm going to teach you to answer a question with a question by giving a
convoluted answer :).

Actually it's not just the CE.Net version that's different between the
PocketPC and your CE 4.2 device. It's MSXML itself. On PocketPC 2003
(which is based on CE 4.2) they still ship MSXML2 because of ROM
limitations. All other customers of CE 4.2 get MSXML3, however. I'm
assuming the CE 4.2 Axim you're talking about below is not running PocketPC
Shell but was built via Platform Builder by the OEM, correct?

MSXML3 was very componentized so that OEMs can mix and match the individual
pieces (DOM, SAX, XSLT, etc...) they want in order to save ROM. The MSXML
Mime Viewer is an optional component in CE 4.2. CE 4.2 was first version it
made it in, CE 4.1 didn't even have this as on option. So (again I'm
assuming this is a non-POcketPC device) it's possible that the OEM built
MSXML DOM/XQL/whatever... and Internet Explorer, but chose not to include
the mime viewer.

Unfortunatly there's no way you can add this in yourself after the fact.
You'll have to talk with the OEM to get them to add the feature. Also
assuming that this is a question about a non PocketPC device, you're
probably better off posting to a newsgroup like
microsoft.public.windowsce.platbuilder.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let
us know!
https://www.windowsembeddedeval.com/community/newsgroups

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.

"Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
news:PoKdndSQOtdU0iTdRVn-jA@comcast.com...
> I was told never to answer a question with a question, but ...
>
> I have a few Dell Axim X5s, that use the following XML files like the
> follwing example XML file (10154.xml)
>
>
> <?xml version="1.0" encoding="utf-8" ?>
> <?xml:stylesheet type="text/xsl" href="info.xsl" ?>
> <offenders>
> <off o_id="10154" n="Person, Ima R." r="W" s="M" ht="5'09" wt="180"
> tat="None visible" dob="12/4/62" ssn="000-00-0001" a1="56 Olean Street"
> a2="Angelica, NY 02020" po="McLeanJ" so="" vio="" notes="New case"
> photo="/CF Card/0010/0010154A.jpg"/>
> </offenders>
>
>
> The XML is displayed using the following three XSL stylesheets -
Notes.xsl,
> Info.xsl, and Photo.xsl. The X5 Dells work fine - no problems. The XML
> displays on my PC Internet Explorer - no problem. However, I just
received
> some new Axim X3 PDAs with Windows CE 4.20. Nothing displays. Not an XML
> error message, just a blank Internet Explorer screen.
>
> Is this a bug? A feature change? There seems to be nothing different
otehr
> than
> the Windows CE vesion.
>
>
>
> Darryl Kerkeslager
>
>
>
> (Photo.xsl)
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="uri:xsl">
> <xsl:template match="/">
> <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> <xsl:for-each select="offenders/off">
> <xsl:if test="@o_id[.='??????']">
> <tr>
> <td VALIGN="top" COLSPAN="2"><B><xsl:value-of
> select="@n"/></B><BR/><HR/></td>
> </tr>
> <tr>
> <td VALIGN="top"><img><xsl:attribute name="src"><xsl:value-of
> select="@photo"/></xsl:attribute></img></td>
> </tr>
> </xsl:if>
> </xsl:for-each>
> </table>
> </xsl:template>
> </xsl:stylesheet>
>
>
>
>
>
>
>
> (Info.xsl)
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="uri:xsl">
> <xsl:template match="/">
> <html>
> <head>
> <title></title>
> <script>
> function showNotes(o_id)
> { var root = notesXSL.documentElement;
> var selectedElems = root.selectNodes("//xsl:if");
> var ifStatement = selectedElems.item(0);
> ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
> document.write(off.transformNode(notesXSL.documentElement));
> }
>
> function showPhoto(o_id)
> { var root = photoXSL.documentElement;
> var selectedElems = root.selectNodes("//xsl:if");
> var ifStatement = selectedElems.item(0);
> ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
> document.write(off.transformNode(photoXSL.documentElement));
> }
> </script>
> </head>
> <body>
> <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> <xsl:for-each select="offenders/off">
> <tr>
> <td VALIGN="top"><b><xsl:value-of
> select="@n"/></b><br/><hr/></td>
> </tr>
> <tr>
> <td VALIGN="top"><xsl:value-of select="@a1"/></td>
> </tr>
> <tr>
> <td VALIGN="top"><xsl:value-of select="@a2"/></td>
> </tr>
> <tr>
> <td VALIGN="top">
> <input>
> <xsl:attribute name="TYPE">button</xsl:attribute>
> <xsl:attribute name="VALUE">Description</xsl:attribute>
> <xsl:attribute name="ONCLICK">showNotes('<xsl:value-of
> select="@o_id"/>')</xsl:attribute>
> </input>
> <input>
> <xsl:attribute name="TYPE">button</xsl:attribute>
> <xsl:attribute name="VALUE"> Photo </xsl:attribute>
> <xsl:attribute name="ONCLICK">showPhoto('<xsl:value-of
> select="@o_id"/>')</xsl:attribute>
> </input>
> </td>
> </tr>
> <tr><td><hr/></td></tr>
> <tr>
> <td VALIGN="top"><b>Officer: </b><xsl:value-of
> select="@po"/></td>
> </tr>
> <tr><td><hr/></td></tr>
> <tr>
> <td VALIGN="top"><b><xsl:value-of select="@so"/></b></td>
> </tr>
> <tr>
> <td VALIGN="top"><b><xsl:value-of select="@vio"/></b></td>
> </tr>
> <tr><td><hr/></td></tr>
> <tr>
> <td VALIGN="top"><xsl:value-of select="@notes"/></td>
> </tr>
> <XML>
> <xsl:attribute name="ID">off</xsl:attribute>
> <xsl:attribute name="SRC"><xsl:value-of
> select="@o_id"/>.xml</xsl:attribute>
> </XML>
> </xsl:for-each>
> </table>
> <XML ID="photoXSL" SRC="photo.xsl"></XML>
> <XML ID="notesXSL" SRC="notes.xsl"></XML>
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
>
>
> (Notes.xsl)
>
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="uri:xsl">
> <xsl:template match="/">
> <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> <xsl:for-each select="offenders/off">
> <xsl:if test="@o_id[.='??????']">
> <tr>
> <td VALIGN="top" COLSPAN="2"><b><xsl:value-of
> select="@n"/></b><br/><hr/></td>
> </tr>
> <tr>
> <td VALIGN="top"><xsl:value-of select="@r"/>/<xsl:value-of
> select="@s"/></td>
> </tr>
> <tr>
> <td VALIGN="top"><b>DOB: </b><xsl:value-of
select="@dob"/></td>
> </tr>
> <tr>
> <td VALIGN="top"><b>SSN: </b><xsl:value-of
select="@ssn"/></td>
> </tr>
> <tr>
> <td VALIGN="top"><b>VACCIS: </b><xsl:value-of
> select="@o_id"/></td>
> </tr>
> <tr>
> <td VALIGN="top"><b>Ht: </b><xsl:value-of select="@ht"/>
> <b>Wt: </b><xsl:value-of select="@wt"/>
> lbs</td>
> </tr>
> <tr><td><br/></td></tr>
> <tr>
> <td VALIGN="top"><b>Tattoos: </b><xsl:value-of
> select="@tat"/></td>
> </tr>
> </xsl:if>
> </xsl:for-each>
> </table>
> </xsl:template>
> </xsl:stylesheet>
>
>



Re: XML Doesn't Load by Darryl

Darryl
Fri Jun 11 17:32:17 CDT 2004

I'm not sure what you mean, as to the difference between CE and Pocket PC.
My Dell Axim (the one that won't display XML) identifies the system as:

Microsoft(R) Pocket PC
Version 4.20.0 (Build 13349)
(c) 1996-2003 Microsoft Corporation.
All rights reserved.

The system came unmodified from Dell (we're the Dept. of Corrections, not a
software company (grin). Based solely on what you've posted below - I have
no independent knowledge of the differences you mention - and based on the
identify information on the Dell - I would assume that this *is in fact a
Pocket PC device* - and I am posting in the correct newsgroup.

So ... the problem is that Windows CE Build 13349 does not display XML
correctly. Now, how long it will take for MS to fix this bug ...

The reply I received:


>>Hi Darryl

>>I had sent the issue you reported and they have mailed me that this is a
known issue and that the team is working on it. They have mailed me to let
you know that this will be fixed in future releases of the OS. Thank you
very much for the information and the support.


>>Thanks & Regards,

>>Jinny Korulla George
>>Developer Support Technical Router
>>Microsoft Global Support Center


Darryl



"John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
news:%23gwqKSmTEHA.332@TK2MSFTNGP11.phx.gbl...
> I'm going to teach you to answer a question with a question by giving a
> convoluted answer :).
>
> Actually it's not just the CE.Net version that's different between the
> PocketPC and your CE 4.2 device. It's MSXML itself. On PocketPC 2003
> (which is based on CE 4.2) they still ship MSXML2 because of ROM
> limitations. All other customers of CE 4.2 get MSXML3, however. I'm
> assuming the CE 4.2 Axim you're talking about below is not running
PocketPC
> Shell but was built via Platform Builder by the OEM, correct?
>
> MSXML3 was very componentized so that OEMs can mix and match the
individual
> pieces (DOM, SAX, XSLT, etc...) they want in order to save ROM. The MSXML
> Mime Viewer is an optional component in CE 4.2. CE 4.2 was first version
it
> made it in, CE 4.1 didn't even have this as on option. So (again I'm
> assuming this is a non-POcketPC device) it's possible that the OEM built
> MSXML DOM/XQL/whatever... and Internet Explorer, but chose not to include
> the mime viewer.
>
> Unfortunatly there's no way you can add this in yourself after the fact.
> You'll have to talk with the OEM to get them to add the feature. Also
> assuming that this is a question about a non PocketPC device, you're
> probably better off posting to a newsgroup like
> microsoft.public.windowsce.platbuilder.
>
> --
> John Spaith
> Software Design Engineer, Windows CE
> Microsoft Corporation
>
> Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let
> us know!
> https://www.windowsembeddedeval.com/community/newsgroups
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2003 Microsoft Corporation. All rights
> reserved.
>
> "Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
> news:PoKdndSQOtdU0iTdRVn-jA@comcast.com...
> > I was told never to answer a question with a question, but ...
> >
> > I have a few Dell Axim X5s, that use the following XML files like the
> > follwing example XML file (10154.xml)
> >
> >
> > <?xml version="1.0" encoding="utf-8" ?>
> > <?xml:stylesheet type="text/xsl" href="info.xsl" ?>
> > <offenders>
> > <off o_id="10154" n="Person, Ima R." r="W" s="M" ht="5'09" wt="180"
> > tat="None visible" dob="12/4/62" ssn="000-00-0001" a1="56 Olean Street"
> > a2="Angelica, NY 02020" po="McLeanJ" so="" vio="" notes="New case"
> > photo="/CF Card/0010/0010154A.jpg"/>
> > </offenders>
> >
> >
> > The XML is displayed using the following three XSL stylesheets -
> Notes.xsl,
> > Info.xsl, and Photo.xsl. The X5 Dells work fine - no problems. The XML
> > displays on my PC Internet Explorer - no problem. However, I just
> received
> > some new Axim X3 PDAs with Windows CE 4.20. Nothing displays. Not an
XML
> > error message, just a blank Internet Explorer screen.
> >
> > Is this a bug? A feature change? There seems to be nothing different
> otehr
> > than
> > the Windows CE vesion.
> >
> >
> >
> > Darryl Kerkeslager
> >
> >
> >
> > (Photo.xsl)
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > <xsl:template match="/">
> > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > <xsl:for-each select="offenders/off">
> > <xsl:if test="@o_id[.='??????']">
> > <tr>
> > <td VALIGN="top" COLSPAN="2"><B><xsl:value-of
> > select="@n"/></B><BR/><HR/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><img><xsl:attribute
name="src"><xsl:value-of
> > select="@photo"/></xsl:attribute></img></td>
> > </tr>
> > </xsl:if>
> > </xsl:for-each>
> > </table>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> >
> >
> >
> >
> >
> >
> > (Info.xsl)
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > <xsl:template match="/">
> > <html>
> > <head>
> > <title></title>
> > <script>
> > function showNotes(o_id)
> > { var root = notesXSL.documentElement;
> > var selectedElems = root.selectNodes("//xsl:if");
> > var ifStatement = selectedElems.item(0);
> > ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
> > document.write(off.transformNode(notesXSL.documentElement));
> > }
> >
> > function showPhoto(o_id)
> > { var root = photoXSL.documentElement;
> > var selectedElems = root.selectNodes("//xsl:if");
> > var ifStatement = selectedElems.item(0);
> > ifStatement.attributes(0).text = "@o_id[.='" + o_id + "']";
> > document.write(off.transformNode(photoXSL.documentElement));
> > }
> > </script>
> > </head>
> > <body>
> > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > <xsl:for-each select="offenders/off">
> > <tr>
> > <td VALIGN="top"><b><xsl:value-of
> > select="@n"/></b><br/><hr/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><xsl:value-of select="@a1"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><xsl:value-of select="@a2"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top">
> > <input>
> > <xsl:attribute name="TYPE">button</xsl:attribute>
> > <xsl:attribute
name="VALUE">Description</xsl:attribute>
> > <xsl:attribute name="ONCLICK">showNotes('<xsl:value-of
> > select="@o_id"/>')</xsl:attribute>
> > </input>
> > <input>
> > <xsl:attribute name="TYPE">button</xsl:attribute>
> > <xsl:attribute name="VALUE"> Photo </xsl:attribute>
> > <xsl:attribute name="ONCLICK">showPhoto('<xsl:value-of
> > select="@o_id"/>')</xsl:attribute>
> > </input>
> > </td>
> > </tr>
> > <tr><td><hr/></td></tr>
> > <tr>
> > <td VALIGN="top"><b>Officer: </b><xsl:value-of
> > select="@po"/></td>
> > </tr>
> > <tr><td><hr/></td></tr>
> > <tr>
> > <td VALIGN="top"><b><xsl:value-of select="@so"/></b></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><b><xsl:value-of select="@vio"/></b></td>
> > </tr>
> > <tr><td><hr/></td></tr>
> > <tr>
> > <td VALIGN="top"><xsl:value-of select="@notes"/></td>
> > </tr>
> > <XML>
> > <xsl:attribute name="ID">off</xsl:attribute>
> > <xsl:attribute name="SRC"><xsl:value-of
> > select="@o_id"/>.xml</xsl:attribute>
> > </XML>
> > </xsl:for-each>
> > </table>
> > <XML ID="photoXSL" SRC="photo.xsl"></XML>
> > <XML ID="notesXSL" SRC="notes.xsl"></XML>
> > </body>
> > </html>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> >
> >
> > (Notes.xsl)
> >
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > <xsl:template match="/">
> > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > <xsl:for-each select="offenders/off">
> > <xsl:if test="@o_id[.='??????']">
> > <tr>
> > <td VALIGN="top" COLSPAN="2"><b><xsl:value-of
> > select="@n"/></b><br/><hr/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><xsl:value-of select="@r"/>/<xsl:value-of
> > select="@s"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><b>DOB: </b><xsl:value-of
> select="@dob"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><b>SSN: </b><xsl:value-of
> select="@ssn"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><b>VACCIS: </b><xsl:value-of
> > select="@o_id"/></td>
> > </tr>
> > <tr>
> > <td VALIGN="top"><b>Ht: </b><xsl:value-of select="@ht"/>
> > <b>Wt: </b><xsl:value-of select="@wt"/>
> > lbs</td>
> > </tr>
> > <tr><td><br/></td></tr>
> > <tr>
> > <td VALIGN="top"><b>Tattoos: </b><xsl:value-of
> > select="@tat"/></td>
> > </tr>
> > </xsl:if>
> > </xsl:for-each>
> > </table>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> >
>
>



Re: XML Doesn't Load by John

John
Mon Jun 14 11:23:17 CDT 2004

My apologies for taking you into left field with my previous response. I'm
afraid I don't know how long it will take to get fix out. You've found the
right support people that are obviously more on top of this than I am :(.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let
us know!
https://www.windowsembeddedeval.com/community/newsgroups

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.

"Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
news:U9WdnUbXqvdvr1fdRVn-sw@comcast.com...
> I'm not sure what you mean, as to the difference between CE and Pocket PC.
> My Dell Axim (the one that won't display XML) identifies the system as:
>
> Microsoft(R) Pocket PC
> Version 4.20.0 (Build 13349)
> (c) 1996-2003 Microsoft Corporation.
> All rights reserved.
>
> The system came unmodified from Dell (we're the Dept. of Corrections, not
a
> software company (grin). Based solely on what you've posted below - I
have
> no independent knowledge of the differences you mention - and based on the
> identify information on the Dell - I would assume that this *is in fact a
> Pocket PC device* - and I am posting in the correct newsgroup.
>
> So ... the problem is that Windows CE Build 13349 does not display XML
> correctly. Now, how long it will take for MS to fix this bug ...
>
> The reply I received:
>
>
> >>Hi Darryl
>
> >>I had sent the issue you reported and they have mailed me that this is a
> known issue and that the team is working on it. They have mailed me to let
> you know that this will be fixed in future releases of the OS. Thank you
> very much for the information and the support.
>
>
> >>Thanks & Regards,
>
> >>Jinny Korulla George
> >>Developer Support Technical Router
> >>Microsoft Global Support Center
>
>
> Darryl
>
>
>
> "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
> news:%23gwqKSmTEHA.332@TK2MSFTNGP11.phx.gbl...
> > I'm going to teach you to answer a question with a question by giving a
> > convoluted answer :).
> >
> > Actually it's not just the CE.Net version that's different between the
> > PocketPC and your CE 4.2 device. It's MSXML itself. On PocketPC 2003
> > (which is based on CE 4.2) they still ship MSXML2 because of ROM
> > limitations. All other customers of CE 4.2 get MSXML3, however. I'm
> > assuming the CE 4.2 Axim you're talking about below is not running
> PocketPC
> > Shell but was built via Platform Builder by the OEM, correct?
> >
> > MSXML3 was very componentized so that OEMs can mix and match the
> individual
> > pieces (DOM, SAX, XSLT, etc...) they want in order to save ROM. The
MSXML
> > Mime Viewer is an optional component in CE 4.2. CE 4.2 was first
version
> it
> > made it in, CE 4.1 didn't even have this as on option. So (again I'm
> > assuming this is a non-POcketPC device) it's possible that the OEM built
> > MSXML DOM/XQL/whatever... and Internet Explorer, but chose not to
include
> > the mime viewer.
> >
> > Unfortunatly there's no way you can add this in yourself after the fact.
> > You'll have to talk with the OEM to get them to add the feature. Also
> > assuming that this is a question about a non PocketPC device, you're
> > probably better off posting to a newsgroup like
> > microsoft.public.windowsce.platbuilder.
> >
> > --
> > John Spaith
> > Software Design Engineer, Windows CE
> > Microsoft Corporation
> >
> > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
> Let
> > us know!
> > https://www.windowsembeddedeval.com/community/newsgroups
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > You assume all risk for your use. © 2003 Microsoft Corporation. All
rights
> > reserved.
> >
> > "Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
> > news:PoKdndSQOtdU0iTdRVn-jA@comcast.com...
> > > I was told never to answer a question with a question, but ...
> > >
> > > I have a few Dell Axim X5s, that use the following XML files like the
> > > follwing example XML file (10154.xml)
> > >
> > >
> > > <?xml version="1.0" encoding="utf-8" ?>
> > > <?xml:stylesheet type="text/xsl" href="info.xsl" ?>
> > > <offenders>
> > > <off o_id="10154" n="Person, Ima R." r="W" s="M" ht="5'09" wt="180"
> > > tat="None visible" dob="12/4/62" ssn="000-00-0001" a1="56 Olean
Street"
> > > a2="Angelica, NY 02020" po="McLeanJ" so="" vio="" notes="New case"
> > > photo="/CF Card/0010/0010154A.jpg"/>
> > > </offenders>
> > >
> > >
> > > The XML is displayed using the following three XSL stylesheets -
> > Notes.xsl,
> > > Info.xsl, and Photo.xsl. The X5 Dells work fine - no problems. The
XML
> > > displays on my PC Internet Explorer - no problem. However, I just
> > received
> > > some new Axim X3 PDAs with Windows CE 4.20. Nothing displays. Not an
> XML
> > > error message, just a blank Internet Explorer screen.
> > >
> > > Is this a bug? A feature change? There seems to be nothing different
> > otehr
> > > than
> > > the Windows CE vesion.
> > >
> > >
> > >
> > > Darryl Kerkeslager
> > >
> > >
> > >
> > > (Photo.xsl)
> > >
> > > <?xml version="1.0"?>
> > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > <xsl:template match="/">
> > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > <xsl:for-each select="offenders/off">
> > > <xsl:if test="@o_id[.='??????']">
> > > <tr>
> > > <td VALIGN="top" COLSPAN="2"><B><xsl:value-of
> > > select="@n"/></B><BR/><HR/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><img><xsl:attribute
> name="src"><xsl:value-of
> > > select="@photo"/></xsl:attribute></img></td>
> > > </tr>
> > > </xsl:if>
> > > </xsl:for-each>
> > > </table>
> > > </xsl:template>
> > > </xsl:stylesheet>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > (Info.xsl)
> > >
> > > <?xml version="1.0"?>
> > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > <xsl:template match="/">
> > > <html>
> > > <head>
> > > <title></title>
> > > <script>
> > > function showNotes(o_id)
> > > { var root = notesXSL.documentElement;
> > > var selectedElems = root.selectNodes("//xsl:if");
> > > var ifStatement = selectedElems.item(0);
> > > ifStatement.attributes(0).text = "@o_id[.='" + o_id +
"']";
> > >
document.write(off.transformNode(notesXSL.documentElement));
> > > }
> > >
> > > function showPhoto(o_id)
> > > { var root = photoXSL.documentElement;
> > > var selectedElems = root.selectNodes("//xsl:if");
> > > var ifStatement = selectedElems.item(0);
> > > ifStatement.attributes(0).text = "@o_id[.='" + o_id +
"']";
> > >
document.write(off.transformNode(photoXSL.documentElement));
> > > }
> > > </script>
> > > </head>
> > > <body>
> > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > <xsl:for-each select="offenders/off">
> > > <tr>
> > > <td VALIGN="top"><b><xsl:value-of
> > > select="@n"/></b><br/><hr/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><xsl:value-of select="@a1"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><xsl:value-of select="@a2"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top">
> > > <input>
> > > <xsl:attribute name="TYPE">button</xsl:attribute>
> > > <xsl:attribute
> name="VALUE">Description</xsl:attribute>
> > > <xsl:attribute
name="ONCLICK">showNotes('<xsl:value-of
> > > select="@o_id"/>')</xsl:attribute>
> > > </input>
> > > <input>
> > > <xsl:attribute name="TYPE">button</xsl:attribute>
> > > <xsl:attribute name="VALUE"> Photo </xsl:attribute>
> > > <xsl:attribute
name="ONCLICK">showPhoto('<xsl:value-of
> > > select="@o_id"/>')</xsl:attribute>
> > > </input>
> > > </td>
> > > </tr>
> > > <tr><td><hr/></td></tr>
> > > <tr>
> > > <td VALIGN="top"><b>Officer: </b><xsl:value-of
> > > select="@po"/></td>
> > > </tr>
> > > <tr><td><hr/></td></tr>
> > > <tr>
> > > <td VALIGN="top"><b><xsl:value-of select="@so"/></b></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><b><xsl:value-of select="@vio"/></b></td>
> > > </tr>
> > > <tr><td><hr/></td></tr>
> > > <tr>
> > > <td VALIGN="top"><xsl:value-of select="@notes"/></td>
> > > </tr>
> > > <XML>
> > > <xsl:attribute name="ID">off</xsl:attribute>
> > > <xsl:attribute name="SRC"><xsl:value-of
> > > select="@o_id"/>.xml</xsl:attribute>
> > > </XML>
> > > </xsl:for-each>
> > > </table>
> > > <XML ID="photoXSL" SRC="photo.xsl"></XML>
> > > <XML ID="notesXSL" SRC="notes.xsl"></XML>
> > > </body>
> > > </html>
> > > </xsl:template>
> > > </xsl:stylesheet>
> > >
> > >
> > >
> > > (Notes.xsl)
> > >
> > >
> > > <?xml version="1.0"?>
> > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > <xsl:template match="/">
> > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > <xsl:for-each select="offenders/off">
> > > <xsl:if test="@o_id[.='??????']">
> > > <tr>
> > > <td VALIGN="top" COLSPAN="2"><b><xsl:value-of
> > > select="@n"/></b><br/><hr/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><xsl:value-of select="@r"/>/<xsl:value-of
> > > select="@s"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><b>DOB: </b><xsl:value-of
> > select="@dob"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><b>SSN: </b><xsl:value-of
> > select="@ssn"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><b>VACCIS: </b><xsl:value-of
> > > select="@o_id"/></td>
> > > </tr>
> > > <tr>
> > > <td VALIGN="top"><b>Ht: </b><xsl:value-of select="@ht"/>
> > > <b>Wt: </b><xsl:value-of select="@wt"/>
> > > lbs</td>
> > > </tr>
> > > <tr><td><br/></td></tr>
> > > <tr>
> > > <td VALIGN="top"><b>Tattoos: </b><xsl:value-of
> > > select="@tat"/></td>
> > > </tr>
> > > </xsl:if>
> > > </xsl:for-each>
> > > </table>
> > > </xsl:template>
> > > </xsl:stylesheet>
> > >
> > >
> >
> >
>
>



Re: XML Doesn't Load by Darryl

Darryl
Mon Jun 14 16:59:49 CDT 2004

Well, the whole problem would be solved if there was a "Pocket Access"
included on my PDA

Darryl Kerkeslager


"John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
news:O4dHeviUEHA.3012@tk2msftngp13.phx.gbl...
> My apologies for taking you into left field with my previous response.
I'm
> afraid I don't know how long it will take to get fix out. You've found
the
> right support people that are obviously more on top of this than I am :(.
>
> --
> John Spaith
> Software Design Engineer, Windows CE
> Microsoft Corporation
>
> Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let
> us know!
> https://www.windowsembeddedeval.com/community/newsgroups
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2003 Microsoft Corporation. All rights
> reserved.
>
> "Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
> news:U9WdnUbXqvdvr1fdRVn-sw@comcast.com...
> > I'm not sure what you mean, as to the difference between CE and Pocket
PC.
> > My Dell Axim (the one that won't display XML) identifies the system as:
> >
> > Microsoft(R) Pocket PC
> > Version 4.20.0 (Build 13349)
> > (c) 1996-2003 Microsoft Corporation.
> > All rights reserved.
> >
> > The system came unmodified from Dell (we're the Dept. of Corrections,
not
> a
> > software company (grin). Based solely on what you've posted below - I
> have
> > no independent knowledge of the differences you mention - and based on
the
> > identify information on the Dell - I would assume that this *is in fact
a
> > Pocket PC device* - and I am posting in the correct newsgroup.
> >
> > So ... the problem is that Windows CE Build 13349 does not display XML
> > correctly. Now, how long it will take for MS to fix this bug ...
> >
> > The reply I received:
> >
> >
> > >>Hi Darryl
> >
> > >>I had sent the issue you reported and they have mailed me that this is
a
> > known issue and that the team is working on it. They have mailed me to
let
> > you know that this will be fixed in future releases of the OS. Thank you
> > very much for the information and the support.
> >
> >
> > >>Thanks & Regards,
> >
> > >>Jinny Korulla George
> > >>Developer Support Technical Router
> > >>Microsoft Global Support Center
> >
> >
> > Darryl
> >
> >
> >
> > "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
> > news:%23gwqKSmTEHA.332@TK2MSFTNGP11.phx.gbl...
> > > I'm going to teach you to answer a question with a question by giving
a
> > > convoluted answer :).
> > >
> > > Actually it's not just the CE.Net version that's different between the
> > > PocketPC and your CE 4.2 device. It's MSXML itself. On PocketPC 2003
> > > (which is based on CE 4.2) they still ship MSXML2 because of ROM
> > > limitations. All other customers of CE 4.2 get MSXML3, however. I'm
> > > assuming the CE 4.2 Axim you're talking about below is not running
> > PocketPC
> > > Shell but was built via Platform Builder by the OEM, correct?
> > >
> > > MSXML3 was very componentized so that OEMs can mix and match the
> > individual
> > > pieces (DOM, SAX, XSLT, etc...) they want in order to save ROM. The
> MSXML
> > > Mime Viewer is an optional component in CE 4.2. CE 4.2 was first
> version
> > it
> > > made it in, CE 4.1 didn't even have this as on option. So (again I'm
> > > assuming this is a non-POcketPC device) it's possible that the OEM
built
> > > MSXML DOM/XQL/whatever... and Internet Explorer, but chose not to
> include
> > > the mime viewer.
> > >
> > > Unfortunatly there's no way you can add this in yourself after the
fact.
> > > You'll have to talk with the OEM to get them to add the feature. Also
> > > assuming that this is a question about a non PocketPC device, you're
> > > probably better off posting to a newsgroup like
> > > microsoft.public.windowsce.platbuilder.
> > >
> > > --
> > > John Spaith
> > > Software Design Engineer, Windows CE
> > > Microsoft Corporation
> > >
> > > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
> > Let
> > > us know!
> > > https://www.windowsembeddedeval.com/community/newsgroups
> > >
> > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > You assume all risk for your use. © 2003 Microsoft Corporation. All
> rights
> > > reserved.
> > >
> > > "Darryl Kerkeslager" <Kerkeslager@comcast.net> wrote in message
> > > news:PoKdndSQOtdU0iTdRVn-jA@comcast.com...
> > > > I was told never to answer a question with a question, but ...
> > > >
> > > > I have a few Dell Axim X5s, that use the following XML files like
the
> > > > follwing example XML file (10154.xml)
> > > >
> > > >
> > > > <?xml version="1.0" encoding="utf-8" ?>
> > > > <?xml:stylesheet type="text/xsl" href="info.xsl" ?>
> > > > <offenders>
> > > > <off o_id="10154" n="Person, Ima R." r="W" s="M" ht="5'09" wt="180"
> > > > tat="None visible" dob="12/4/62" ssn="000-00-0001" a1="56 Olean
> Street"
> > > > a2="Angelica, NY 02020" po="McLeanJ" so="" vio="" notes="New case"
> > > > photo="/CF Card/0010/0010154A.jpg"/>
> > > > </offenders>
> > > >
> > > >
> > > > The XML is displayed using the following three XSL stylesheets -
> > > Notes.xsl,
> > > > Info.xsl, and Photo.xsl. The X5 Dells work fine - no problems. The
> XML
> > > > displays on my PC Internet Explorer - no problem. However, I just
> > > received
> > > > some new Axim X3 PDAs with Windows CE 4.20. Nothing displays. Not
an
> > XML
> > > > error message, just a blank Internet Explorer screen.
> > > >
> > > > Is this a bug? A feature change? There seems to be nothing
different
> > > otehr
> > > > than
> > > > the Windows CE vesion.
> > > >
> > > >
> > > >
> > > > Darryl Kerkeslager
> > > >
> > > >
> > > >
> > > > (Photo.xsl)
> > > >
> > > > <?xml version="1.0"?>
> > > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > > <xsl:template match="/">
> > > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > > <xsl:for-each select="offenders/off">
> > > > <xsl:if test="@o_id[.='??????']">
> > > > <tr>
> > > > <td VALIGN="top" COLSPAN="2"><B><xsl:value-of
> > > > select="@n"/></B><BR/><HR/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><img><xsl:attribute
> > name="src"><xsl:value-of
> > > > select="@photo"/></xsl:attribute></img></td>
> > > > </tr>
> > > > </xsl:if>
> > > > </xsl:for-each>
> > > > </table>
> > > > </xsl:template>
> > > > </xsl:stylesheet>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > (Info.xsl)
> > > >
> > > > <?xml version="1.0"?>
> > > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > > <xsl:template match="/">
> > > > <html>
> > > > <head>
> > > > <title></title>
> > > > <script>
> > > > function showNotes(o_id)
> > > > { var root = notesXSL.documentElement;
> > > > var selectedElems = root.selectNodes("//xsl:if");
> > > > var ifStatement = selectedElems.item(0);
> > > > ifStatement.attributes(0).text = "@o_id[.='" + o_id +
> "']";
> > > >
> document.write(off.transformNode(notesXSL.documentElement));
> > > > }
> > > >
> > > > function showPhoto(o_id)
> > > > { var root = photoXSL.documentElement;
> > > > var selectedElems = root.selectNodes("//xsl:if");
> > > > var ifStatement = selectedElems.item(0);
> > > > ifStatement.attributes(0).text = "@o_id[.='" + o_id +
> "']";
> > > >
> document.write(off.transformNode(photoXSL.documentElement));
> > > > }
> > > > </script>
> > > > </head>
> > > > <body>
> > > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > > <xsl:for-each select="offenders/off">
> > > > <tr>
> > > > <td VALIGN="top"><b><xsl:value-of
> > > > select="@n"/></b><br/><hr/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><xsl:value-of select="@a1"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><xsl:value-of select="@a2"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top">
> > > > <input>
> > > > <xsl:attribute name="TYPE">button</xsl:attribute>
> > > > <xsl:attribute
> > name="VALUE">Description</xsl:attribute>
> > > > <xsl:attribute
> name="ONCLICK">showNotes('<xsl:value-of
> > > > select="@o_id"/>')</xsl:attribute>
> > > > </input>
> > > > <input>
> > > > <xsl:attribute name="TYPE">button</xsl:attribute>
> > > > <xsl:attribute name="VALUE"> Photo
</xsl:attribute>
> > > > <xsl:attribute
> name="ONCLICK">showPhoto('<xsl:value-of
> > > > select="@o_id"/>')</xsl:attribute>
> > > > </input>
> > > > </td>
> > > > </tr>
> > > > <tr><td><hr/></td></tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>Officer: </b><xsl:value-of
> > > > select="@po"/></td>
> > > > </tr>
> > > > <tr><td><hr/></td></tr>
> > > > <tr>
> > > > <td VALIGN="top"><b><xsl:value-of
select="@so"/></b></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><b><xsl:value-of
select="@vio"/></b></td>
> > > > </tr>
> > > > <tr><td><hr/></td></tr>
> > > > <tr>
> > > > <td VALIGN="top"><xsl:value-of select="@notes"/></td>
> > > > </tr>
> > > > <XML>
> > > > <xsl:attribute name="ID">off</xsl:attribute>
> > > > <xsl:attribute name="SRC"><xsl:value-of
> > > > select="@o_id"/>.xml</xsl:attribute>
> > > > </XML>
> > > > </xsl:for-each>
> > > > </table>
> > > > <XML ID="photoXSL" SRC="photo.xsl"></XML>
> > > > <XML ID="notesXSL" SRC="notes.xsl"></XML>
> > > > </body>
> > > > </html>
> > > > </xsl:template>
> > > > </xsl:stylesheet>
> > > >
> > > >
> > > >
> > > > (Notes.xsl)
> > > >
> > > >
> > > > <?xml version="1.0"?>
> > > > <xsl:stylesheet xmlns:xsl="uri:xsl">
> > > > <xsl:template match="/">
> > > > <table BORDER="0" CELLPADDING="1" CELLSPACING="0">
> > > > <xsl:for-each select="offenders/off">
> > > > <xsl:if test="@o_id[.='??????']">
> > > > <tr>
> > > > <td VALIGN="top" COLSPAN="2"><b><xsl:value-of
> > > > select="@n"/></b><br/><hr/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><xsl:value-of
select="@r"/>/<xsl:value-of
> > > > select="@s"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>DOB: </b><xsl:value-of
> > > select="@dob"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>SSN: </b><xsl:value-of
> > > select="@ssn"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>VACCIS: </b><xsl:value-of
> > > > select="@o_id"/></td>
> > > > </tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>Ht: </b><xsl:value-of select="@ht"/>
> > > > <b>Wt: </b><xsl:value-of select="@wt"/>
> > > > lbs</td>
> > > > </tr>
> > > > <tr><td><br/></td></tr>
> > > > <tr>
> > > > <td VALIGN="top"><b>Tattoos: </b><xsl:value-of
> > > > select="@tat"/></td>
> > > > </tr>
> > > > </xsl:if>
> > > > </xsl:for-each>
> > > > </table>
> > > > </xsl:template>
> > > > </xsl:stylesheet>
> > > >
> > > >
> > >
> > >
> >
> >
>
>