Subject: Re: [xsl] Xindice in XSL From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Tue, 21 Jan 2003 21:49:13 +0100 |
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[@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[@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[@id='3']"/>
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Xindice in XSL, leona s | Thread | [xsl] Grouping Using XSL, Rigoberto |
[xsl] xsl filters pipeline again..., Errea Alexandra | Date | RE: [xsl] xsl filters pipeline agai, cknell |
Month |