473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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! =-----
Jul 20 '05 #1
3 1365
umm you could hold the xsl data in a seperate html page, but then
programmatically you could extract the xsl
contents and apply the transformation on your xml.

Martin

"Bill Cunningham" <no****@nspam.net> wrote in message
news:40********@corp.newsgroups.com...
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! =-----

Jul 20 '05 #2

"Martin SChukrazy" <pr****@hotmail.com> wrote in message
news:40**********************@news.rcn.com...
umm you could hold the xsl data in a seperate html page, but then
programmatically you could extract the xsl
contents and apply the transformation on your xml.

Martin

What about writing a page like this..
<html xmlns="www.w3.org/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! =-----
Jul 20 '05 #3
In article <40********@corp.newsgroups.com>,
Bill Cunningham <no****@nspam.net> 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='document("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
pt**@interlog.com
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill | last post by:
I have an entry form allowing customers to enter up to 15 skus (product id) at a time, so they can make a multiple order, instead of entering one sku, then submitting it, then returing to the form...
8
by: Ilan | last post by:
Hi all I need to add data from two Excel sheets (both on the same workbook) to an existing table in my SQL DB. The problem is that each sheet holds different fields for the same record, though...
0
by: Ramesh K | last post by:
Hi All, To debug a C++ program running under DLLHOST, i am attaching to the DLLHOST process..even after detaching, dbgproxy.exe is holding a file reference(HANDLE) to the C++ COM component. So...
2
by: serge | last post by:
My project is to automate testing of Stored Procedures of type SELECT (at least for now). I want to create a table where each stored procedure's input parameter values are entered and in another...
6
by: MLH | last post by:
I would like a scanner - something like a pencil that would allow me to attempt to scan printed text off hardcopies. Not all text on a page, mind you. Something I could use to scan just the words...
35
by: Sunil | last post by:
Hi all, I am using gcc compiler in linux.I compiled a small program int main() { printf("char : %d\n",sizeof(char)); printf("unsigned char : ...
0
by: Ramesh K | last post by:
Hi All, To debug a C++ program running under DLLHOST, i am attaching to the DLLHOST process..even after detaching, dbgproxy.exe is holding a file reference(HANDLE) to the C++ COM component. So...
5
by: mantrid | last post by:
Hello My web hosting company has lost my data due to the mysql software failing, it only affected those people using innoDB engine. I asked them why they didnt restore from a back up. They said...
3
by: Code Monkey | last post by:
DataTable loading a SqlDataReader (dt.Load())? Vanilla DataTable using SqlDataAdapter or SqlDataReader ? or is there a better way using Generics? If so, how? Essentially I want to get about...
1
by: kenny Ajram | last post by:
hi everybody, i have a rather short and possibly easy question: i have two tables and want to find all unequal datasets. for instance like this: i have a table A holding fields id and x and a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.