xsl-list
[Top] [All Lists]

Pass the value for xmlns:schemaLocation as a variable? Possible?

2005-10-19 07:56:33
I have this following XSL.

<ReportRequest 
 xmlns="http://www.test.com/bta"; 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
 xmlns:schemaLocation="http://www.test.com/bta
/home/PS_ReportRequest.xsd">
...
</ReportRequest>


I would like to pass the path for the XSD file as a parameter to the
XSLT.

For example I have this XSL file (called abc.xsl), which contains the
path to the XSD:


XML:
<?xml version="1.0" encoding="UTF-8"?>
<param>/home/PS_ReportRequest.xsd</param>

-------------------------------------------------

XSLT:
<ReportRequest 
 xmlns="http://www.test.com/bta"; 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
 xmlns:schemaLocation="$param">

...
</ReportRequest>


I can't do a <xsl:value-of "param"/> instead of $param. Declaring a
variable is also not possible because the spot I can use XSL is after
the header.  So how can I do that?

Any idea?

Mnay thanks
Houman

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>