Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > images and links

Reply
Thread Tools

images and links

 
 
gaijinco
Guest
Posts: n/a
 
      08-28-2007
I have used HTML for a while now and had tried to jump into XML for a
long while but it seems that there is not a tutorial to go from HTML
to XML.

Like any HTML user what I will want is to include images and links in
my documents in almost the same way that the IMG and A tag's do.

So how do I include those elements?

Thanks.

 
Reply With Quote
 
 
 
 
Joe Kesselman
Guest
Posts: n/a
 
      08-28-2007
gaijinco wrote:
> I have used HTML for a while now and had tried to jump into XML for a
> long while but it seems that there is not a tutorial to go from HTML
> to XML.


Partly because that isn't actually the correct way of thinking about the
problem.

HTML is one specific application of SGML, the Standardized General
Markup Language. XML is a simplification and evolution of SGML. Both XML
and SGML are abstractions -- shared basic syntax upon which many
specific markup languages can be built.

So the real direct-equivalent transition is really from HTML to some
***specific*** XML-based markup language. The most obvious one would be
XHTML, which is the "next generation" of HTML and which is an XML
language rather than an SGML language. (XHTML is to XML as HTML is to
SGML, more or less.)

> Like any HTML user what I will want is to include images and links in
> my documents in almost the same way that the IMG and A tag's do.


How that's done depends on which XML language you're working with. Since
XHTML is an evolution of HTML, almost all the things you're used to
doing in HTML will work the same way in XHTML.

Other languages may represent these in completely different ways, or may
not have the concepts at all. It may not make sense to have the concept
of "image" in a language designed for accounting data, for example, and
links might be specified via something based on XPath and thus not
require a predefined "anchor" on the receiving end. Or the links may be
entirely implicit...

Decide which XML language you're working with; that will determine how
things are represented, and will determine what you can do with the
documents -- which may not include viewing them directly in a browser;
many XML documents are not intended to be directly read by humans and it
is assumed that you will put them through a stylesheet or some other
processing to render them into a form suitable for browsing or printing.
The output of that process may be HTML, XHTML, XSL-FO... or something else.

XML is a general framework for data markup. Not all markup is display
markup.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
 
Reply With Quote
 
 
 
 
PC Paul
Guest
Posts: n/a
 
      08-28-2007
gaijinco wrote:
> I have used HTML for a while now and had tried to jump into XML for a
> long while but it seems that there is not a tutorial to go from HTML
> to XML.
>
> Like any HTML user what I will want is to include images and links in
> my documents in almost the same way that the IMG and A tag's do.
>
> So how do I include those elements?
>
> Thanks.
>


This is what you need to read:

<http://www.xfront.com/rescuing-xslt.html>

The probem it tries to solve is excatly the one you are having - how to
go from writing HTML to using XSL to generate your HTML.

Well worth a read.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Poll source with links and images I.N. Galidakis HTML 1 10-26-2009 10:48 AM
Update to FAQ - Relative URLs for In-page Links and Links to Notes Garrett Smith Javascript 14 05-26-2009 04:50 PM
Buttons with links and images Jim S HTML 26 07-17-2008 09:52 AM
Adding Table Cells and Images/Links (ASP.NET Controls) Dynamically Carl Gilbert ASP .Net 0 07-20-2005 12:47 AM
Site Links and Physical WAN Links =?Utf-8?B?RW5mb1BhdWw=?= MCSE 2 03-22-2005 09:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57