[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: nesting xml

Subject: Re: nesting xml
From: "Mark Kahn" <imail@xxxxxxxxxxx>
Date: Thu, 3 May 2001 12:18:47 -0500
mark kahn
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@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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


Current Thread
  • nesting xml
    • Mark Kahn - Wed, 2 May 2001 14:28:00 -0400 (EDT)
      • <Possible follow-ups>
      • Dan Diebolt - Wed, 2 May 2001 15:26:41 -0400 (EDT)
      • Mark Kahn - Thu, 3 May 2001 12:16:56 -0400 (EDT) <=
      • Mark Kahn - Thu, 3 May 2001 13:06:16 -0400 (EDT)
      • Mark Kahn - Thu, 3 May 2001 14:39:39 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.