xsl-list
[Top] [All Lists]

Re: Xindice in XSL

2003-01-21 13:49:13
leona s wrote:
I have a number of XML files that I reference in XSL using document, e.g.,
<xsl:variable name="item"
select="document(concat('file:///dat/project/matrix.xml'))//Item[(_at_)id='3']"/>

I want to move these files into Xindice for serveral reasons and am looking
for the simplest
example of how to write XSL statements, such as the one above, using Xindice
...
<xsl:variable name="item"
select="xmldb:xindice:///db/dat/project/matrix//Item[(_at_)id='3']"/> ?

You can't do this directly, however, you can use the document
function with a custom URL schema, provided you use a Java base
XSLT processor and supply it a customized URIResolver which is
able to resolve your URLs. E.g. use

<xsl:variable name="item"
 select="document('xindice:///db/dat/project/matrix')//Item[(_at_)id='3']"/>

and have your URIResolver resolve the xindice schema.

Cocoon has its own resolvers already in place and you may
be able to use an URL similar to the above directly. Failing
this, you can try to redirect to an internal pipeline through
a cocoon: URL. For details consult the Cocoon docs and the
Cocoon user list.

J.Pietschmann


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



<Prev in Thread] Current Thread [Next in Thread>