473,322 Members | 1,421 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,322 software developers and data experts.

General question about XSLT capabilities

Can an XML Stylesheet Language Transform take data that is spread out in
multiple different XML files and not necessarily in proper order,
rearrange that data into it's proper order and then compile all of that
into a series HTML web pages for presentation? Or would I need to write a
custom program for that kind of thing?

Thanks
May 27 '07 #1
4 1785
In article <MP************************@news.newsguy.com>,
Grant Robertson <bo***@bogus.invalidwrote:
>Can an XML Stylesheet Language Transform take data that is spread out in
multiple different XML files and not necessarily in proper order,
rearrange that data into it's proper order and then compile all of that
into a series HTML web pages for presentation?
Probably. Reading from multiple files is supported with the
document() function. Writing multiple files in XSLT 1.0 requires an
extension of some kind, such as <exsl:document(see
http://www.exslt.org/); slternatively you could write a single
document and split it up somehow afterwards.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
May 27 '07 #2
Grant Robertson wrote:
Can an XML Stylesheet Language Transform take data that is spread out in
multiple different XML files and not necessarily in proper order,
rearrange that data into it's proper order and then compile all of that
into a series HTML web pages for presentation? Or would I need to write a
custom program for that kind of thing?
XSLT 2.0 can do both, read from multiple files using the document function
<http://www.w3.org/TR/xslt20/#document>
and create multiple result files using the xsl:result-document instruction
<http://www.w3.org/TR/xslt20/#creating-result-trees>
Saxon 8 <http://www.saxonica.comis an XSLT 2.0 processor available for
Java and for the Microsoft .NET framework.
--

Martin Honnen
http://JavaScript.FAQTs.com/
May 27 '07 #3
Grant Robertson wrote:
Can an XML Stylesheet Language Transform take data that is spread out in
multiple different XML files and not necessarily in proper order,
rearrange that data into it's proper order and then compile all of that
into a series HTML web pages for presentation? Or would I need to write a
custom program for that kind of thing?
Use the document() function to fetch their contents.

Reordering and so on is built into XSLT.

Multiple outputs is the tricky part. Basic XSLT 1.0 doesn't do that, but
you could achieve this by running several stylesheets (or one stylesheet
with different parameters each time). The EXSLT extension library, which
many-but-not-all XSLT processors support, adds the ability to "redirect"
output to additional documents and would let you do this in a single
stylesheet execution. XSLT 2.0 adds this capability as a standard part
of the language.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
May 27 '07 #4
In article <46**********************@newsspool2.arcor-online.net>,
ma*******@yahoo.de says...
XSLT 2.0 can do both, read from multiple files using the document function
<http://www.w3.org/TR/xslt20/#document>
and create multiple result files using the xsl:result-document instruction
<http://www.w3.org/TR/xslt20/#creating-result-trees>
Saxon 8 <http://www.saxonica.comis an XSLT 2.0 processor available for
Java and for the Microsoft .NET framework.

Awesome! All I need to know for now is if it is possible. Now I know
where to focus my energies when the time comes.

Thanks to everyone who responded so quickly.
May 27 '07 #5

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

Similar topics

4
by: chris | last post by:
hi, i am looking for a way to structure the text in XML comments to produce a XHTML doc format for the XMLs (in this case XSLT). so is was thinking about using a wiki like text format. e.g....
15
by: Simon Harvey | last post by:
Hi everyone, I am fairly new to learning about xsl and xml, but one thing I have noticed is that anyone offering a tutorial or lesson on it seems to think that its the most incredible invention...
3
by: Philipp Lenssen | last post by:
I have this XML file which I would like to XSLT-sort based on the string contained within the item-children elements using basic MSXML (no recent version of IIS, so it might be an outdated MSXML --...
6
by: Ramon M. Felciano | last post by:
Helo all -- I'm trying to gain a deeper understand for what type of semi-declarative programming can be done through XML and XPath/XSLT. I'm looking at graph processing problems as a testbed for...
6
by: ree32 | last post by:
I am a bit confused with capabilities of XML. I have an XML document with information on images(photos). Is there way to use XSL/XSLT to create a page that will display the images as gallery. ...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
1
by: arnold | last post by:
Hi, I've been knocking my head against the wall trying to create an XSL transform to perform "normalizations" of a set of XML files that have a common structure. % XML file before transform
5
by: Ted | last post by:
I am working on two versions of an application, one of which will be a windows forms application (which will need to be redistributable) and the other will be a web application. I have MS Visual...
4
by: shaun roe | last post by:
I should like to count the frequency of strings embedded in a longer string, space separated. Specifically, I have: <phiModule> 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 8 5 5 5 6 6 6 7 7 7 7 7 7 7 7...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.