This is the Message Centre for Jim Lynn

guideML - HELP!

Post 1

Pip

Jim

I'm trying to do my entries in GuideML and I'm having trouble setting up a pullquote. As instructed in the Quick Guide I've typed this <PULLQUOTE ALIGN=&#8220;Left&#8221; EMBED="Right"> to try to get a pullquote on the right of the page with left-aligned text and with the main body of text flowing round it - the preview keeps telling me the attributes are wrong - can you help?

Pip smiley - sadface


guideML - HELP!

Post 2

Jim Lynn

Oooooooooooh!

This is a *very* sneaky problem. Have you been editing this page in a word processor? Microsoft Word? I'd guess you have.

The reason it doesn't like the attributes is because the "Left" attribute actually has 'sexed' quotes - meaning proper opening and closing quotes as you'd want if you were writing a letter or a document.

However, GuideML wants sexless quotes - ASCII code 34 - which it can't find.

Copy and paste this pullquote tag below into your document and see how you go...

&lt;PULLQUOTE ALIGN="Left" EMBED="Right"&gt;

That should work fine.


guideML - HELP!

Post 3

Pip

Is there a font I could use on Word that would stop this problem?


guideML - HELP!

Post 4

Pip

Oh dear - now I'm getting a blank page when I press the review button, so I tried posting the entry so I could edit it from there but that came up as a blank page too (A162433) - have I broken h2g2?

Pip smiley - sadface


guideML - HELP!

Post 5

Jim Lynn

It's not your fault. It looks like a bug in our XML conversion. It doesn't seem to like having tags directly inside a PULLQUOTE tag. So, for example,
hello
will go wrong while

hello

will work.


guideML - HELP!

Post 6

Ant

You could always try using notepad or saving the file as a text file only.


guideML - HELP!

Post 7

Jan^

I agree, notepad is much safer. There still seems to be a problem with preview though, as it changes the margins, although they come out ok on the user page. Any ideas?


guideML - HELP!

Post 8

Jim Lynn

It's because the form is a certain width.


guideML - HELP!

Post 9

Bruce

Sorry to bug you Jim, but did you get the emmail I sent about my problem with CDATA?

;^)#


guideML - HELP!

Post 10

Jim Lynn

Yes - sorry I haven't replied. It's unfortunately a bug which we're looking at. We don't have a fix yet, though.


guideML - HELP!

Post 11

Bruce

Perhaps it might be a good idea to remove the reference to CDATA from the don't panic pages at http://www.h2g2.com/A155701

Could you do me a favour & delete my home page then please so I can rebuild it.

;^)#


guideML - HELP!

Post 12

Jim Lynn

OK. I've edited your page to remove the CDATA.


guideML - HELP!

Post 13

Bruce

Thanks muchly - I will try not to break it again.

;^)#


guideML - HELP!

Post 14

Pip

Thanks for the suggestions folks - Notepad works a treat and I'm cooking on gas. I've even got photos and an animated gif on my page now

Pip


guideML - HELP!

Post 15

Anonymouse

Uhm... Perhaps I'm just blind right now, but I don't see the difference. I thought whitespace (including s) was basically ignored?


guideML - HELP!

Post 16

Bruce

Apparently, they're not completely ignored by the parser - just not turned into new lines on output to your browser.

;^)#


guideML - HELP!

Post 17

Anonymouse

Uhm... He said it didn't like formatting tags inside pullquote tags, and I see them both exactly the same but for the new lines in the code, which is what I don't get. smiley - smiley


guideML - HELP!

Post 18

Bruce

I think he said 'directly inside a PULLQUOTE tag'. Basically the example without the CRs will blow up whilst the example with the CRs will work just fine.

From what I understand the GuideML we enter is stored as entered in a database. The site generates html pages for our browsers on the fly from those database entries.

My guess is its probably something to do with the parser examining each entry character by character (or block by block) & not dealing with the character immediately following being any other than text or white space. But I could be wrong, its been a *ahem* while since I wrote a code generator (I wonder if they still use 80 column punch cards? smiley - winkeye )

;^)#


guideML - HELP!

Post 19

Anonymouse

LOL smiley - winkeye


guideML - HELP!

Post 20

Bruce

I hope you don't mind me using the *ahem* - I should probably have hung a copyright sign on it smiley - winkeye


;^)#


Key: Complain about this post

More Conversations for Jim Lynn

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more