Re: [xslt] Beginning for a security framework for libxslt - featureRequest



On Fri, Oct 11, 2002 at 10:01:04AM +0200, Bernhard Zwischenbrugger wrote:
> Hi
> 
> When I'm working with more than one
> input or output file, there is somtime
> the need of the "ls" funktion.

  This would have to be an extension function.

> Also an interesting question is, if the document()
> function can read more then one file at once:
> 
> <xsl:xcopy-of select="document('/home/me/*.xml')"/>

  No that's very clear from the standard, and document()
does *not* take a filepath but an URI-Reference, i.e. it
points to *one* web resource.

> There is one more thing i was thinking about:
> "xpath in the filesystem"
> <xsl:for-each
> file:select="/home/me/mydocs//*[mime='text/xml'][owner='nobody')"/>
> <xsl:copy-of select="document(.)"/>
> </xsl:for-each>
> (dumps all XML content)

  Look at the collection features introduced in XPath 2.0,
of course it's still a working draft ... I take patches though !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]