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

RE: Changing DOCTYPE during runtime

Subject: RE: Changing DOCTYPE during runtime
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 30 Aug 2004 18:16:14 +0100
doctype project
> -----Original Message-----
> From: Ranjan K. Baisak [mailto:ranjanbaisak@xxxxxxxxx] 
> Sent: 30 August 2004 12:29
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Changing DOCTYPE during runtime
> 
> Hello List,
>           My xml contains <!DOCTYPE project PUBLIC
> "-//XYZ Corporation//Project 1.3//EN"
> "h:/xyz_project/dtd/project.dtd"> and to change the
> hardcoded "h:", I declared a system variable PROJ_HOME
> and I changed the declaration 
> <!DOCTYPE project PUBLIC "-//XYZ Corporation//Project
> 1.3//EN" "$PROJ_HOME:/xyz_project/dtd/project.dtd">. 
> I am setting PROJ_HOME during runtime but still the
> same thing is not reflected in xml document.

> Am I doing something wrong?

Firstly, this question has nothing to do with XSLT.

Secondly, references to environment variables such as $PROJ_HOME are
replaced by the contents of the variable only when you are executing a shell
script, not when you are running software such as an XML Parser.

The correct mechanism to use here is a relative URI.

Michael Kay

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.