This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using xml:base in an xsl:stylesheet declaration - how about it?
- To: xsl-list at mulberrytech dot com
- Subject: Using xml:base in an xsl:stylesheet declaration - how about it?
- From: Dan Morrison <dman at es dot co dot nz>
- Date: Tue, 28 Mar 2000 17:55:25 +1200
- Organization: Disorganised
- References: <E736B4E63AF1D311AE6B0050DAD8057119980F@admin-hq-mail.srr.com>
- Reply-To: xsl-list at mulberrytech dot com
I have a problem, & I have a solution.
I just want to bat it around here before I apply it across the board.
Currently there is no documented equivalent to the <BASE href=""> tag in
html for XSL stylesheets.
However, the use of xsl:include & xsl:import rely explicitly on there
being a 'Base URI' available to work from.
Now in my case I'm either parsing & caching my xsl long before the
transform, or in some cases generating it from scratch. I still want to
use xsl:include, but my xsl tree has no Base URI.
So I want to explicitly define it, and I'd like to do that in a way that
falls within the rules.
I see that this issue as it applies to XML in general has already been
considered in the proposal
http://www.w3.org/TR/xmlbase
Great.
So can anyone give me some good reasons (I mean REALLY good reasons) why
I should not start using syntax like
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xml:base="http://my.host/xsl/mystylesheet.xsl"
>
for the purposes of my own development? (or should that be xsl:base?)
And if this strikes a chord, will we be likely to see adoption of this
method in the future?
Awaiting a response (as I'm sure there's something I haven't thought of
that will annoy the spec Nazis out there)
Regards .dan.
--
:=====================:====================:
: Dan Morrison : The Web Limited :
: http://here.is/dan : http://web.co.nz :
: dman@es.co.nz : danm@web.co.nz :
: 04 384 1472 : 04 495 8250 :
: 021 115 7339 : :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list