By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,627 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,627 IT Pros & Developers. It's quick & easy.

Weird diplay problem with XSL / XML

P: n/a
Hi Guys

You are probably my last chance to avoid getting crazy

To help you understand my problem I have put images online showing the
issue I have:
http://www.australix.net/images/pb
I have an XML file containing links and I use an XSL file to build a
menu using thoses links.
There is actually 2 levels in my menu as the links are organised
within sections.

When the menu is loaded, only the section headers are shown (see the
first image).
I you click on a section header, the links of the section are diplayed
(see the second image) and the other sections are closed.

But when I click on the second section, the links are displayed as it
should be but an additional and unwanted space appears below the fouth
section, with a few letters (the last letters of the fourth section
header) displayed at the bottom of this space ("h Engines" on the
third image).
The other sections are all working fine.

I have displayed the source of the page and if I search for the string
"Engines", I get only one result which is the regular fourth section
header. Moreover I can't hightlight the additional text but if I
hightlight the regular one the additional one is hightlighted too.
If I try to remove one or the other section from the xml file, I get
the same problem with another section, or even sometimes 2 !

I have tried everything and I can't find any logical relation between
the changes I do and the results I get.

Is there anyone who has already seen something like this ??

thanks for your help !

Luc

Feb 21 '07 #1
Share this Question
Share on Google+
15 Replies


P: n/a
On 21 feb, 14:26, "lucky" <lfe...@nordnet.frwrote:
Hi Guys

You are probably my last chance to avoid getting crazy

To help you understand my problem I have put images online showing the
issue I have:http://www.australix.net/images/pb

I have an XML file containing links and I use an XSL file to build a
menu using thoses links.
There is actually 2 levels in my menu as the links are organised
within sections.

When the menu is loaded, only the section headers are shown (see the
first image).
I you click on a section header, the links of the section are diplayed
(see the second image) and the other sections are closed.

But when I click on the second section, the links are displayed as it
should be but an additional and unwanted space appears below the fouth
section, with a few letters (the last letters of the fourth section
header) displayed at the bottom of this space ("h Engines" on the
third image).
The other sections are all working fine.

I have displayed the source of the page and if I search for the string
"Engines", I get only one result which is the regular fourth section
header. Moreover I can't hightlight the additional text but if I
hightlight the regular one the additional one is hightlighted too.
If I try to remove one or the other section from the xml file, I get
the same problem with another section, or even sometimes 2 !

I have tried everything and I can't find any logical relation between
the changes I do and the results I get.

Is there anyone who has already seen something like this ??

thanks for your help !

Luc
Install the Web Developer Extension for Firefox and use View Source,
View Generated Source.
http://chrispederick.com/work/webdeveloper/

Feb 21 '07 #2

P: n/a
I use the IE developer toolbar but I'm not able to find the additional
text. It's just as if it didn't exist!

Any other idea?
Feb 21 '07 #3

P: n/a
lucky wrote:
I use the IE developer toolbar but I'm not able to find the additional
text. It's just as if it didn't exist!
Maybe it doesn't exist.

Hard to say without having the source files to look at, preferably in a
simplified form that just demonstrates the part you're having trouble with.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 22 '07 #4

P: n/a
Hi Joe

Thanks for your answer.
This is what I'm assuming is the faulty code.
-------------------------------------------------------------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xsl:variable name="dt" select="'number'"/<xsl:key name="items"
match="zrow" use="substring-before(substring-after(@ows_FileRef, '/
Quick Find/Useful Links/'), '/')" />
<xsl:template match="/">
<xsl:for-each select="//zrow[generate-id(.)=generate-
id(key('items',substring-before(substring-after(@ows_FileRef, '/Quick
Find/Useful Links/'), '/')))]">
<xsl:sort select="substring-after(@ows_FileRef, '#Lists/')"/>
<xsl:text>&#xa;</xsl:text>
<xsl:if test="substring-before(substring-after(@ows_FileRef, '/Quick
Find/Useful Links/'),'/') != ''">
<xsl:text>&#xa;</xsl:text>
<xsl:text>&#xa;</xsl:text>
<a href="javascript:void(0);" id="T2menuChannel{position()}"
onclick="showHide('T2tab{position()}a');
T2channelToggle('T2menuChannel{position()}');" class="leftNavChannel">
<xsl:text>&#xa;</xsl:text>
<xsl:text>&#xa;</xsl:text>
<xsl:value-of select="substring-before(substring-
after(@ows_FileRef, '/Quick Find/Useful Links/'),'/')" />
<xsl:text>&#xa;</xsl:text>
</a>

<div id="T2tab{position()}a" style="display:none;">
<xsl:text>&#xa;</xsl:text<table class="rightNavSubLinks">
<xsl:text>&#xa;</xsl:text><tr><td style="border-width:
1;border-style:solid; ">
<xsl:for-each select="key('items',substring-
before(substring-after(@ows_FileRef, '/Quick Find/Useful Links/'),
'/'))">
<xsl:sort select="number(@ows_ItemOrder)"/>
<xsl:text>&#xa;</xsl:text>
<a href="{@ows_NavigateURL}" target="_blank"
class="leftNavPosting0"><xsl:value-of select="@ows_LinkTitle"/></a><br/
>
<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
</td></tr>
<xsl:text>&#xa;</xsl:text<tr><td height="5px"></td></tr>
</table>
</div>
</xsl:if>
-------------------------------------------------------------------------------

Cheers

Luc

Feb 22 '07 #5

P: n/a
On Feb 22, 6:24 am, "lucky" <lfe...@nordnet.frwrote:
This is what I'm assuming is the faulty code.
Have you tried debugging it? Have you tried feeding it into
a standalone XSLT processor and attempting to find out
what's wrong with the resulting document? Have you tried
reproducing the bug in a test transformation?
[terrible code]
This is not well-formed, poorly indented and thoroughly
for-eachnalized. You haven't provided a sample document for
transformation either. What did you expect? As I happens, I
do possess a supernatural power of Gazing-At-A-Ball-Of-Mud-
And-Pointing-Straight-At-The-Bug, but I charge for using it
on per-hour basis.

--
Pavel Lepin

Feb 22 '07 #6

P: n/a
This is the first time I work with XML and I had a very short time to
do it.
So yes, it is probably not well-formated and whatever you want.

But there's no need to be rude.

Anybody else willing to be more constructive?

Feb 22 '07 #7

P: n/a
lucky wrote:
So yes, it is probably not well-formated and whatever you want.
If XML isn't well-formed (not "well-formatted", but structurally
correct) it simply isn't XML and no XML tool will accept it. I haven't
tried running your stylesheet code but if it's it really is ill-formed
you MUST start by fixing that or nothing else will work.
As Pavel pointed out, it's hard to debug code without knowing what the
input looks like and what output you expected from it. Trying to
reverse-engineer and debug someone else's code from first principles is
a pain in the arse, and you really want to make it easier for us if you
want assistance.
--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Feb 22 '07 #8

P: n/a
<p.*****@ctncorp.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
On Feb 22, 6:24 am, "lucky" <lfe...@nordnet.frwrote:
>This is what I'm assuming is the faulty code.

Have you tried debugging it? Have you tried feeding it into
a standalone XSLT processor and attempting to find out
what's wrong with the resulting document? Have you tried
reproducing the bug in a test transformation?
>[terrible code]

This is not well-formed, poorly indented and thoroughly
for-eachnalized. You haven't provided a sample document for
transformation either. What did you expect? As I happens, I
do possess a supernatural power of Gazing-At-A-Ball-Of-Mud-
And-Pointing-Straight-At-The-Bug, but I charge for using it
on per-hour basis.

--
Pavel Lepin
Hey Lepin, everyone here is pretty fed-up with your sarcastic and belittling
posts.

You're a one-trick pony who only knows enough about XML to be dangerous. You
bully and intimidate people into thinking you know what you're talking
about, but the truth is you don't know much about anything.

You are coward who lacks the social grace of a common housefly. Do us all a
favor and keep your hole shut unless you have something helpful to
contribute.
Feb 22 '07 #9

P: n/a
This may be a good time to recommend that people review

http://www.catb.org/~esr/faqs/smart-questions.html

.... which is itself blunt almost to the point of being rude, but which
folks really need to understand if they're going to get help from Usenet.

(On the other hand, I do sorta agree that in many cases the right
response to a sloppy question is to ignore it, unless you have the
patience to walk them through correcting it.)

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 23 '07 #10

P: n/a
Hi

Thank you very much Joseph for thoses advises. I'll start then with
finding out how it should be and work on my files. Seems I'll have to
keep doing extra hours!

Anyway here is the .xml file from where I get my datas. Not sure if
this is gonna help?

Thanks again

Luc
<?xml version="1.0" encoding="utf-8"?><!--<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/
XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://
schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems
xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>-->
<rsdata ItemCount="99">
<zrow ows_Attachment
<zrow ows_Attachments='0' ows_LinkTitle='Acronym Finder'
ows_NavigateURL='http://www.acronymfinder.com/' ows_ImageURL=' '
ows_ItemOrder='10.0000000000000' ows_MetaInfo='136;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Acronym Finder'
ows_ID='136' ows_owshiddenversion='4' ows_UniqueId='136;#{30F819CB-
E72E-4FAF-80B0-54F0BB649F2C}' ows_FSObjType='136;#0'
ows_Created_x0020_Date='136;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='136;#136_.000'
ows_FileRef='136;#Lists/Quick Find/Useful Links/Word Search/136_.000' /
>
<zrow ows_Attachments='0' ows_LinkTitle='Acronym Search'
ows_NavigateURL='http://www.acronymsearch.com/' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='137;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Acronym Search'
ows_ID='137' ows_owshiddenversion='4'
ows_UniqueId='137;#{60A44308-09E8-44E4-8D07-7953290DA79D}'
ows_FSObjType='137;#0' ows_Created_x0020_Date='137;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='137;#137_.
000' ows_FileRef='137;#Lists/Quick Find/Useful Links/Word Search/137_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Alexa Search'
ows_NavigateURL='http://info.alexa.com/' ows_ImageURL=' '
ows_ItemOrder='50.0000000000000' ows_MetaInfo='97;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Alexa Search'
ows_ID='97' ows_owshiddenversion='4'
ows_UniqueId='97;#{98B740DE-5436-492F-BC74-530AF7A30791}'
ows_FSObjType='97;#0' ows_Created_x0020_Date='97;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='97;#97_.000'
ows_FileRef='97;#Lists/Quick Find/Useful Links/Search Engines/97_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Altavista'
ows_NavigateURL='http://www.altavista.com/' ows_ImageURL=' '
ows_ItemOrder='60.0000000000000' ows_MetaInfo='98;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Altavista'
ows_ID='98' ows_owshiddenversion='4'
ows_UniqueId='98;#{5A23DF50-1A01-4367-9A3F-5937614D7C4D}'
ows_FSObjType='98;#0' ows_Created_x0020_Date='98;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='98;#98_.000'
ows_FileRef='98;#Lists/Quick Find/Useful Links/Search Engines/98_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='APPEA - Aust Petroleum
Production Exploration Assocn' ows_NavigateURL='http://
www.appea.com.au/' ows_ImageURL=' ' ows_ItemOrder='10.0000000000000'
ows_MetaInfo='123;#' ows__ModerationStatus='0' ows__Level='1'
ows_Title='APPEA - Aust Petroleum Production Exploration Assocn'
ows_ID='123' ows_owshiddenversion='4' ows_UniqueId='123;#{2B3C8D1D-
D1D3-49E1-90D1-8F3A9B0FD40C}' ows_FSObjType='123;#0'
ows_Created_x0020_Date='123;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='123;#123_.000'
ows_FileRef='123;#Lists/Quick Find/Useful Links/Useful Reference Sites/
123_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='ASX Homepage'
ows_NavigateURL='http://www.asx.com.au/index.htm' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='124;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='ASX Homepage'
ows_ID='124' ows_owshiddenversion='4'
ows_UniqueId='124;#{94E15C11-87E8-485F-A5CB-61C1FBBC0E17}'
ows_FSObjType='124;#0' ows_Created_x0020_Date='124;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='124;#124_.
000' ows_FileRef='124;#Lists/Quick Find/Useful Links/Useful Reference
Sites/124_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Australian Standards'
ows_NavigateURL='http://www.saiglobal.com/online/autologin.asp'
ows_ImageURL=' ' ows_ItemOrder='30.0000000000000' ows_MetaInfo='125;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Australian
Standards' ows_ID='125' ows_owshiddenversion='5'
ows_UniqueId='125;#{0C38EF94-3EA6-49F3-91CE-77F4CFCFEC9E}'
ows_FSObjType='125;#0' ows_Created_x0020_Date='125;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='125;#125_.
000' ows_FileRef='125;#Lists/Quick Find/Useful Links/Useful Reference
Sites/125_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Bureau of Meteorology'
ows_NavigateURL='http://www.bom.gov.au' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='105;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Bureau of
Meteorology' ows_ID='105' ows_owshiddenversion='5'
ows_UniqueId='105;#{65D4EAFE-83E2-4899-A4B5-AFD5C6E27A45}'
ows_FSObjType='105;#0' ows_Created_x0020_Date='105;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='105;#105_.
000' ows_FileRef='105;#Lists/Quick Find/Useful Links/Weather/105_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Cyclone Information'
ows_NavigateURL='http://connect/Corporate/Pages/
CycloneInformation.aspx' ows_ImageURL=' '
ows_ItemOrder='30.0000000000000' ows_MetaInfo='106;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Cyclone
Information' ows_ID='106' ows_owshiddenversion='6'
ows_UniqueId='106;#{FFCB9262-234F-4545-9A0A-64717D6DDE61}'
ows_FSObjType='106;#0' ows_Created_x0020_Date='106;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='106;#106_.
000' ows_FileRef='106;#Lists/Quick Find/Useful Links/Weather/106_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Dictionary'
ows_NavigateURL='http://dictionary.reference.com/' ows_ImageURL=' '
ows_ItemOrder='30.0000000000000' ows_MetaInfo='138;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Dictionary'
ows_ID='138' ows_owshiddenversion='4'
ows_UniqueId='138;#{58630954-8D57-4B0B-BA52-16BA5F0C16E8}'
ows_FSObjType='138;#0' ows_Created_x0020_Date='138;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='138;#138_.
000' ows_FileRef='138;#Lists/Quick Find/Useful Links/Word Search/138_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Encyclopedia - General'
ows_NavigateURL='http://www.encyclopedia.com' ows_ImageURL=' '
ows_ItemOrder='40.0000000000000' ows_MetaInfo='126;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Encyclopedia -
General' ows_ID='126' ows_owshiddenversion='5'
ows_UniqueId='126;#{7D37ADD1-2DE1-4AB0-9426-7E491ABF6D98}'
ows_FSObjType='126;#0' ows_Created_x0020_Date='126;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='126;#126_.
000' ows_FileRef='126;#Lists/Quick Find/Useful Links/Useful Reference
Sites/126_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Encyclopedia - IT'
ows_NavigateURL='http://whatis.techtarget.com' ows_ImageURL=' '
ows_ItemOrder='50.0000000000000' ows_MetaInfo='127;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Encyclopedia - IT'
ows_ID='127' ows_owshiddenversion='5'
ows_UniqueId='127;#{BE4DFB56-38BD-42CA-9BC0-D81F02F8A95A}'
ows_FSObjType='127;#0' ows_Created_x0020_Date='127;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='127;#127_.
000' ows_FileRef='127;#Lists/Quick Find/Useful Links/Useful Reference
Sites/127_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Exchange Rates'
ows_NavigateURL='http://www.x-rates.com/' ows_ImageURL=' '
ows_ItemOrder='10.0000000000000' ows_MetaInfo='115;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Exchange Rates'
ows_ID='115' ows_owshiddenversion='5'
ows_UniqueId='115;#{5132FD84-10D6-4C07-A5C2-8A5EFA9897B2}'
ows_FSObjType='115;#0' ows_Created_x0020_Date='115;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='115;#115_.
000' ows_FileRef='115;#Lists/Quick Find/Useful Links/International
Reference Sites/115_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Fuel Watch'
ows_NavigateURL='http://www.fuelwatch.wa.gov.au/' ows_ImageURL=' '
ows_ItemOrder='50.0000000000000' ows_MetaInfo='112;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Fuel Watch'
ows_ID='112' ows_owshiddenversion='5'
ows_UniqueId='112;#{77453BFC-9FF5-455E-859A-0EFC2990DB4F}'
ows_FSObjType='112;#0' ows_Created_x0020_Date='112;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='112;#112_.
000' ows_FileRef='112;#Lists/Quick Find/Useful Links/Local Travel and
Transport/112_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Google'
ows_NavigateURL='http://www.google.com.au/' ows_ImageURL=' '
ows_ItemOrder='40.0000000000000' ows_MetaInfo='96;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Google'
ows_ID='96' ows_owshiddenversion='4'
ows_UniqueId='96;#{B0310132-9B05-44C8-B16F-2DAA10D15E81}'
ows_FSObjType='96;#0' ows_Created_x0020_Date='96;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='96;#96_.000'
ows_FileRef='96;#Lists/Quick Find/Useful Links/Search Engines/96_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Green Transport'
ows_NavigateURL='http://sp.wow.w-intranet.com.au/gtp/index.htm'
ows_ImageURL=' ' ows_ItemOrder='40.0000000000000' ows_MetaInfo='111;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Green Transport'
ows_ID='111' ows_owshiddenversion='5'
ows_UniqueId='111;#{A005CD98-5A17-489E-B08E-9037868405AB}'
ows_FSObjType='111;#0' ows_Created_x0020_Date='111;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='111;#111_.
000' ows_FileRef='111;#Lists/Quick Find/Useful Links/Local Travel and
Transport/111_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='How Far Is It?'
ows_NavigateURL='http://www.indo.com/distance/' ows_ImageURL=' '
ows_ItemOrder='60.0000000000000' ows_MetaInfo='128;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='How Far Is It?'
ows_ID='128' ows_owshiddenversion='5' ows_UniqueId='128;#{EEFA1A72-
A83F-4805-A730-EF769D1E8F10}' ows_FSObjType='128;#0'
ows_Created_x0020_Date='128;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='128;#128_.000'
ows_FileRef='128;#Lists/Quick Find/Useful Links/Useful Reference Sites/
128_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Language Translate'
ows_NavigateURL='http://babelfish.altavista.com' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='116;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Language
Translate' ows_ID='116' ows_owshiddenversion='5'
ows_UniqueId='116;#{DAD56F2E-1042-409D-9525-801D7094F610}'
ows_FSObjType='116;#0' ows_Created_x0020_Date='116;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='116;#116_.
000' ows_FileRef='116;#Lists/Quick Find/Useful Links/International
Reference Sites/116_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Living Abroad'
ows_NavigateURL='http://_energy_od51121.livingabroad.com/'
ows_ImageURL=' ' ows_ItemOrder='30.0000000000000' ows_MetaInfo='117;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Living Abroad'
ows_ID='117' ows_owshiddenversion='5'
ows_UniqueId='117;#{5309238C-1EF7-4FE4-A86F-83364672804E}'
ows_FSObjType='117;#0' ows_Created_x0020_Date='117;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='117;#117_.
000' ows_FileRef='117;#Lists/Quick Find/Useful Links/International
Reference Sites/117_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Medical Assistance'
ows_NavigateURL='http://www.internationalsos.com/' ows_ImageURL=' '
ows_ItemOrder='40.0000000000000' ows_MetaInfo='118;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Medical
Assistance' ows_ID='118' ows_owshiddenversion='5'
ows_UniqueId='118;#{2983E0E5-14F3-4612-9782-44466C9E9626}'
ows_FSObjType='118;#0' ows_Created_x0020_Date='118;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='118;#118_.
000' ows_FileRef='118;#Lists/Quick Find/Useful Links/International
Reference Sites/118_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Netiquette'
ows_NavigateURL='http://www.albion.com/netiquette/' ows_ImageURL=' '
ows_ItemOrder='70.0000000000000' ows_MetaInfo='129;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Netiquette'
ows_ID='129' ows_owshiddenversion='5' ows_UniqueId='129;#{B4D44F0C-
BCF7-43A2-96CB-192E03F6D188}' ows_FSObjType='129;#0'
ows_Created_x0020_Date='129;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='129;#129_.000'
ows_FileRef='129;#Lists/Quick Find/Useful Links/Useful Reference Sites/
129_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='news.com.au'
ows_NavigateURL='http://www.news.com.au/' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='101;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='news.com.au'
ows_ID='101' ows_owshiddenversion='4'
ows_UniqueId='101;#{17F1DE8A-4123-4677-8C75-9FBE17AE9F08}'
ows_FSObjType='101;#0' ows_Created_x0020_Date='101;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='101;#101_.
000' ows_FileRef='101;#Lists/Quick Find/Useful Links/News/101_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Product Recalls'
ows_NavigateURL='http://www.recalls.gov.au/' ows_ImageURL=' '
ows_ItemOrder='80.0000000000000' ows_MetaInfo='177;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Product Recalls'
ows_ID='177' ows_owshiddenversion='1'
ows_UniqueId='177;#{6495955B-8E96-4049-997F-F2B60802854F}'
ows_FSObjType='177;#0' ows_Created_x0020_Date='177;#2006-12-08
12:12:16' ows_Created='2006-12-08 12:12:16' ows_FileLeafRef='177;#177_.
000' ows_FileRef='177;#Lists/Quick Find/Useful Links/Useful Reference
Sites/177_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Qantas On-line Schedules'
ows_NavigateURL='http://www.qantas.com.au/flightinfo/do/dyn/
ScheduleSearch?Dom' ows_ImageURL=' ' ows_ItemOrder='10.0000000000000'
ows_MetaInfo='108;#' ows__ModerationStatus='0' ows__Level='1'
ows_Title='Qantas On-line Schedules' ows_ID='108'
ows_owshiddenversion='5' ows_UniqueId='108;#{A2C736E3-2BF2-47B8-
A8A1-0BB0341BB6C4}' ows_FSObjType='108;#0'
ows_Created_x0020_Date='108;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='108;#108_.000'
ows_FileRef='108;#Lists/Quick Find/Useful Links/Local Travel and
Transport/108_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Reference Desk'
ows_NavigateURL='http://www.refdesk.com/' ows_ImageURL=' '
ows_ItemOrder='90.0000000000000' ows_MetaInfo='130;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Reference Desk'
ows_ID='130' ows_owshiddenversion='5' ows_UniqueId='130;#{4EC8655C-
E56B-48A4-8A77-BA0C7DD3F86B}' ows_FSObjType='130;#0'
ows_Created_x0020_Date='130;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='130;#130_.000'
ows_FileRef='130;#Lists/Quick Find/Useful Links/Useful Reference Sites/
130_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Reserve Bank of Australia'
ows_NavigateURL='http://www.rba.gov.au/' ows_ImageURL=' '
ows_ItemOrder='100.000000000000' ows_MetaInfo='131;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Reserve Bank of
Australia' ows_ID='131' ows_owshiddenversion='5'
ows_UniqueId='131;#{61939BE0-67A7-4D73-B178-B01D2995B79D}'
ows_FSObjType='131;#0' ows_Created_x0020_Date='131;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='131;#131_.
000' ows_FileRef='131;#Lists/Quick Find/Useful Links/Useful Reference
Sites/131_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Shire of Roebourne'
ows_NavigateURL='http://www.roebourne.wa.gov.au/index.htm'
ows_ImageURL=' ' ows_ItemOrder='60.0000000000000' ows_MetaInfo='113;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Shire of
Roebourne' ows_ID='113' ows_owshiddenversion='5'
ows_UniqueId='113;#{CDC5750A-A652-4AB0-8499-D1A0830A22E1}'
ows_FSObjType='113;#0' ows_Created_x0020_Date='113;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='113;#113_.
000' ows_FileRef='113;#Lists/Quick Find/Useful Links/Local Travel and
Transport/113_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Street Directory'
ows_NavigateURL='http://www.whereis.com/' ows_ImageURL=' '
ows_ItemOrder='30.0000000000000' ows_MetaInfo='95;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Street Directory'
ows_ID='95' ows_owshiddenversion='4'
ows_UniqueId='95;#{9AFA10AD-0143-47A3-877D-6E52B996822E}'
ows_FSObjType='95;#0' ows_Created_x0020_Date='95;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='95;#95_.000'
ows_FileRef='95;#Lists/Quick Find/Useful Links/Search Engines/95_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='The West'
ows_NavigateURL='http://thewest.com.au/' ows_ImageURL=' '
ows_ItemOrder='30.0000000000000' ows_MetaInfo='102;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='The West'
ows_ID='102' ows_owshiddenversion='4' ows_UniqueId='102;#{9657EB2B-
ADF3-4559-88CE-9EADFB5F4F72}' ows_FSObjType='102;#0'
ows_Created_x0020_Date='102;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='102;#102_.000'
ows_FileRef='102;#Lists/Quick Find/Useful Links/News/102_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Thesaurus'
ows_NavigateURL='http://thesaurus.reference.com/' ows_ImageURL=' '
ows_ItemOrder='40.0000000000000' ows_MetaInfo='139;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Thesaurus'
ows_ID='139' ows_owshiddenversion='4' ows_UniqueId='139;#{DD0DD14C-
C1FF-472E-B082-77BC8B6F3DA3}' ows_FSObjType='139;#0'
ows_Created_x0020_Date='139;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='139;#139_.000'
ows_FileRef='139;#Lists/Quick Find/Useful Links/Word Search/139_.000' /
>
<zrow ows_Attachments='0' ows_LinkTitle='Traffic and Road
Conditions' ows_NavigateURL='http://www.mainroads.wa.gov.au/NR/mrwa/
internet/realtime/TRC/' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='109;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Traffic and Road
Conditions' ows_ID='109' ows_owshiddenversion='5'
ows_UniqueId='109;#{9901D559-872E-4593-95EE-F525381C0E2F}'
ows_FSObjType='109;#0' ows_Created_x0020_Date='109;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='109;#109_.
000' ows_FileRef='109;#Lists/Quick Find/Useful Links/Local Travel and
Transport/109_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Transport Journey Planner'
ows_NavigateURL='http://www.transperth.wa.gov.au/Default.aspx'
ows_ImageURL=' ' ows_ItemOrder='30.0000000000000' ows_MetaInfo='110;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Transport Journey
Planner' ows_ID='110' ows_owshiddenversion='5'
ows_UniqueId='110;#{6B4D1EF5-FCB6-4744-95A9-5FEA279F8480}'
ows_FSObjType='110;#0' ows_Created_x0020_Date='110;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='110;#110_.
000' ows_FileRef='110;#Lists/Quick Find/Useful Links/Local Travel and
Transport/110_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Unit Converter'
ows_NavigateURL='http://www.digitaldutch.com/unitconverter/'
ows_ImageURL=' ' ows_ItemOrder='110.000000000000' ows_MetaInfo='132;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Unit Converter'
ows_ID='132' ows_owshiddenversion='5' ows_UniqueId='132;#{9362502E-
EE6A-4C7A-B711-2093203112B6}' ows_FSObjType='132;#0'
ows_Created_x0020_Date='132;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='132;#132_.000'
ows_FileRef='132;#Lists/Quick Find/Useful Links/Useful Reference Sites/
132_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='WA Weather'
ows_NavigateURL='http://www.bom.gov.au/weather/wa/' ows_ImageURL=' '
ows_ItemOrder='10.0000000000000' ows_MetaInfo='104;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='WA Weather'
ows_ID='104' ows_owshiddenversion='5'
ows_UniqueId='104;#{38B20163-0C0B-4520-A6F1-6E3B2F3AF534}'
ows_FSObjType='104;#0' ows_Created_x0020_Date='104;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='104;#104_.
000' ows_FileRef='104;#Lists/Quick Find/Useful Links/Weather/104_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='White Pages'
ows_NavigateURL='http://www.whitepages.com.au/' ows_ImageURL=' '
ows_ItemOrder='10.0000000000000' ows_MetaInfo='93;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='White Pages'
ows_ID='93' ows_owshiddenversion='4' ows_UniqueId='93;#{5065099F-
CF2C-4125-A7A6-6636DECE541F}' ows_FSObjType='93;#0'
ows_Created_x0020_Date='93;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='93;#93_.000'
ows_FileRef='93;#Lists/Quick Find/Useful Links/Search Engines/93_.
000' />
<zrow ows_Attachments='0' ows_LinkTitle='Wikipedia'
ows_NavigateURL='http://www.wikipedia.org' ows_ImageURL=' '
ows_ItemOrder='120.000000000000' ows_MetaInfo='134;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Wikipedia'
ows_ID='134' ows_owshiddenversion='5' ows_UniqueId='134;#{6436AE46-
F710-41D0-9181-9E4C6B328CBB}' ows_FSObjType='134;#0'
ows_Created_x0020_Date='134;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='134;#134_.000'
ows_FileRef='134;#Lists/Quick Find/Useful Links/Useful Reference Sites/
134_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Worksafe Safetyline'
ows_NavigateURL='http://www.worksafe.wa.gov.au/newsite/worksafe/
default.html' ows_ImageURL=' ' ows_ItemOrder='130.000000000000'
ows_MetaInfo='133;#' ows__ModerationStatus='0' ows__Level='1'
ows_Title='Worksafe Safetyline' ows_ID='133' ows_owshiddenversion='5'
ows_UniqueId='133;#{99C57A01-6F13-48EE-AED7-D22922641C29}'
ows_FSObjType='133;#0' ows_Created_x0020_Date='133;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='133;#133_.
000' ows_FileRef='133;#Lists/Quick Find/Useful Links/Useful Reference
Sites/133_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='World Atlas'
ows_NavigateURL='http://www.graphicmaps.com/aatlas/world.htm'
ows_ImageURL=' ' ows_ItemOrder='50.0000000000000' ows_MetaInfo='119;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='World Atlas'
ows_ID='119' ows_owshiddenversion='5'
ows_UniqueId='119;#{C2E1982E-1DFD-480B-9F52-BE90CDF9E5C5}'
ows_FSObjType='119;#0' ows_Created_x0020_Date='119;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='119;#119_.
000' ows_FileRef='119;#Lists/Quick Find/Useful Links/International
Reference Sites/119_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='World Factbook'
ows_NavigateURL='http://www.odci.gov/cia/publications/factbook/
index.html' ows_ImageURL=' ' ows_ItemOrder='60.0000000000000'
ows_MetaInfo='120;#' ows__ModerationStatus='0' ows__Level='1'
ows_Title='World Factbook' ows_ID='120' ows_owshiddenversion='5'
ows_UniqueId='120;#{74227BA1-1D06-4C90-9550-2D29E35BB07D}'
ows_FSObjType='120;#0' ows_Created_x0020_Date='120;#2006-09-28
16:56:07' ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='120;#120_.
000' ows_FileRef='120;#Lists/Quick Find/Useful Links/International
Reference Sites/120_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='World Timezones'
ows_NavigateURL='http://www.timeanddate.com/' ows_ImageURL=' '
ows_ItemOrder='70.0000000000000' ows_MetaInfo='121;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='World Timezones'
ows_ID='121' ows_owshiddenversion='5' ows_UniqueId='121;#{31D13873-
E513-4E46-A150-8754AC5A17F0}' ows_FSObjType='121;#0'
ows_Created_x0020_Date='121;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='121;#121_.000'
ows_FileRef='121;#Lists/Quick Find/Useful Links/International
Reference Sites/121_.000' />
<zrow ows_Attachments='0' ows_LinkTitle='Yellow Pages'
ows_NavigateURL='http://www.yellowpages.com.au/' ows_ImageURL=' '
ows_ItemOrder='20.0000000000000' ows_MetaInfo='94;#'
ows__ModerationStatus='0' ows__Level='1' ows_Title='Yellow Pages'
ows_ID='94' ows_owshiddenversion='4' ows_UniqueId='94;#{1B7AE209-
FE35-4C82-BAFD-8DBE16148C92}' ows_FSObjType='94;#0'
ows_Created_x0020_Date='94;#2006-09-28 16:56:07'
ows_Created='2006-09-28 16:56:07' ows_FileLeafRef='94;#94_.000'
ows_FileRef='94;#Lists/Quick Find/Useful Links/Search Engines/94_.
000' />
</rsdata>

