General discussion

Locked

XSLT Parameter Passing

By iagot ·
I am developing an application that uses XSLT to convert several XML datafiles and associated images into an HTML presentation.

The datafiles live in several directories (DataA, DataB, DataC). The XSLT lives in a Resources directory. I need to pass the directory name for the datafile to the XSLT in the resources directory.

As it stands now, the initial xml file that starts it resides in the Data directory:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../resources/report.xsl"?>
<xi:include href="Datafile.xml" xmlns:xi=http://www.w3.org/2001/XInclude</A>"/>

reports.xsl lives in the resources directory and needs a path to Datafile.xml. Furthermore, it needs to be able to pass it along to other xml files referenced from reports.xsl. The href doesn't seem to do it. How do I proceed?

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums