[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xindice in XSL

Subject: Re: Xindice in XSL
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 21 Jan 2003 21:49:13 +0100
xindice xsl
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[@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']"/>

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



Current Thread
  • Xindice in XSL
    • leona s - Mon, 20 Jan 2003 19:29:17 -0500 (EST)
      • J.Pietschmann - Tue, 21 Jan 2003 15:47:13 -0500 (EST) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.