[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Pass the value for xmlns:schemaLocation as a variable?

Subject: Pass the value for xmlns:schemaLocation as a variable? Possible?
From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx>
Date: Wed, 19 Oct 2005 15:56:33 +0100
xmlns schemalocation
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.