xml for data holding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Cunningham

    #1

    xml for data holding

    I know you can write an xml page that holds data and use XSL or CSS to
    format the XML page. But can you just hold data in an xml page and your XSL
    be in another page say html or xhtml?

    Bill




    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  • Martin SChukrazy

    #2
    Re: xml for data holding

    umm you could hold the xsl data in a seperate html page, but then
    programmaticall y you could extract the xsl
    contents and apply the transformation on your xml.

    Martin

    "Bill Cunningham" <nospam@nspam.n et> wrote in message
    news:4047b841_2 @corp.newsgroup s.com...[color=blue]
    > I know you can write an xml page that holds data and use XSL or CSS to
    > format the XML page. But can you just hold data in an xml page and your[/color]
    XSL[color=blue]
    > be in another page say html or xhtml?
    >
    > Bill
    >
    >
    >
    >
    > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    > -----== Over 100,000 Newsgroups - 19 Different Servers! =-----[/color]


    Comment

    • Bill Cunningham

      #3
      Re: xml for data holding


      "Martin SChukrazy" <prak24@hotmail .com> wrote in message
      news:4047dc20$0 $3081$61fed72c@ news.rcn.com...[color=blue]
      > umm you could hold the xsl data in a seperate html page, but then
      > programmaticall y you could extract the xsl
      > contents and apply the transformation on your xml.
      >
      > Martin
      >[/color]
      What about writing a page like this..
      <html xmlns="www.w3.o rg/1999/xhtml">
      to begin an xhtml page then...
      <script language="xml">
      xml data
      </script>
      </html>
      I think this technique is called xml islands. I'm not sure how it would be
      formatted for browsers with XSL.

      Bill






      -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
      http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
      -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

      Comment

      • Patrick TJ McPhee

        #4
        Re: xml for data holding

        In article <4047b841_2@cor p.newsgroups.co m>,
        Bill Cunningham <nospam@nspam.n et> wrote:

        % I know you can write an xml page that holds data and use XSL or CSS to
        % format the XML page. But can you just hold data in an xml page and your XSL
        % be in another page say html or xhtml?

        You could use the so-called `simplified syntax' to embed xslt in an xhtml
        page, then use the document() function to retrieve data from your other
        xml document. This would look something like

        <html xmlns='http://www.w3.org/1999/xhtml'
        xmlns:xsl='http ://www.w3.org/1999/XSL/Transform'
        xsl:version='1. 0'>
        <body>
        <xsl:for-each select='documen t("something-or-other.xml")//par'>
        <p><xsl:value-of select='.'/></p>
        </xsl:for-each>
        </body>
        </html>

        However, this syntax doesn't seem to be supported by Mozilla. I'm not
        sure about IE or other browsers, but if you do the transformation on
        the server side, you should be able to find a tool which supports it
        (libxslt does). Anyway, you can use the document function in
        a normal style sheet and `something-or-other.xml' will be resolved
        against the style sheet's base url, which might be what you want.
        --

        Patrick TJ McPhee
        East York Canada
        ptjm@interlog.c om

        Comment

        Working...