Hi folks, hopefully I posted this question in the right place.
I'm currently writing an html file which references three different
xml files, each one with its own xsl stylesheet. Originally I used
framesets to display each file, and everything worked fine. However,
this method produces an ugly page with too many scroll bars, and I
want to simplify the look.
I spent a good deal of time looking up ways to include html files
within another, and I tried SSI with Apache 2.2. That method just
displayed the xml elements on the page, and completely disregarded the
stylesheets and formatting.
I'm trying to use PHP right now, but I don't think that'll work either
since I'm pretty sure you have to include other php files, rather than
xml.
All I want is for each styled xml file to be displayed one after the
other on the page, without using frames where the height of each
section is limited and therefore scroll bars are introduced if the xml
docs are too long. Surely there must be some way to accomplish this?
Thanks! 2 2257
On 15 May, 15:51, Cameron.MacNeil ....@gmail.com wrote:
All I want is for each styled xml file to be displayed one after the
other on the page,
Write some PHP code to do the XSLT translation yourself (three times),
as you serve the page. Pretty standard stuff, so web searching should
find you examples.
Or else (assuming the XML doesn't change often) transform the XMLs to
HTML fragments (no <headelement or <bodytags, just straight into
the content). Store these on disk and include them through SSI. Re-run
the XSLT generation process as necessary, when the XML changes.
On Thu, 15 May 2008 16:51:12 +0200, <Ca************ *****@gmail.com wrote:
Hi folks, hopefully I posted this question in the right place.
I'm currently writing an html file which references three different
xml files, each one with its own xsl stylesheet. Originally I used
framesets to display each file, and everything worked fine. However,
this method produces an ugly page with too many scroll bars, and I
want to simplify the look.
I spent a good deal of time looking up ways to include html files
within another, and I tried SSI with Apache 2.2. That method just
displayed the xml elements on the page, and completely disregarded the
stylesheets and formatting.
I'm trying to use PHP right now, but I don't think that'll work either
since I'm pretty sure you have to include other php files, rather than
xml.
When trying to use PHP, ask in comp.lang.php.
As it's of topic here, I'll just say look at PHP's DOM
( http://www.php.net/DOM), http://nl2.php.net/manual/en/book.dom.php,
combined with the XSLT processor
( http://nl2.php.net/manual/en/class.xsltprocessor.php, have a look at
XSLTProcessor:: transformToDoc) , which probably will do what you want in an
embarrasingly small amount of code.
All I want is for each styled xml file to be displayed one after the
other on the page, without using frames where the height of each
section is limited and therefore scroll bars are introduced if the xml
docs are too long. Surely there must be some way to accomplish this?
That last part is just a CSS property of the container of course, using
overflow:auto & max-height, ask in
comp.infosystem s. www.authoring.stylesheets when in doubt.
--
Rik Wasmus
....spamrun finished This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Constant |
last post by:
I posted this on topxml.com and nobody has responded so I was hoping
somebody could help me here. I am following some tutorials in VS.NET.
I created a XSD schema file and then from there created an XML file.
Everything works okay and my data is validated against the schema. Now
when I try to display my xml using xsl it won't work unless I get rid
of the xmlns property of the xml file that points to my schema. Why
would I need to get rid of...
|
by: nanookfan |
last post by:
Hi all,
I'm having a bizarre problem converting XML files to HTML using an
XSLT. The problem is only occuring in my Netscape 7.0 browser. What
makes it more bizarre is that it is only happening when I put my XML
files and the .xsl files on my ISP's system for my home page. If I
try to open the XML files in Netscape 7.0 on my own machine (ie, not
on the ISP's system), the pages convert file and the result is
displayed in HTML.
|
by: gipsy boy |
last post by:
Hello,
I have sort of a big problem. I would really appreciate any help you
could give me.
I made a web service in C++ that throws XML to the client (browser).
But, the XSLT transormation (xml->html) doen't happen!
I have XSLT files for this, they work, I mean when I put the output of
the app as an XML file on some server, and make it use the XSLT files to
transform into HTML, it works, I get a HTML page.
|
by: danmc91 |
last post by:
Hi,
I'm just getting going with xml and xslt. I'm trying to write what are
essentially man pages and I need 3 output formats.
1) nroff -man format for real man pages
2) html for an online help browser
3) ascii where every line must start with a '%' character (octave
|
by: dar_imiro |
last post by:
Hi,
I'm trying to get rid of frames as menu holder in my html-page. I'd
also like to separate the menu structure to xml and xslt. Also the
actual content is divided to xml and its corresponding stylesheet.
The idea ofcourse is to import the separate menu.xml to the
content.xslt file so the menu markup wont clutter every content.xml
page.
| |
by: David S. Alexander |
last post by:
How can I do simple subtraction in an XSLT.
I want to read a few attribute values from an XML document, calculate their
difference, and transform that value to an attribute in the XML output
document.
My original XML is,
<Dates>
<Birth Year="1966" />
|
by: danmc91 |
last post by:
Hello,
I'm new to xml and xslt but that should be obvious from my question.
I'm trying to help my wife set up some web pages with some of her art
work and what I'm trying to do is find a way to get all of the
information about the pictures in an XML file and then use xslt to
produce some different html files.
My first problem is I can't seem to figure out how to get this to
|
by: astroboiii |
last post by:
New to the whole xml thing and finding w3schools to be an excellent resource.
Now down to my question:
I have several xml files I need to parse through and grab relevant information from and produce a new xml file. This needs to be automated through ant.
The ant script is working fine, and I am usign the <transform> function to use my xslt file and go through all the required xml files, parse them, style them, and ultimately generate my...
|
by: z1 |
last post by:
hi-
i am fooling around with soap and weather templates.
for some reason either this if or select is failing.
i am very new to xml and found this code at another site.
i can show you the xml and then the xslt sample code that is not matching.
please look and if it jumps right off the page give me a tip on why it didnt
select the data.
i think for most xslt people this will be easy. i want the if to work if it
is null because
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |