[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xbind:module == xsl:script + an essential layer of indirection


Subject: Re: [xsl] xbind:module == xsl:script + an essential layer of indirection
From: "Clark C. Evans" <cce@xxxxxxxxxxxxxx>
Date: Sat, 3 Mar 2001 04:44:40 -0500 (EST)

On Sat, 3 Mar 2001, Clark C. Evans wrote:
> > So, as Steve said, the above are *completely* identical.  The only
> > difference is the amount of typing that you have to do to associate a
> > piece of code with a particular namespace.

Can we get into esoterics here?  Just a wee bit ago, on the xml-dev 
list, Curt Arnold stated that the inability to assign specific
prefixes in XSLT would prevent usage of an implements-prefix
within SVG's script element.   I scanned the 1.1 WD and did not 
see where the new specification has addressed this difficulty.

Without the ability to specify prefixes, then an XSLT stylesheet
which generates an XSLT stylesheet will be unable to declare
script items.  Right?   Or am I missing something again?

On Sat, 3 Mar 2001, Arnold, Curt wrote:
> Though using implements-prefix would save an XSLT author some
> keystrokes, using a namespace prefix instead of an namespace uri to
> identify script functionality  in SVG would make generation of SVG
> using XSLT difficult since there is no control over what prefix
> is assigned to a particular namespace.
>
> Definitely, it is a little circular:
>
> 1. SVG could also benefit from allowing redundant implementations
>    of a specific package of behaviors identified by a namespace.
> 2. XSLT may be used to generate SVG and does not provide a mechanism
>    to output the prefix associated with a namespace.
> 3. Therefore, a uri should be used to identify the package of
>    behaviors in SVG.
> 4. XSLT's <script> should be consistent with SVG's script
> 5. Therefore, XSLT should use a namespace URI instead of a namespace
>    prefix.
>
> I guess what was suggesting was:
>
> <xsl:stylesheet
>   xmlns:foo="http://www.example.com/XSLT-behavior/date-format" ... >
>
>   <xsl:script
>     implements="http://www.example.com/XSLT-behavior/date-format"
>     type="application/java-archive"
>     src="jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class" />
>
> where the URL format came from the documentation JarURLConnection 
> in the JDK. I did find a reference for a list of registered media types:
>
>  ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types
>
> However, media types image/svg+xml and text/ecmascript used in SVG
> did not appear to be registered nor did application/java-archive.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords