Index Thing


The Hippo Techo Blog


119 Posts. Displaying page 3 of 12.
Previous Next

Go to page:

Hide All

Nov 06, 2006

XHTML 1.0 Strict Validation Stuff

Close ...
Notes 'n stuff whilst making an XHTML 1.0 Strict schema file for VWDE and FP 2003.

Unfortunately Visual Web Developer Express 2005 (VWDE) does not have the capability to handle XHTML 1.0 Strict schemas. Provision is made only for XHTML 1.0 Frameset/Transitional and XHTML 1.1 so basically I decided to try and fabricate a schema using the 1.1 file as a starting point since the differences between 1.0 Strict and 1.1 are minimal

Base MS file used was xhtml_strict-11.xsd
C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\schemas\html

Original W3C file used was xhtml1-strict.xsd


Cut and Paste using the W3C file as original master reference for 1.0 Strict.

Cross check done with MS xhtml_transitional.xsd and known deprecations.
Basically MS have moved things around a bit but the W3C reference can be reconciled with the MS files fairly well.

tag ::xs:xsd:
xs:complexType name="Block"xsd:group name="BlockElements"

Known Deprecations :

a namea id
map namemap id
ruby (added)

Also most deprecations in XHTML 1.0 Transitional were removed in 1.0 Strict

The schema files (please feel free to check over the modified file B for accuracy before using - it's a prototype at the moment!)

File A: HERE - This is the original W3C XHTML 1.0 Strict schema file.

File B: HERE - (only use with VWDE) This is the modified MS xhtml_strict-11.xsd file from VWDE retaining original MS element order consistent with the original MS .xsd files (xhtml_strict-11.xsd & xhtml_transitional.xsd). This should give a Strict 1.0 interpretation that is more consistent with the w3c spec.

VWD 2005 Express

Reference for this was found at - spx

Because I have only VWD installed and not the full Visual Studio the registry hack becomes -


There were 20 schemas already installed (standard install).

The standard install does not include XHTML 1.0 Strict at all
Schema 1 - html\ie6_0.xsd
Schema 4 - html\html_401.xsd
Schema 5 - html\xhtml_transitional.xsd
Schema 6 - html\xhtml_frameset.xsd
Schema 7 - html\xhtml_strict-11.xsd
Schema 21 - html\xhtml_strict-10.xsd (I added this one)

FrontPage 2003
This file is adapted from the file modified for VWD 2005. Reference was also made to existing HTML schemas provided with FP 2003.

The schema location is -
C:\Program Files\Common Files\Microsoft Shared\OFFICE11\SCHEMAS\HTML

The type-library file from VWD( w3c-dom1-strict.tlb) was also placed in this folder as the xsd file uses it.
FP 2003 does not require a registry entry for the schema as VWD does - a restart is sufficient to make the schema appear in
Tools>PageOptions>Authoring>SchemaVersion(dropdown ).

Reference for this was found at -

Note:(finding file locations)
FP 2003 is a module of Office 11
VWD 2005 is a module of Visual Studio 8
EWD is a module of Office 12

Note: Initially I wanted to use the file for FP2003 but because the Intellisense was a wee bit tired I decided to have a go with the new app that will replace FP.

It is Expression Web Designer. You will notice in the above note that VWD is part of Visual Studio 2005 whereas EWD is part of Office as was FP2003. As a result the schema files for EWD vary slightly with the inclusion of fp tags, etc.

Useful web references: (Master W3C xsd files) spx (Registry hack for VWD 2005 schema addition) (Customising Intellisense) (Using XHTML schema with FP 2003 & Visual Studio)


MS Expression Web Designer is now available as a Community Technology Preview (CTP) package.
As it happens this supposedly supports XHTML 1.0 Strict and the file can be found in -

C:\Program Files\Common Files\Microsoft Shared\OFFICE12\SCHEMAS\HTML

This file has some differences to the modified one adapted from VWD.

clientom="w3c-dom1.tlb" clientom="w3c-dom1-strict.tlb"
cssschem a="CSS 2.0" cssschema="CSS 2.1"
<xsd:documentation> <xsd:documentation>
Microsoft Visual Studio .NET Microsoft Visual Studio .NET
schema for HTML 4.01 schema for XHTML 1.0
omitted <xsd:attribute name="Style" vs:builder="style" />

Unfortunately the XHTML 1.0 xsd support in EWD doesn't look too good so I will try to adapt the EWD file to be a bit closer to the W3C one.


Expression Web Designer (EWD) is now known as Expression Web and is available as a trial version. Having looked at the fresh install I find the XHTML 1.0 xsd is still a bit dodgy but the app seems to work well as a replacement for FP2003. The only thing I am not keen on is the high price given that the XHTML 1.0 Strict functionality appears to be lacking.

File C: HERE - MS XHTML 1.0 Strict file supplied with EWD CTP1 and Beta 1.

File D: HERE - MS XHTML 1.0 Strict schema file supplied with EW Trial.

Differences are -
Addition 1
<!-- style info, which may include CDATA sections -->
EWD Beta 1
EW Trial
<xsd:enumeration value="default" />

Addition 2
<!-- script statements, which may include CDATA sections -->
EWD Beta 1
EW Trial
<xsd:enumeration value="default" />

Change 3

EWD Beta 1
<xsd:attribute name="xml:Space" default="preserve" fixed="true" />

EW Trial
<xsd:attribute name="xml:Space" vs:readonly="true" fixed="true">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="preserve" />
<xsd:enumeration value="default" />

Change 4
xsd:attributeGroup name="cellHAlignTypeAttributes"
EWD Beta 1
<xsd:attribute name="Ch" />
<xsd:attribute name="ChOff" />

EW Trial
<xsd:attribute name="Char" />
<xsd:attribute name="CharOff" />

In theory a modified file for use with EW should also work with FP2003 but I seemed to have a few hassles with the Intellisense in FP particularly in the area of Byte Order Marks (BOM), the DOCTYPE and using UTF-8 so any effort is now directed towards EW. A good feature in HTMLPad 2006 that I also use is being able to save a page without the BOM.

File F: HERE - This is the modified xhtml file for EW Trial (still doing it.....).

Web - Apps
Nov 06, 2006

Microsoft Web Authoring Tools

Close ...
The other day I was messing about with some new Microsoft web authoring apps and here is my experience so far.

Frontpage 2003 - the app I tend to use
Visual Web Designer 2005 Express - available free
Expression Web Designer CTP1 - beta trial

I tend to use FP 2003 for XHTML/HTML work and Notepad++ for CSS but FP is now getting a bit tired. The big feature I like is the tabbed preview which is quick (albeit based on the IE rendering engine) and the code view is used a bit. The ability to work within a web is excellent for hyperlinking and renaming functions but the biggest drawback is now the XHTML standards support. I presently try to code for XHTML 1.0 Strict.
The macro facility in FP can be used to provide XHTML validation which has proved to be excellent but the inbuilt Intellisense support is weak. I have found that this can be improved a bit using a file derived for use with one of the later MS apps.
Trying VWDE I found the app only really does the HTML/XHTML editing part of what FP does without the web environment. Also despite being much improved in code creation, etc it still doesn't support XHTML 1.0 Strict for Intellisense.
So, my answer was to modify the MS copy of the XHTML 1.1 Strict schema in VWDE and use that (See above for more details).
Since messing around with VWDE MS have issued a CTP trial of EWD and this app is basically the new Frontpage. Interestingly the XHTML 1.0 Strict schema file used looks a bit dodgy in places

Dec 04, 2005

Netgear DG834G Wireless ADSL/Router/Gateway

Close ...
F/W 2.10.22

Required standard UK setting of -

RFC2364 PPPoA, VPI=0, VCI=38 & VC multiplexing for the DSL interface.

Typical uptime figures for DG834G -
WAN PPPoA 464:01:52
LAN 100M 464:03:28
WLAN 54M 464:03:19

WAN PPPoA 67:04:23 note: ISP had an outage on the ADSL connection
LAN 100M 625:07:56
WLAN 54M 625:07:47

WAN PPPoA 313:58:40
LAN 100M 872:02:13
WLAN 54M 872:02:04

WAN PPPoA 615:10:17
LAN 100M 1173:13:50
WLAN 54M 1173:13:41

WAN PPPoA 349:11:47 note: ISP had an outage on the ADSL connection
LAN 100M 2047:57:34
WLAN 54M 2047:57:25

It seems that many routers do not appear to be stable on the wireless LAN side.

My experience of the WAG54G confirmed this - I kept getting unavailability on the wireless connection intermittently. The DG834G appears to fairly stable in this regard bearing in mind that it has the latest firmware available. The earlier loads of firmware did not appear so stable on the wireless LAN. The WAG54G has also been upgraded with the latest firmware load but I'm not sure that the wireless problem is fixed.

Interestingly Linksys do have some higher strength aerials available but I couldn't try these since the WAG doesn't have a replaceable aerial but they do apparently fit on the Netgear !!!!!

My experience so far of wireless - it is great for mobility but if I could be bothered I would have the desktop hardwired via 100Base-T ethernet and get full speed. The wireless side of the routers is very variable depending on the type of unit, software, etc.

Configuration can be done via web interface (default http:// is

Using iBook - Firefox for Mac OK

Using PC both IE & Mozilla/Firefox are fine (see below: use IE for firmware upgrading)

Troubleshooting the wireless network can be a bit of a hassle but a couple of tools that help are -

Air Snare: Detects MAC addresses on the network

NetStumbler: Detects signal strength /details of wireless nodes in range

The following captures from NetStumbler (using Intel PRO/Wireless 2200BG) give an indication of the quality of signal from various routers -

Linksys WAG54G (ch 6)

WAG54G signal graph

Netgear DG834G (ch 3)

DG834G signal graph

Belkin (ch 11)

Belkin signal graph

BT Voyager (Askey Computer MAC code) (ch 11)

BT Voyager signal graph

The results using NetStumbler so far indicate -

DG834G Good, reasonably solid signal with a bit of fuzz
WAG54G Average, signal very spikey a lots of dropouts

The last two devices happen to be in the house next door which accounts for the lower signal level.

Belkin OK, reasonably solid signal and not too spikey
BT Voyager Excellent, solid signal with no spiking at all

Dec 04, 2005

CSS: padding-bottom 0px gives 5px offset

Close ...

The padding-bottom 0px value is ignored if the doctype is set for XHTML 1.0

leaving an approximate 5px offset. If the doctype is disabled the problem is corrected, however this is not a good fix.

I tend to use the border-collapse setting especially when bunching images in tables, however with Firefox I still got the issue and I don't want to disable the doctype.


Two possibilities will work -

display: block; set against the img

vertical-align: bottom; set against the img

I would prefer to use the former along with the border-collapse against the table

A broken example - HERE

This is how the hover renders after the CSS is tweaked - HERE

Software - Apps
Dec 04, 2005

Thunderbird POP3 receive mail issue with Ipswitch servers

Close ...
Problem: Thunderbird gets error when logging into POP3 server, works OK into BT Yahoo mail server

Error: Sending of password did not succeed. Mail server responded:

Press OK and then get -
Please enter a new password for user on

entered password and got -

Sending of password did not succeed. Mail server responded:USER

Logs: Following

Background: This problem occurred with TB on a Thinkpad running XP SP2 and only when a new ISP account was being used.
TB on a desktop P4 running XP SP1 worked OK to the new ISP. Mozilla Mail 1.7.5 worked fine on the Thinkpad.


Thinkpad R51 XP SP2
ISP Mail server - Ipswitch IMail 8.00
TB 1.0 (20041206) No security selected for POP or SMTP

Troubleshoot: TB uninstalled from TP, all related folders deleted (profiles,etc) then reinstalled fresh - still NBG

Note - NBG is No Bloody Good

Tried Ethereal network analyzer and tracked the POP messages. Logs below.

It seems that TB requests a CAPA (capability list). The BT servers don't understand this and TB then uses the standard USER/PW in clear text. The V21 server however supplies a capability list and TB sends a mixture of USER/PW in clear text and an encrypted form (I don't understand this as I thought AUTH PLAIN would be in clear text also).
Unfortunately when the encrypted Request is being sent the USER/PW form is fired out when the encrypted password would be expected and therefore the authorisation breaks. Mozilla 1.7.5 doesn't appear to use the CAPA feature.

V21 Capability List

+OK Capability list followsrn
IMPLEMENTATION Ipswitch_IMail_8.0rn

BT -ERR TB then sends USER/PW in clear
V21 +OK TB then sends AUTH PLAIN which fails. PW box pops up and sent encrypted?

Breakthrough: After much trawling and struggling to understand commands that relate more to SMTP than POP I discovered a Mozilla Bugzilla reference which is exactly the problem I had.

Bugzilla 259840

Summary: error retrieving POP3 mail from Ipswitch IMail servers when using some security products
[Symantec, Norton, Computer Associates, CA, eTrust, antivirus]

It so happened that the Thinkpad had Norton AntiVirus 2004 installed.
Disabling NAV was proving too much of a mission so it was uninstalled and SUCCESS!! - TB worked fine.
Create or use user.js file with following line -

// Hack to work round bug with FF/Ipswitch Mail Server/AV mail combo - avoids disabling AV mail screening
user_pref("mail.server.server3.auth_login", false);

eg:Documents and Settings/<user>/Application Data/Thunderbird/Profiles/68hrtcvs.default/user.js

Outstanding questions:

Q. Why does TB appear to send encrypted USER/PW when no secure is selected - does the CAPA influence this? I expected AUTH PLAIN to still use clear text.

Answer: I would like to know more on this - most refs to AUTH PLAIN are for SMTP not POP interaction.

Q. Why are the error windows giving truncated results?

Answer: Probably a low priority bug maybe?

Q. Ethereal didn't work on the Thinkpad and it looks like this can be the case with Intel 2200BG wireless cards - it worked with the Intel 100baseT NIC.

Answer: It seems the Intel wireless drivers knobble the promiscuous feature and somewhere in the bowels of Intel may be a patch ??????

Why the hell does NAV have to be so embedded that it can't just be disabled ( I disabled the NAVAPSVC and some moronic process re-enabled it for me and set it to Manual - the damn computers are owning us...)

The troubleshoot logs in text form are HERE

Software - Apps
Dec 04, 2005

Thunderbird RSS doesn't receive all items

Close ...
It seems that if the content of the links field in a RSS item is identical to another item then only the first item will be downloaded.

Unfortunately TB does not appear to use the GUID field which should provide a unique ID for each item. This is an identified bug (BugZilla 260745 & 264482) and is still apparent in TB

Crude workround:

If the content is on the same page then use bookmarks to give a unique links field.

Personally I feel this bug makes TB useless for RSS because if you cannot be certain that 100% of a feed is being received then what good is it!

Alternatively use an RSS utility that works correctly. I found RSSOwl to be excellent but does not give the HTML page review as TB does.

An example of the problem is available HERE

::::::::::::::::::: Update :::::::::::::::::

RSS 2.0 seems a bit of a crock - I find that most readers do not use the GUID field to determine uniqueness of an item and therefore whether it is a duplicate item or should be downloaded as a new item. Indeed, some editors I have tried don't bother creating a unique GUID for each item.

The LINK field tends to be the decider and in many cases with an RSS feed the link would normally be unique (as in different news articles, etc) but if it is used to target a part of a web page (even bookmarked like #bookmark4) where the content may alter then it is no good. More than one item using #bookmark4 will cause items not to be downloaded by readers.

As I have found if the LINK points to a location where I have altered the content then the link itself must be unique to allow the item to be accepted as a new item by most readers.

eg: siteurl/webpage.html#23

where the hash designates a bookmark and the 23 is just the item's number within the RSS file. This is enough to land the link on the required page and give uniqueness to the items. For good measure I use a unique GUID for each item just in case it ever gets used!

This method works fine with Thunderbird and RSS Owl.
::::::::::::::::::: Update :::::::::::::::::

Bug report (BugZilla 260745) appears to be fixed (tested TB 3.1.16)
Test file now at -

Aug 24, 2005

Using Intel PRO/Wireless 2200BG card with Ethereal and Air Snare utilities

Close ...

IBM Thinkpad R51 with Intel PRO/Wireless 2200BG card
XP with SP2

2200BG driver - Intel v
Ethereal v 0.10.12 (network sniffer/analyzer tool)
WinPcap 3.1 beta 4 (low level device driver for network applications)
Airsnare (a wireless intrusion/monitoring utility)

Initially tried the latest Intel driver since the IBM drivers always lag behind quite a few months and the Intel driver works in the Thinkpad just fine - I use the Intel client to control the wireless rather than the Microsoft or IBM Access one.

However I still could not get Ethereal or AirSnare to collect packets via the wireless card. It seems that the consensus is that the 2200BG card will not support promiscuous mode and Ethereal/WinPcap/Intel/Microsoft all point the finger at each other.

A workround is however possible that will allow AirSnare to work and Ethereal to collect packets in non-promiscuous mode

This site here held the key to an answer -

The DIVX video gives a quick run down on creating a network bridge that will allow the apps to work however with SP2 installed the procedure is slightly different to that outlined in the video.

1) Open Network Connections
2) Select both the Wireless connection and another (I chose the 1394 Firewire since I don't normally use it) and then right-click and Create Bridge (this will take a few moments)
3) When the bridge is created go into properties and allocate an IP (if using DHCP this will happen when a Disable/Enable is done)
4) I found the wireless connection fired back up again under Intel control and browsing was OK however in order for the bridge to appear as a device in AirSnare or Ethereal I needed to restart the XP

After this procedure it was possible to monitor with the 2200BG card but I needed to disable the promiscuous mode in the options. It is only possible to monitor traffic for the particular PC and broadcast traffic. Other traffic would require the promiscuous mode to be working correctly.


Using -

2200BG driver - Intel v (IBM issue)
Ethereal v 0.10.14 (network sniffer/analyzer tool)
WinPcap 3.1 (low level device driver for network applications)

Found Ethereal monitored the 2200BG card OK without a bridge being required but still no promiscuous mode.

A bridge was created and the 2200BG card still worked OK with Ethereal. The following (MS KB 302348) was tried to enable promiscuous mode on the card but didn't work -

In the XP CMD window

>netsh bridge show adapter

should give ID and status of adaptor

>netsh bridge set adapter x forcecompatmode=enable (where x is ID)

sets the promiscuous mode

Not surprising really since Intel still don't support promiscuous mode on the Centrino adapters but it is always worth a try - at least Ethereal and WinPcap seem to be doing the right thing now.

Software - XP
Aug 24, 2005

Properties in Right-click context menu for folders not working

Close ...
Platform: XP Pro with SP1

This has been happening as an intermittent problem and getting annoying. The problem was basically down to an interaction problem with IIS and Zonealarm. When I did a reset of the IIS (iisreset in the cmd window) suddenly all the properties windows I had been trying to get popped up.

