[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-dev
Subject: RE: [xml-dev] URIResolver for saxon
From: "Michael Kay" <mike () saxonica ! com>
Date: 2005-06-28 16:06:59
Message-ID: 200506281608.j5SG8TIO005267 () mailer ! progressive-comp ! com
[Download RAW message or body]
A question like this would best be asked on the saxon-help list or forum at
SourceForge.
The URIResolver interface is part of JAXP, and there is some explanation in
the package description for javax.xml.transform in the JDK javadoc
specifications: but no specific examples.
There is an example in the TraxExamples.java sample application, though it's
a rather trivial one, and it is an XSLT example rather than a XQuery
example. However, the interface is really very simple: if you've tried to
get it to work and can't, then it should be easy to show you what you've
done wrong.
Performance: no, there's no reason why a user-written URIResolver should be
less efficient than the system-supplied one, unless of course it is
intrinsically inefficient.
Michael Kay
http://www.saxonica.com/
_____
From: Shay Artzi [mailto:shay.artzi@weblayers.com]
Sent: 28 June 2005 16:29
To: xml-dev@lists.xml.org
Subject: [xml-dev] URIResolver for saxon
Hi,
I'm writing an application in which the user will manage XQuery functions in
libraries.
I have two questions:
1) Is there an example/explanation of how to create a URIResolver for Saxon?
I couldn't find one.
2) Performance: will using a URIResolver for the XQuery import module have a
significant effect on performance?
If so is there a way to overcome/reduce that?
Thanks,
Shay
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2>A question like this would best be asked on the saxon-help
list or forum at SourceForge.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2>The URIResolver interface is part of JAXP, and there is
some explanation in the package description for javax.xml.transform in the JDK
javadoc specifications: but no specific examples. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2>There is an example in the TraxExamples.java sample
application, though it's a rather trivial one, and it is an XSLT example rather
than a XQuery example. However, the interface is really very simple: if you've
tried to get it to work and can't, then it should be easy to show you what
you've done wrong.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2>Performance: no, there's no reason why a user-written
URIResolver should be less efficient than the system-supplied one, unless of
course it is intrinsically inefficient.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=215213815-28062005><FONT face=Arial
color=#0000ff size=2><A
href="http://www.saxonica.com/">http://www.saxonica.com/</A></FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Shay Artzi
[mailto:shay.artzi@weblayers.com] <BR><B>Sent:</B> 28 June 2005
16:29<BR><B>To:</B> xml-dev@lists.xml.org<BR><B>Subject:</B> [xml-dev]
URIResolver for saxon<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; \
PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; BORDER-LEFT: blue \
1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none"> <DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi,
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I’m writing an
application in which the user will manage XQuery functions in
libraries.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have two
questions:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">1) Is there an
example/explanation of how to create a URIResolver for Saxon?
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I couldn’t find
one. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">2) Performance:
will using a URIResolver for the XQuery import module have a significant
effect on performance?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
If so is there a way to overcome/reduce that?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">Thanks,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"> Shay<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p> </o:p></SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic