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

RE: URIResolver

Subject: RE: URIResolver
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 14:13:38 -0400
get uriresolver
That's it. I was thinking that once I set the URIResolver, I was done.
Easy fix though. Thanks much. I guess .NET programmers and Java
programmers CAN get along. LOL.

Thanks again.

-Kevin


-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx]
Sent: Tuesday, September 20, 2005 1:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  URIResolver

I have very little experience of using Java for XML but in .NET you need
to pass the resolver twice, once when loading the XSLT to facilitate
xsl:include/import and once when transforming to resolve calls to
document(). the difference being that the former are resolved on loding,
the latter at the instant of transformation.
(There is also an issue with security, document() is not allowed by
default by untrusted callers, I don't know if this applies with xalan.)
Joe

----- Original Message -----
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, September 20, 2005 6:22 PM
Subject:  URIResolver


This may be somewhat off topic for this list so I apoligize in advance.

I've implemented a URIResolver for my transformer calls. For some
reason, when I use the document('') XPATH expression function, the
URIResolver does not get called. Instread I get the error "(The system
cannot find the file specified)". What I've read says that document()
should use URIResolver. Perhaps it's the implenation I'm using?

      <xsl:for-each select="document('facility_map.xml')">
         <xsl:value-of select="key('facilityIDMap', $lookup)/@value"/>
      </xsl:for-each>

My Transformer Factory Implementation is:
org.apache.xalan.processor.TransformerFactoryImpl

-Kevin

Current Thread

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.