Feb 23 '07 #11

P: n/a
lucky wrote:
<zrow ows_Attachment
Not well formed. All XML attributes must have values. Not to mention the
fact that you haven't closed the start tag properly.

There may be other errors.

Homework assignment: Get an XML parser, and work with the document and
an XML tutorial until the parser accepts the document. Until you get
past that step, it isn't worth even thinking about the stylesheet.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 23 '07 #12

P: n/a
By the way, since the stylesheet is itself an XML document, it too must
be well formed. Fixing that is also part of your homework assignment.

And yes, this is an RTFM answer. You've got basic problems that you have
to fix LONG before you get to the one you're trying to ask. Study a good
XML tutorial first. Then study a good XSLT tutorial. THEN, if you're
still confused, ask specific questions.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 23 '07 #13

P: n/a
Thanks Joe

The document was actually too long so it was not displayed until the
end. But it is actually closed properly.
I'll get an XML perser (any name to suggest?) and try that.

Once again thanks for your help

Luc

Feb 23 '07 #14

P: n/a
lucky wrote:
The document was actually too long so it was not displayed until the
end. But it is actually closed properly.
Not if what you posted is anything close to reality. I found at least
four problems.
I'll get an XML perser (any name to suggest?) and try that.
Lots exist. Which one to use depends on the platform you're running on.
My standard recommendation is Apache Xerces, but I'm biased.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 23 '07 #15

P: n/a
On Usenet it's a good idea to quote properly and leave
attributions. comp.text.xml is way more relaxed in that
respect than most other techie newsgroups, but it still
amounts to basic courtesy to remember that not all of us
are using Grougle Goops to read newsgroups.

On Feb 23, 7:10 am, "lucky" <lfe...@nordnet.frwrote:
The document was actually too long so it was not
displayed until the end. But it is actually closed
properly.
To clarify on my 'rude' explanation: few people are willing
to debug your production code for you, especially if the
problem description amounts to 'I'm not sure, but something
doesn't seem to work in there'. People are often willing to
help neophytes, but you need to localize your problem and
post a minimum complete example demonstrating it.

Reading FAQs first helps, too.
I'll get an XML perser (any name to suggest?) and try
that.
If you're on some sort of Linux distribution or one of open
source FooBSD's (or if you're using Cygwin), most if not
all of them have libxml2 and libxslt in their
packages/ports collections. The installation should be
effortless, and you'll get xmllint and xsltproc as part of
the deal. Can't say much about Xerces and Xalan apart from
the fact that I managed to install them both on my box
without much problem. Saxon-8B is just bloody great (and it
groks XSLT2 and XQuery to boot), but making it work might
involve some Java mojo, so I would recommend against it if
you don't feel javish today.

(Note that libxml2 under Cygwin seems prone to segfaults
when parsing large documents--large being defined as
'in excess of a few million nodes'.)

--
Pavel Lepin

Feb 23 '07 #16

This discussion thread is closed

Replies have been disabled for this discussion.