xsl-list
[Top] [All Lists]

RE: [xsl] Is there a way to assign a base URI to a document?

2011-08-25 14:26:55
Ah!

A brilliant idea Andrew!

That does the job. If I embed xml:base into the XML document:

<test xml:base="file:/C:/xslt/examples/test6/test.xml">
    <location href="stuff/other.xml" />
</test>

Then I can pass it around to any function without losing its base URI.

Thanks!

/Roger

-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com] 
Sent: Thursday, August 25, 2011 3:15 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Is there a way to assign a base URI to a document?

I would really like to assign to $new-xml a base URI. Is there a way to do 
that? If not, what's the best way to deal with this situation?

xml:base ?



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>