freelanceprogrammers.org Forum Index » XML / XSL
Anyone experienced in using HTML (or XML) including VML code
Joined: 28 Feb 2005
Posts: 7
Anyone experienced in using HTML (or XML) including VML code
Hi folks,
Can anyone cast any light for me on what appears to be an html (or
possibly XML) file, but which actually includes some VML code (vector
markup language)?
From what I can see, the code chunk below uses some sort of
conditionality to try and call up a graphic file called image001.gif.
Now, I happen to know that image001.gif is a screen clip that contains
the Spanish translation of "1:Create address information" (the text
which is cunningly displayed as a text box here). I wonder if they are
using this as some sort of "alt" in case the graphic is not present? And
if so, why? (This will be used as one of 50 files to compile a CHM help;
the other 49 htm files are normal).
We translated this into 8 languages with a modern, mainstream,
state-of-the-art TM tool, and in all 8 the sentence in the box (that is,
"1:Create address information") did not get translated (= was not
presented for translation). Presumably, this indicates that the client
should have given us some form of DTD file with this file? (or of
course, that we should have asked for one!)
I will be grateful for anyone who can shed any light!
Nick
=====================
<P>
<font size="2" face="Arial">Las etiquetas se crean en la libreta de
direcciones de Bloggs tal y como se muestra a continuación.<br>
</font><!--[if gte vml 1]><v:shapetype id="_x0000_t202"
coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
<v:stroke joinstyle="miter"/> <v:path gradientshapeok="t"
o:connecttype="rect"/> </v:shapetype><v:shape id="_x0000_s1025"
type="#_x0000_t202" alt="" style=`width:135pt; height:42.6pt`>
<v:shadow on="t" opacity=".5" offset="6pt,6pt"/> <v:textbox> <table
cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center"><font face="Arial"><font size="2">1:Create
address
information.</font></td>
</tr>
</table>
</v:textbox>
</v:shape><![endif]--><![if !vml]><img border=0 width=240 height=86
src="flow_files/image001.gif" v:shapes="_x0000_s1025"><![endif]><font
face="Arial"><br>
<!--[if gte vml
1]><v:shapetype id="_x0000_t67" coordsize="21600,21600" o:spt="67"
adj="16200,5400" path="m0@0l@1@0@1,0@2,0@2@0,21600@0,10800,21600xe">
=================
Joined: 12 Jul 2005
Posts: 1
Anyone experienced in using HTML (or XML) including VML code
Hi Nick,
I look at what you`ve sent and shudder with both horror and fear - only
one application could be capable of producing HTML that is such a dog`s
breakfast and that`s MS Word.
Basically there are no rules with the exported html - I can`t make this
next point clearly enough - it is not guaranteed to be valid XML.
They use "<!if" type structures to include and exclude content based on
installed Word features on versions - this comes up in:
- fields (including page numbers)
- table of contents
- some images (vml).
etc.
There are a few things that you can do to clean it up -
- use some of the tools out there
- use some of Word`s options that git rid of some of the mess (but you
also lose functionality)
If you can avoid using it - please do so. If not use a tool like
HTMLTidy or JTidy to clean it up first and the you`re likely to get
better results.
Regards,
Justin.
Nick Rosenthal wrote:
> Hi folks,
>
> Can anyone cast any light for me on what appears to be an html (or
> possibly XML) file, but which actually includes some VML code (vector
> markup language)?
>
>>From what I can see, the code chunk below uses some sort of
> conditionality to try and call up a graphic file called image001.gif.
> Now, I happen to know that image001.gif is a screen clip that contains
> the Spanish translation of "1:Create address information" (the text
> which is cunningly displayed as a text box here). I wonder if they are
> using this as some sort of "alt" in case the graphic is not present? And
> if so, why? (This will be used as one of 50 files to compile a CHM help;
> the other 49 htm files are normal).
>
> We translated this into 8 languages with a modern, mainstream,
> state-of-the-art TM tool, and in all 8 the sentence in the box (that is,
> "1:Create address information") did not get translated (= was not
> presented for translation). Presumably, this indicates that the client
> should have given us some form of DTD file with this file? (or of
> course, that we should have asked for one!)
>
> I will be grateful for anyone who can shed any light!
>
> Nick
>
> =====================
>
> <P>
> <font size="2" face="Arial">Las etiquetas se crean en la libreta de
> direcciones de Bloggs tal y como se muestra a continuación.<br>
> </font><!--[if gte vml 1]><v:shapetype id="_x0000_t202"
> coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
> <v:stroke joinstyle="miter"/> <v:path gradientshapeok="t"
> o:connecttype="rect"/> </v:shapetype><v:shape id="_x0000_s1025"
> type="#_x0000_t202" alt="" style=`width:135pt; height:42.6pt`>
> <v:shadow on="t" opacity=".5" offset="6pt,6pt"/> <v:textbox> <table
> cellspacing="0" cellpadding="0" width="100%" height="100%">
> <tr>
> <td align="center"><font face="Arial"><font size="2">1:Create
> address
> information.</font></td>
> </tr>
> </table>
> </v:textbox>
> </v:shape><![endif]--><![if !vml]><img border=0 width=240 height=86
> src="flow_files/image001.gif" v:shapes="_x0000_s1025"><![endif]><font
> face="Arial"><br>
>
> <!--[if gte vml
> 1]><v:shapetype id="_x0000_t67" coordsize="21600,21600" o:spt="67"
> adj="16200,5400" path="m0@0l@1@0@1,0@2,0@2@0,21600@0,10800,21600xe">
> =================
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> !DSPAM:42d30878205221394013302!
>
>
>
Joined: 28 Feb 2005
Posts: 7
Anyone experienced in using HTML (or XML) including VML code
Justin,
Thank you. For your guidance on tools, your expertise, and simply
your human sympathy - all much appreciated! You`re right, it is a bit
of a dog`s breakfast.
The solution to the problem I posted was actually very simple.... and
shows how easily we can all be dazzled by that which appears shiny,
new and complex. TagEditor appears to have converted a > to the
representation > (for "greater than"). Fair enough when the symbol
is found on its own in an html file, but unfortunately it was the
closing bracket of a chunketsky of code in the syntax:
<![endif]>
Once I spotted that, it was a simple task to find and replace >
with >, and then all was well again. So I ended up with:
<![endif]>
I am still left puzzling at why our client used such a complex
structure to create this particular file for the help system, but
such are the mysteries of life :)
- Nick
--- In xml-doc@yahoogroups.com, Justin Lipton <justin@n...> wrote:
> Hi Nick,
>
> I look at what you`ve sent and shudder with both horror and fear -
only
> one application could be capable of producing HTML that is such a
dog`s
> breakfast and that`s MS Word.
>
Joined: 13 Jun 2003
Posts: 39
Anyone experienced in using HTML (or XML) including VML code
> There are a few things that you can do to clean it up -
> - use some of the tools out there
> - use some of Word`s options that git rid of some of the mess (but you
> also lose functionality)
>
> If you can avoid using it - please do so. If not use a tool like
> HTMLTidy or JTidy to clean it up first and the you`re likely to get
> better results.
I`ve not had much luck getting WTML (Word`s Totally Messed-up Language)
through Tidy -- it barfs on the <o:crap> tags and other garbage. Dog`s
breakfast is right. Word.X (the version I have on my Mac) doesn`t have
any obvious options to leave out the Office-specific namespaces; where
should I go looking for those options?
Personally, I`ve had good luck opening Weird files in OpenOffice Writer
and saving to HTML -- the result still needs Tidy`ing up, but is then
actually useful.
--
Larry Kollar, Senior Technical Writer, ARRIS
"Content creators are the engine that drives
value in the information life cycle."
-- Barry Schaeffer, on XML-Doc
Joined: 12 Jul 2005
Posts: 2
Anyone experienced in using HTML (or XML) including VML code
Hi All,
I was surprised to see the excellent clean-up job that MS Publisher (2003) did
on a MS Word XML document. Cleaned up everything, it did. Only tried it once and
can`t remember the menu option as it`s on a different machine.
All the best,
Tom.
-----Original Message-----
From: xml-doc@yahoogroups.com [mailto:xml-doc@yahoogroups.com]On Behalf
Of Larry Kollar
Sent: Tuesday, July 12, 2005 3:50 PM
To: xml-doc@yahoogroups.com
Subject: Re: [xml-doc] Anyone experienced in using HTML (or XML)
including VML code?
> There are a few things that you can do to clean it up -
> - use some of the tools out there
> - use some of Word`s options that git rid of some of the mess (but you
> also lose functionality)
>
> If you can avoid using it - please do so. If not use a tool like
> HTMLTidy or JTidy to clean it up first and the you`re likely to get
> better results.
I`ve not had much luck getting WTML (Word`s Totally Messed-up Language)
through Tidy -- it barfs on the <o:crap> tags and other garbage. Dog`s
breakfast is right. Word.X (the version I have on my Mac) doesn`t have
any obvious options to leave out the Office-specific namespaces; where
should I go looking for those options?
Personally, I`ve had good luck opening Weird files in OpenOffice Writer
and saving to HTML -- the result still needs Tidy`ing up, but is then
actually useful.
--
Larry Kollar, Senior Technical Writer, ARRIS
"Content creators are the engine that drives
value in the information life cycle."
-- Barry Schaeffer, on XML-Doc
Yahoo! Groups Links
____________________________________________________________
• This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
and delete the original.
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







