This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: nesting xml


Okay.  well i'm trying to store a webpage in xml format.  The only reason behind this is because we're developing an online website editor for teachers and only want them to be able to include certain types of objects (ie hyperlinks, images, lists, etc), but don't want them to have to deal with the html source.  So, i figured that xml would be a good way to store the information since it seems i can 'easily' choose how each object is to be rendered.  So, here's the xml for what i'm trying to make...the html output should be obvious...if anyone can help, or if anyone can think of a better way to do this, any help would be appreciated!  thanks,

-Mark

Sample XML:

<webquest>
  <text>
    Hello, and welcome to my page!
  </text>
  <image>
    <src>/images/image1.jpg</src>
    <border>0</border>
  </image>
  <hyperlink>
    <url>http://www.yahoo.com</url>
    <text>Yahoo!</text>
  </hyperlink>
  <hyperlink>
    <url>/page2.html</url>
    <image>
      <src>/images/learn.gif</src>
      <border>1</border>
    </image>
  </hyperlink>
</webquest>

HTML output should read:

<HTML><BODY>
Hello, and welcome to my page!
<image src="/images/image1.jpg" border=0>
<a href="http://www.yahoo.com";>Yahoo!</a>
<a href="/page2.html">
<image src="/images/learn.gif" border=1>
</a>

---------- Original Message ----------------------------------
From: Dan Diebolt <dandiebolt@yahoo.com>
Reply-To: xsl-list@lists.mulberrytech.com
Date: Wed, 2 May 2001 12:27:35 -0700 (PDT)

>You subject line says it all; XML is nothing but nesting. You
>don't need to parse XML - that is what the XSLT parser does for
>you. Post a small XML fragment with non-empty element and what 
>you what to do with it (how you want it transformed or rendered)
>and you will get quick answer. The paradigm of XSLT does not
>use subs or functions, but rather matching and evaluating templates
>recursively. To get started you may want to search for +xslt 
>+tutorial as there are quite a few introductions out there.
>
>Regards,
>
>Dan
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]