473,405 Members | 2,415 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,405 software developers and data experts.

XSL: xform one XML file into multiple HTML files?

Given one XML file, is it possible in XSL to transform it into multiple HTML
files? I have a file I'd like to transform into an index page with links to
per-category pages. I haven't seen anything in the w3.org pages hinting at
this possibility, but maybe one of y'all knows a trick....

I expect that I'll have to use multiple XSL stylesheets and corral them with
a Perl script.

Jul 20 '05 #1
1 1431


Richard R. wrote:
Given one XML file, is it possible in XSL to transform it into multiple HTML
files? I have a file I'd like to transform into an index page with links to
per-category pages. I haven't seen anything in the w3.org pages hinting at
this possibility, but maybe one of y'all knows a trick....


With XSLT 1.0 there is exactly one result document (well one result tree
that can then be serialized into one result document) but processors
like Saxon 6 (see http://saxon.sourceforge.net/) and others implement
extensions that allow you to create additional result trees/documents.
See
http://saxon.sourceforge.net/saxon6....l#xsl:document
for Saxon's extension or check your processor's documentation.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

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

Similar topics

5
by: ted | last post by:
Hello, I have a HTML table in my XSL that basically handles the layout of the whole page. I'm using xsl:include to split up the XSL into separate files. Is there a trick or technique to put...
0
by: Jimmy | last post by:
Hi, I have a (multi-tier) XML document and a XSL transform file (that is meant to transform the XML into a flat structure so I can insert the data into a database table). I have reached a...
2
by: Tjerk Wolterink | last post by:
Hello i have an xml file and an xsl file: xml: <?xml version="1.0" encoding="ISO-8859-1"?> <xc:xcontent xmlns:xc="http://www.wolterinkwebdesign.com/xml/xcontent"...
6
by: shailesh_gaikar | last post by:
All, Please help in the following. I am new to XML and XSL. I have written one XSL as follows: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"...
0
by: bouton | last post by:
I am trying to 'union' multiple xml files into one html table with only a few of the many fields/elements displayed using xsl. I have index.xml which lists the documents, all of which validate...
1
by: PK9 | last post by:
I'm building a windows app using C#. The goal is to merge portions of multiple xml files into one. I currently have an .xsl stylesheet that pulls in the required sections of multiple xml files...
13
by: Toby Newman | last post by:
I started learning XML on Monday. I have an XML file and have written an XSL file to render it to HTML for formatted viewing in a browser. I'd like to create a second alternative view of the...
5
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done...
0
by: jephperro | last post by:
Hi, I'm trying to do something with multiple xml files and am wondering if it is possible. I have 2 XML feeds: One is a list of locations, LOC.XML One is a list of products,PROD.XML I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.