Re: how to get filename through xsl
James Fuller <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Webcomposite |
| Message-ID | <[email protected]> |
>> EXSLT does not provide for this right now. Some processors, such as
>> 4Suite [1] do. I do think that EXSLT should grow a URI parse/handling
>> module, which could include a uri:base-uri() extension (returning the
>> base URI of the context node).
>
>
> That would be really great. How can we help on that?
what would be great is a first stab definition for the module area;
<?xml version="1.0"?>
<exslt:module xmlns:exslt="http://exslt.org/documentation"
version="1" prefix="uri">
<exslt:name>URI</exslt:name>
<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
ID="uri">
<dc:subject>EXSLT</dc:subject>
<dc:subject>uri</dc:subject>
<dc:subject>module</dc:subject>
<exslt:revision>
<rdf:Description
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
ID="uri.1">
<exslt:version>1</exslt:version>
<dc:creator>Jim Fuller</dc:creator>
<dc:date>2005-05-22</dc:date>
<dc:description>A module of URI parse/handling
functions.</dc:description>
</rdf:Description>
</exslt:revision>
</rdf:Description>
<exslt:doc xmlns="">
<section>
<para>
EXSLT - URI covers extension elements and functions that
provide facilities .....PLEASE INSERT
</para>
</section>
</exslt:doc>
<exslt:functions>
<exslt:function name="base-uri" version="1" core="yes" />
</exslt:functions>
</exslt:module>
then the next step would be to fill out the uri:base-uri() function
definition
<?xml version="1.0" encoding="utf-8"?>
<exslt:function xmlns:exslt="http://exslt.org/documentation"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:vcf="http://www.ietf.org/internet-drafts/draft-dawson-vcard-xml-dtd-03.txt"
version="1" module="uri" status="not-implemented">
<exslt:name>base-uri</exslt:name>
<rdf:Description ID="uri:base-uri">
<dc:subject>EXSLT</dc:subject>
<dc:subject>uri</dc:subject>
<dc:subject>base-uri</dc:subject>
<exslt:revision>
<rdf:Description ID="uri:base-uri.1">
<exslt:version>1</exslt:version>
<dc:creator rdf:parseType="Resource">
<vcf:fn>James Fuller</vcf:fn>
<vcf:email>[email protected]</vcf:email>
<vcf:url>http://www.ruminate.co.uk</vcf:url>
</dc:creator>
<dc:date>2005-05-22</dc:date>
<dc:description>
<dc:description>
<html:div>PLEASE INSERT DESCRIPTION HERE</html:div>
</dc:description>
</dc:description>
</rdf:Description>
</exslt:revision>
</rdf:Description>
<exslt:doc>
<html:div>
<html:p>
The <html:code>uri:base-uri</html:code> function ....PLEASE
INSERT HERE
</html:p>
</html:div>
</exslt:doc>
<exslt:definition>
<exslt:return type="string">
<html:div/>
</exslt:return>
<exslt:arg name="value" type="string" default="0" optional="no">
<html:div/>
</exslt:arg>
</exslt:definition>
<exslt:implementations>
<exslt:vendor-implementation
version="1"
vendor="4XSLT, from 4Suite."
vendor-url="http://4Suite.org"
vendor-version="???" />
<!-- note if we create an XSLT 2.0 func or an XSLT 1.0 template we need
to add reference to implementations here -->
</exslt:implementations>
<exslt:use-cases/>
</exslt:function>
would be great if anyone could knock this into shape... though no rush I
am still working on fixing the original EXSLT distro for review by
management gang.
cheers, Jim Fuller