Further details of this problems can be found at - html

The DependOnService registry fix as outlined tends to indicate that the W3SVC needs to be started before the TrueVector service is started.

Hardware - Windows
Aug 24, 2005

Mapping a Windows key on IBM R51 ThinkPad

Close ...
Use the Access IBM facility.

Configure>Manage Keyboard & Pointing Devices>Map Keys to Functions

A good key to use seems to be the Right Alt Key (AltGr on the keyboard)

Aug 07, 2005

Networking printers on wireless LAN

Close ...
Using 54G wireless LAN with PowerBook G4 client running OS 10.2 (Jaguar) and Samsung ML-1210 laser printer (USB) on an XP SP1 client.

My experience was as follows:

There seems to be 2 fundamental approaches that can be used to allow a Mac OSX machine to use a Windows XP hosted printer.

use the inbuilt SAMBA functionality of the OSX

use IP Printing approach in OSX

I initially had some success with the SAMBA method when trying an Epson 740 colour inkjet printer - this was made easier by the fact that the Epson drivers were easily found/already installed in the Mac's Print Centre.

A good run down on the procedure is found at - ows.html

I later found another procedure using the IP Printing mode in the OSX Print Centre and despite the numerous hassles I had getting it to work it is the more straightforward approach.

A good run down on this is given at -

Thanks to Anonymous who posted this one - the main detail was -

On the WinXP Box:

Add the TCP/IP print server service

1. Log in with Administrative privileges.

2. Click Start -> Settings -> Control Panel.

3. Double-click Add-remove Programs.

4. Click the Add-Remove Windows Components side button.

5. Open the Other Network File and Printer Services section.

6. Put a checkmark in Print Services for Unix.

7. Click OK; click Next. (The Computer will probably ask for the WinXP install disk, go ahead and put it in and the install will run automatically.)

8. Click Finish.

9. Close the Add-remove programs window.

To have the service start automatically (as a daemon):

1. Click Start -> Settings -> Control Panel.

2. Double-click Administrative Tools.

3. Double-click Services.

4. Double-click TCP/IP print Server.

5. Change the "Startup Type" to Automatic.

6. Click OK and close the windows that are open.

To share the printer for TCP/IP printing:

1. Click Start -> Settings -> Printers.

2. Right-click the print you want to share and select Sharing.

3. Click the radio button for Share as and fill in the share name you want to print to.

On your Mac:

1. Launch the Print Center.

2. Click the "Add Printer" button.

3. Change "Appletalk" to "IP Printing"

4. Enter the WinXP Computer's IP address in the Address box.

5. Uncheck the default queue radio button.

6. Enter the name of the printer share you defined on the XP machine.

7. Select your printer model (Install Gimp-Print if you don't see a ppd for your printer, restart print center and try again).

My take on the procedure was -

Installing/enabling the Print Services for Unix in XP is no problem (you do need the XP CD of course).

Setting the Service to Startup Type=automatic is straight forward.

The Mac Print Centre (for me unknown territory) was the first area of delay.

Selecting the IP Printing was easy and the printer share just had to be SamsungM (as in the XP box) however I came to understand that the actual printer driver needed to be installed in the Print Centre. Samsung drivers are not included in the OSX load so I needed to find some.

This place was excellent -

The ESP GhostScript package had already been installed at some stage earlier in the great adventure so I just needed to install the Samsung package. It worked beautifully and appeared in the Print Centre as I expected.

The printing was being submitted with no errors but nothing happened.

The Event Viewer in XP showed entries relating to the LPDSVC (Line Printer Daemon Service) and was suggesting problems with the path/share.

The sharing was indeed where the problem lay.

Setting the sharing against the printer was a hassle for me - normally it is straight forward but for some reason when I hit the APPLY button the applet would go into a "Not Responding" state. The result was the printer was in a half shared state. When I tried to set it the PC would "suggest" a name (eg: SamsungM) even if I typed another so go with the suggestion. If I disabled and then re-enabled the share the suggested name became something like SamsungM.2 (the next time it was SamsungM.3 and so on). Checking the registry confirmed that the share name wasn't registered in as many places as it should be so eventually I decided to go for the usual troubleshooting method for Windows and restart the machine whereupon I found it went into limbo and I couldn't even get Task Manager to fire up (there is still a good case for even XP to qualify for the CrapOS tag) so I waited for 20 mins (sometimes things start happening after XP has had a smoko) and still limbo so did the big power switch thing (Scandisk was invoked on restart).

Well - things looked up, the share had been lost but when I reapplied it the suggestion for the sharename was SamsungM and the registry was more complete (It looked better when I hit the OK button rather than the APPLY button because the window closed and no limbo).

Bingo- after the sharing was properly invoked the printer worked.

So all in all the networking of the Samsung ML-1210 in theory should have been a 10 minute job - I took a bit longer getting there but the tortoise made it and the IP Printing method works well.


I found the LPD method broke on 10.3 however a reasonably easy alternative is available.
The Print Center died with 10.2 but has been replaced by the Printer Setup Utility in 10.3. The XP end basically remains the same ( in my case the printer shares was SamsungM ) the only other embellishment was to create a user account on the XP machine.

In the OSX -

Go to Printer Setup Utility
Select Windows Printing
Select Network Neighbourhood
Select the network eg: HOMELAN
Enter USER/PASSWORD combo (this doesn't show if the Keychain Save has been used previously)
Select the printer share from the list shown eg: SamsungM
Select printer model eg: Samsung ML-1210,Foomatic & GDI

That's it folks!

A really useful visual management tool in OSX 10.3 is the CUPS printers page in the browser which shows the status of the printers along with errors, etc

URL is

119 Posts. Displaying page 3 of 12.
Previous Next

Go to page: