<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-3800</id>
	<title>Nabble - Saxon XSLT and XQuery Processor</title>
	<updated>2009-11-27T14:48:59Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Saxon-XSLT-and-XQuery-Processor-f3800.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Saxon-XSLT-and-XQuery-Processor-f3800.html" />
	<subtitle type="html">The Saxon XSLT and XQuery processor, developed by Michael Kay Saxon XSLT and XQuery Processor home is &lt;a href=&quot;http://sourceforge.net/projects/saxon/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26548806</id>
	<title>Re: saxon libraries</title>
	<published>2009-11-27T14:48:59Z</published>
	<updated>2009-11-27T14:48:59Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;&lt;/TITLE&gt;
&lt;META content=text/html;charset=ISO-8859-1 http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff text=#000000&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=773204822-27112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;As this seems to be a commercial question rather than a 
support question I will answer it off-list.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=773204822-27112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=773204822-27112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Fabio Ricci 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26548806&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fabio.fr.ricci@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 27 November 2009 
  22:18&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; [saxon] saxon libraries&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Dear Michael&lt;BR&gt;&lt;BR&gt;We are working for a WEB2.0 research open 
  source project in which XML/XSL components should be retrieved from inside a 
  DMZ, hence going through a proxy. Your library - expecially georges.jar seem 
  to fit to this purpose. We just need to transform XML using XSL 
  transformations, and have - strictly considered - the instruction to use only 
  free open source software. Is there a form of using a sublibrary of saxonica 
  inside the GNU licence but with http-proxy settings? How much would a single 
  license cost? The licence will be placed on one single server.&lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=moz-signature&gt;
  &lt;META content=text/css http-equiv=Content-Style-Type&gt;
  &lt;META name=Generator content=&quot;Cocoa HTML Writer&quot;&gt;
  &lt;META name=CocoaVersion content=949.54&gt;
  

  &lt;P class=p1&gt;&lt;SPAN class=s1&gt;Meilleures salutations / &lt;/SPAN&gt;Viele Grüsse / Kind 
  regards&lt;/P&gt;
  &lt;P class=p1&gt;Fabio Ricci&lt;/P&gt;
  &lt;P class=p2&gt;&lt;BR&gt;&lt;/P&gt;
  &lt;P class=p1&gt;Development RODIN&lt;/P&gt;
  &lt;P class=p1&gt;Tel. +41 76 5281961&lt;/P&gt;
  &lt;P class=p3&gt;Haute Ecole de Gestion  Campus de Battelle - Bât. F&lt;/P&gt;
  &lt;P class=p3&gt;Route de Drize 7  1227 CAROUGE / Genève 
  (Suisse)&lt;/P&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR&gt;Michael Kay a écrit&amp;nbsp;: 
  &lt;BLOCKQUOTE cite=mid:E4D37CF17A3942EF8B8FDF005F46848B@Sealion type=&quot;cite&quot;&gt;
    &lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;BR&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;Saxon 
    Professional or Enterprise Edition are available without cost to 
    non-commercials opensource projetcs?&amp;nbsp;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;No, sorry, they are only available on commercial 
    terms.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;If you need the functionality of an extension such as 
    saxon:line-number in an open-source application project, you can usually 
    implement an equivalent as part of the application. Saxon-HE doesn't allow 
    dynamic linking of extension functions loaded from the classpath, but it 
    does allow &quot;integrated extension functions&quot; that are explicitly supplied by 
    the application.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Information is here:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;A href=&quot;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&quot; moz-do-not-send=&quot;true&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;!-- Converted from text/plain format --&gt;
    &lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; moz-do-not-send=&quot;true&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; moz-do-not-send=&quot;true&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
    &lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE wrap=&quot;&quot;&gt;&lt;HR SIZE=4 width=&quot;90%&quot;&gt;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  &lt;A class=moz-txt-link-freetext href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;&lt;/PRE&gt;&lt;PRE wrap=&quot;&quot;&gt;&lt;HR SIZE=4 width=&quot;90%&quot;&gt;
_______________________________________________
saxon-help mailing list archived at &lt;A class=moz-txt-link-freetext href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/A&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26548806&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;A class=moz-txt-link-freetext href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/A&gt; &lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26548806&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26548806.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26548680</id>
	<title>saxon libraries</title>
	<published>2009-11-27T14:17:40Z</published>
	<updated>2009-11-27T14:17:40Z</updated>
	<author>
		<name>Fabio Ricci-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Dear Michael&lt;br&gt;
&lt;br&gt;
We are working for a WEB2.0 research open source project in which
XML/XSL components should be retrieved from inside a DMZ, hence going
through a proxy. Your library - expecially georges.jar seem to fit to
this purpose. We just need to transform XML using XSL transformations,
and have - strictly considered - the instruction to use only free open
source software. Is there a form of using a sublibrary of saxonica
inside the GNU licence but with http-proxy settings? How much would a
single license cost? The licence will be placed on one single server.&lt;br&gt;
&lt;br&gt;
&lt;div class=&quot;moz-signature&quot;&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; &quot;&gt;
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot;&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta name=&quot;Generator&quot; content=&quot;Cocoa HTML Writer&quot;&gt;
&lt;meta name=&quot;CocoaVersion&quot; content=&quot;949.54&quot;&gt;

&lt;p class=&quot;p1&quot;&gt;&lt;span class=&quot;s1&quot;&gt;Meilleures salutations / &lt;/span&gt;Viele
Gr&amp;uuml;sse / Kind regards&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Fabio Ricci&lt;/p&gt;
&lt;p class=&quot;p2&quot;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Development RODIN&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Tel. +41 76 5281961&lt;/p&gt;
&lt;p class=&quot;p3&quot;&gt;Haute Ecole de Gestion &amp;#8211; Campus de Battelle - B&amp;acirc;t. F&lt;/p&gt;
&lt;p class=&quot;p3&quot;&gt;Route de Drize 7 &amp;#8211; 1227 CAROUGE / Gen&amp;egrave;ve (Suisse)&lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
Michael Kay a &amp;eacute;crit&amp;nbsp;:
&lt;blockquote cite=&quot;mid:E4D37CF17A3942EF8B8FDF005F46848B@Sealion&quot; type=&quot;cite&quot;&gt;
  &lt;meta content=&quot;text/html; charset=us-ascii&quot; http-equiv=&quot;Content-Type&quot;&gt;
  &lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;br&gt;
  &lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;Saxon Professional or Enterprise Edition
are available without cost to non-commercials opensource projetcs?&amp;nbsp;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;No, sorry, they are only
available on commercial terms.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;If you need the functionality of
an extension such as saxon:line-number in an open-source application
project, you can usually implement an equivalent as part of the
application. Saxon-HE doesn't allow dynamic linking of extension
functions loaded from the classpath, but it does allow &quot;integrated
extension functions&quot; that are explicitly supplied by the application.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Information is here:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a moz-do-not-send=&quot;true&quot; href=&quot;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&lt;!-- Converted from text/plain format --&gt;
  &lt;p&gt;&lt;font size=&quot;2&quot;&gt;Regards,&lt;br&gt;
  &lt;br&gt;
Michael Kay&lt;br&gt;
  &lt;a moz-do-not-send=&quot;true&quot; href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;
  &lt;a moz-do-not-send=&quot;true&quot; href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;
  &lt;/font&gt;&lt;/p&gt;
  &lt;/span&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;937203008-26112009&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  &lt;pre wrap=&quot;&quot;&gt;
&lt;hr size=&quot;4&quot; width=&quot;90%&quot;&gt;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;/pre&gt;
  &lt;pre wrap=&quot;&quot;&gt;
&lt;hr size=&quot;4&quot; width=&quot;90%&quot;&gt;
_______________________________________________
saxon-help mailing list archived at &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26548680&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26548680&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26548680.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526013</id>
	<title>Re: Difficulties using saxon:line-number</title>
	<published>2009-11-26T00:33:52Z</published>
	<updated>2009-11-26T00:33:52Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;
&lt;DIV dir=ltr align=left&gt;&lt;BR&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;Saxon Professional or Enterprise 
Edition are available without cost to non-commercials opensource 
projetcs?&amp;nbsp;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;No, sorry, they are only available on commercial 
terms.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;If you need the functionality of an extension such as 
saxon:line-number in an open-source application project, you can usually 
implement an equivalent as part of the application. Saxon-HE doesn't allow 
dynamic linking of extension functions loaded from the classpath, but it does 
allow &quot;integrated extension functions&quot; that are explicitly supplied by the 
application.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Information is here:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;A href=&quot;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/documentation/extensibility/integratedfunctions.html&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=937203008-26112009&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526013&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26526013.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523459</id>
	<title>Re: Difficulties using saxon:line-number</title>
	<published>2009-11-25T18:12:47Z</published>
	<updated>2009-11-25T18:12:47Z</updated>
	<author>
		<name>Gustavo de Sá Carvalho Honorato</name>
	</author>
	<content type="html">Michael,&lt;br&gt;&lt;br&gt;Saxon Professional or Enterprise Edition are available without cost to non-commercials opensource projetcs? I can&amp;#39;t see this information clearly on the site.&lt;br&gt;&lt;br&gt;Thanks again,&lt;br&gt;Gustavo Honorato&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 7:57 PM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523459&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;




&lt;div&gt;&lt;div class=&quot;im&quot;&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;xmlns:saxon=&amp;quot;&lt;a title=&quot;http://icl.com/saxon&quot; href=&quot;http://icl.com/saxon&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon&lt;/a&gt;&amp;quot;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;This is the Saxon namespace for Saxon 6.5 and earlier. The 
namespace for the current release (9.2) and every release since 7.0 
is&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;xmlns:saxon=&amp;quot;&lt;a title=&quot;http://icl.com/saxon&quot; href=&quot;http://saxon.sf.net/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/a&gt;&amp;quot;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;Note 
however that in Saxon 9.2, extension functions such as saxon:line-number() are 
not available in the Home Edition - you need the Professional or Enterprise 
Editions.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;Also 
note, you specified version=&amp;quot;1.0&amp;quot; in your stylesheet, but the stylesheet uses 
XSLT 2.0 features (xpath-default-namespace). This is legal, but probably best 
avoided.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;&lt;span&gt;
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;Regards,&lt;br&gt;&lt;br&gt;Michael Kay&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt; 
&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;blockquote style=&quot;border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;&quot;&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot; lang=&quot;en-us&quot;&gt;
  &lt;hr&gt;
  &lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Gustavo de Sá Carvalho Honorato 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523459&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gustavohonorato@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 25 November 2009 
  20:41&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; [saxon] Difficulties using 
  saxon:line-number&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
  &lt;div&gt;&lt;/div&gt;Hi all again,&lt;br&gt;&lt;br&gt;now I&amp;#39;m having some difficulties using 
  saxon:line-number function with JAXP API. The stylesheet below is returning 
  the following error in function saxon:line-number. Anyone has any ideas of 
  what is happening?&lt;br&gt;&lt;br&gt;EXCEPTION:&lt;br&gt;&lt;br&gt;Error on line 15 &lt;br&gt;  Cannot 
  find a matching 0-argument function named {&lt;a href=&quot;http://icl.com/saxon%7Dline-number%28%29&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/a&gt;&lt;br&gt;  
  in built-in template rule&lt;br&gt;  at xsl:apply-templates 
  (#11)&lt;br&gt;     processing 
  /ncl/head[1]/regionBase[1]/region[1]&lt;br&gt;  in built-in template 
  rule&lt;br&gt;  in built-in template rule&lt;br&gt;Caused by: 
  net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function 
  named {&lt;a href=&quot;http://icl.com/saxon%7Dline-number%28%29&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/a&gt;&lt;br&gt;    
  at 
  net.sf.saxon.expr.ErrorExpression.evaluateItem(ErrorExpression.java:58)&lt;br&gt;    
  at 
  net.sf.saxon.expr.ErrorExpression.iterate(ErrorExpression.java:71)&lt;br&gt;    
  at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:180)&lt;br&gt;    
  at 
  net.sf.saxon.expr.FirstItemExpression.evaluateItem(FirstItemExpression.java:96)&lt;br&gt;    
  at 
  net.sf.saxon.expr.CastExpression.evaluateItem(CastExpression.java:316)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.SimpleNodeConstructor.expandChildren(SimpleNodeConstructor.java:254)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:193)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.Instruction.process(Instruction.java:93)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;    
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;    
  at 
  net.sf.saxon.Controller.transformDocument(Controller.java:1851)&lt;br&gt;    
  at 
  net.sf.saxon.Controller.transform(Controller.java:1702)&lt;br&gt;    
  at 
  br.pucrio.inf.serg.nclinspector.rulesengine.core.xslt.XSLTInspector.visit(XSLTInspector.java:70)&lt;br&gt;    
  ... 5 more&lt;br&gt;&lt;br&gt;STYLESHEET:&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; 
  encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;xsl:stylesheet 
  version=&amp;quot;1.0&amp;quot;&lt;br&gt;    xmlns:xsl=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Transform&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/a&gt;&amp;quot;  
  &lt;br&gt;    xmlns:saxon=&amp;quot;&lt;a href=&quot;http://icl.com/saxon&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon&lt;/a&gt;&amp;quot;&lt;br&gt;  
      extension-element-prefixes=&amp;quot;saxon&amp;quot;&lt;br&gt;  
      xpath-default-namespace=&amp;quot;&lt;a href=&quot;http://www.ncl.org.br/NCL3.0/EDTVProfile&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ncl.org.br/NCL3.0/EDTVProfile&lt;/a&gt;&amp;quot;&amp;gt;&lt;br&gt;  
      &lt;br&gt;    &amp;lt;xsl:template 
  match=&amp;quot;/ncl/head/regionBase&amp;quot;&amp;gt;&lt;br&gt;        
  &amp;lt;result&amp;gt;&lt;br&gt;            
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;        
  &amp;lt;/result&amp;gt;&lt;br&gt;    
  &amp;lt;/xsl:template&amp;gt;&lt;br&gt;    &amp;lt;xsl:template 
  match=&amp;quot;region[@top][@bottom][@height]&amp;quot;&amp;gt;&lt;br&gt;    
      &amp;lt;violation line=&amp;quot;{saxon:line-number()}&amp;quot; 
  column=&amp;quot;{saxon:column-number()}&amp;quot; msgKey=&amp;quot;topBottomHeight&amp;quot; 
  severity=&amp;quot;warning&amp;quot;&amp;gt;&lt;br&gt;        
      &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;./@id&amp;quot;/&amp;gt;&amp;lt;/arg&amp;gt; 
  &lt;br&gt;        
  &amp;lt;/violation&amp;gt;&lt;br&gt;        
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;    
  &amp;lt;/xsl:template&amp;gt;&lt;br&gt;    &amp;lt;xsl:template 
  match=&amp;quot;region[@left][@right][@width]&amp;quot;&amp;gt;&lt;br&gt;    
      &amp;lt;violation line=&amp;quot;1&amp;quot; column=&amp;quot;1&amp;quot; msgKey=&amp;quot;leftRightWidth&amp;quot; 
  severity=&amp;quot;warning&amp;quot;&amp;gt;&lt;br&gt;        
      &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;./@id&amp;quot;/&amp;gt;&amp;lt;/arg&amp;gt; 
  &lt;br&gt;        
  &amp;lt;/violation&amp;gt;&lt;br&gt;        
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;    
  &amp;lt;/xsl:template&amp;gt;&lt;br&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;br&gt;&lt;br&gt;Thanks in 
  advance,&lt;br&gt;Gustavo Honorato&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;br&gt;
saxon-help@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523459&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26523459.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520998</id>
	<title>Re: Difficulties using saxon:line-number</title>
	<published>2009-11-25T13:57:24Z</published>
	<updated>2009-11-25T13:57:24Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;xmlns:saxon=&quot;&lt;A title=http://icl.com/saxon href=&quot;http://icl.com/saxon&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon&lt;/A&gt;&quot;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;This is the Saxon namespace for Saxon 6.5 and earlier. The 
namespace for the current release (9.2) and every release since 7.0 
is&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=397285321-25112009&gt;xmlns:saxon=&quot;&lt;A title=http://icl.com/saxon href=&quot;http://saxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/A&gt;&quot;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Note 
however that in Saxon 9.2, extension functions such as saxon:line-number() are 
not available in the Home Edition - you need the Professional or Enterprise 
Editions.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Also 
note, you specified version=&quot;1.0&quot; in your stylesheet, but the stylesheet uses 
XSLT 2.0 features (xpath-default-namespace). This is legal, but probably best 
avoided.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=397285321-25112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=397285321-25112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gustavo de Sá Carvalho Honorato 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gustavohonorato@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 25 November 2009 
  20:41&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; [saxon] Difficulties using 
  saxon:line-number&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Hi all again,&lt;BR&gt;&lt;BR&gt;now I'm having some difficulties using 
  saxon:line-number function with JAXP API. The stylesheet below is returning 
  the following error in function saxon:line-number. Anyone has any ideas of 
  what is happening?&lt;BR&gt;&lt;BR&gt;EXCEPTION:&lt;BR&gt;&lt;BR&gt;Error on line 15 &lt;BR&gt;&amp;nbsp; Cannot 
  find a matching 0-argument function named {&lt;A href=&quot;http://icl.com/saxon}line-number()&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/A&gt;&lt;BR&gt;&amp;nbsp; 
  in built-in template rule&lt;BR&gt;&amp;nbsp; at xsl:apply-templates 
  (#11)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processing 
  /ncl/head[1]/regionBase[1]/region[1]&lt;BR&gt;&amp;nbsp; in built-in template 
  rule&lt;BR&gt;&amp;nbsp; in built-in template rule&lt;BR&gt;Caused by: 
  net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function 
  named {&lt;A href=&quot;http://icl.com/saxon}line-number()&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/A&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.expr.ErrorExpression.evaluateItem(ErrorExpression.java:58)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.expr.ErrorExpression.iterate(ErrorExpression.java:71)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:180)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.expr.FirstItemExpression.evaluateItem(FirstItemExpression.java:96)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.expr.CastExpression.evaluateItem(CastExpression.java:316)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.SimpleNodeConstructor.expandChildren(SimpleNodeConstructor.java:254)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:193)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.Instruction.process(Instruction.java:93)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.Controller.transformDocument(Controller.java:1851)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  net.sf.saxon.Controller.transform(Controller.java:1702)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  at 
  br.pucrio.inf.serg.nclinspector.rulesengine.core.xslt.XSLTInspector.visit(XSLTInspector.java:70)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  ... 5 more&lt;BR&gt;&lt;BR&gt;STYLESHEET:&lt;BR&gt;&lt;BR&gt;&amp;lt;?xml version=&quot;1.0&quot; 
  encoding=&quot;UTF-8&quot;?&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;xsl:stylesheet 
  version=&quot;1.0&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsl=&quot;&lt;A href=&quot;http://www.w3.org/1999/XSL/Transform&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/A&gt;&quot;&amp;nbsp; 
  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:saxon=&quot;&lt;A href=&quot;http://icl.com/saxon&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon&lt;/A&gt;&quot;&lt;BR&gt;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; extension-element-prefixes=&quot;saxon&quot;&lt;BR&gt;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; xpath-default-namespace=&quot;&lt;A href=&quot;http://www.ncl.org.br/NCL3.0/EDTVProfile&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ncl.org.br/NCL3.0/EDTVProfile&lt;/A&gt;&quot;&amp;gt;&lt;BR&gt;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:template 
  match=&quot;/ncl/head/regionBase&quot;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;result&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/result&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/xsl:template&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:template 
  match=&quot;region[@top][@bottom][@height]&quot;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;violation line=&quot;{saxon:line-number()}&quot; 
  column=&quot;{saxon:column-number()}&quot; msgKey=&quot;topBottomHeight&quot; 
  severity=&quot;warning&quot;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&quot;./@id&quot;/&amp;gt;&amp;lt;/arg&amp;gt; 
  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/violation&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/xsl:template&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:template 
  match=&quot;region[@left][@right][@width]&quot;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;violation line=&quot;1&quot; column=&quot;1&quot; msgKey=&quot;leftRightWidth&quot; 
  severity=&quot;warning&quot;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&quot;./@id&quot;/&amp;gt;&amp;lt;/arg&amp;gt; 
  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/violation&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;xsl:apply-templates /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;lt;/xsl:template&amp;gt;&lt;BR&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;BR&gt;&lt;BR&gt;Thanks in 
  advance,&lt;BR&gt;Gustavo Honorato&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520998&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26520998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519938</id>
	<title>Difficulties using saxon:line-number</title>
	<published>2009-11-25T12:40:30Z</published>
	<updated>2009-11-25T12:40:30Z</updated>
	<author>
		<name>Gustavo de Sá Carvalho Honorato</name>
	</author>
	<content type="html">Hi all again,&lt;br&gt;&lt;br&gt;now I&amp;#39;m having some difficulties using saxon:line-number function with JAXP API. The stylesheet below is returning the following error in function saxon:line-number. Anyone has any ideas of what is happening?&lt;br&gt;
&lt;br&gt;EXCEPTION:&lt;br&gt;&lt;br&gt;Error on line 15 &lt;br&gt;  Cannot find a matching 0-argument function named {&lt;a href=&quot;http://icl.com/saxon}line-number()&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/a&gt;&lt;br&gt;  in built-in template rule&lt;br&gt;  at xsl:apply-templates (#11)&lt;br&gt;
     processing /ncl/head[1]/regionBase[1]/region[1]&lt;br&gt;  in built-in template rule&lt;br&gt;  in built-in template rule&lt;br&gt;Caused by: net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function named {&lt;a href=&quot;http://icl.com/saxon}line-number()&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon}line-number()&lt;/a&gt;&lt;br&gt;
    at net.sf.saxon.expr.ErrorExpression.evaluateItem(ErrorExpression.java:58)&lt;br&gt;    at net.sf.saxon.expr.ErrorExpression.iterate(ErrorExpression.java:71)&lt;br&gt;    at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:180)&lt;br&gt;
    at net.sf.saxon.expr.FirstItemExpression.evaluateItem(FirstItemExpression.java:96)&lt;br&gt;    at net.sf.saxon.expr.CastExpression.evaluateItem(CastExpression.java:316)&lt;br&gt;    at net.sf.saxon.instruct.SimpleNodeConstructor.expandChildren(SimpleNodeConstructor.java:254)&lt;br&gt;
    at net.sf.saxon.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:193)&lt;br&gt;    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;br&gt;    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)&lt;br&gt;
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;br&gt;    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:619)&lt;br&gt;    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;br&gt;
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)&lt;br&gt;    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:301)&lt;br&gt;
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:229)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:346)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:377)&lt;br&gt;    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:334)&lt;br&gt;
    at net.sf.saxon.Controller.transformDocument(Controller.java:1851)&lt;br&gt;    at net.sf.saxon.Controller.transform(Controller.java:1702)&lt;br&gt;    at br.pucrio.inf.serg.nclinspector.rulesengine.core.xslt.XSLTInspector.visit(XSLTInspector.java:70)&lt;br&gt;
    ... 5 more&lt;br&gt;&lt;br&gt;STYLESHEET:&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;xsl:stylesheet version=&amp;quot;1.0&amp;quot;&lt;br&gt;    xmlns:xsl=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Transform&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/a&gt;&amp;quot;  &lt;br&gt;
    xmlns:saxon=&amp;quot;&lt;a href=&quot;http://icl.com/saxon&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://icl.com/saxon&lt;/a&gt;&amp;quot;&lt;br&gt;      extension-element-prefixes=&amp;quot;saxon&amp;quot;&lt;br&gt;      xpath-default-namespace=&amp;quot;&lt;a href=&quot;http://www.ncl.org.br/NCL3.0/EDTVProfile&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ncl.org.br/NCL3.0/EDTVProfile&lt;/a&gt;&amp;quot;&amp;gt;&lt;br&gt;
      &lt;br&gt;    &amp;lt;xsl:template match=&amp;quot;/ncl/head/regionBase&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;result&amp;gt;&lt;br&gt;            &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;        &amp;lt;/result&amp;gt;&lt;br&gt;    &amp;lt;/xsl:template&amp;gt;&lt;br&gt;    &amp;lt;xsl:template match=&amp;quot;region[@top][@bottom][@height]&amp;quot;&amp;gt;&lt;br&gt;
        &amp;lt;violation line=&amp;quot;{saxon:line-number()}&amp;quot; column=&amp;quot;{saxon:column-number()}&amp;quot; msgKey=&amp;quot;topBottomHeight&amp;quot; severity=&amp;quot;warning&amp;quot;&amp;gt;&lt;br&gt;            &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;./@id&amp;quot;/&amp;gt;&amp;lt;/arg&amp;gt; &lt;br&gt;
        &amp;lt;/violation&amp;gt;&lt;br&gt;        &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;    &amp;lt;/xsl:template&amp;gt;&lt;br&gt;    &amp;lt;xsl:template match=&amp;quot;region[@left][@right][@width]&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;violation line=&amp;quot;1&amp;quot; column=&amp;quot;1&amp;quot; msgKey=&amp;quot;leftRightWidth&amp;quot; severity=&amp;quot;warning&amp;quot;&amp;gt;&lt;br&gt;
            &amp;lt;arg&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;./@id&amp;quot;/&amp;gt;&amp;lt;/arg&amp;gt; &lt;br&gt;        &amp;lt;/violation&amp;gt;&lt;br&gt;        &amp;lt;xsl:apply-templates /&amp;gt;&lt;br&gt;    &amp;lt;/xsl:template&amp;gt;&lt;br&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;

Gustavo Honorato&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Difficulties-using-saxon%3Aline-number-tp26519938p26519938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519839</id>
	<title>Re: Error in output when xmlns attribute is present</title>
	<published>2009-11-25T12:31:52Z</published>
	<updated>2009-11-25T12:31:52Z</updated>
	<author>
		<name>Gustavo de Sá Carvalho Honorato</name>
	</author>
	<content type="html">It worked! Thank you all and sorry about my novice question.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 23, 2009 at 12:04 PM, David Johnston &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519839&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;polobo@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;XSLT does its matching in a namespace aware environment. 
With no xmlns attribute all elements fall into the default namespace whereas the 
xmlns puts all elements, unless overridden, into a specific namespace.  
Your &amp;quot;match&amp;quot; values are matching elements in the default namespace and thus will 
not match elements in a specific namespace.  &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;This is fundamental behaviour of XML+Namespaces; a &amp;quot;match&amp;quot; 
that will match an element in a specific (even the default) namespace will never 
match an element in a different namespace since those two elements are not the 
same conceptual element.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot; face=&quot;Arial&quot;&gt;Dave&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;br&gt;
&lt;div dir=&quot;ltr&quot; lang=&quot;en-us&quot; align=&quot;left&quot;&gt;
&lt;hr&gt;
&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;div class=&quot;im&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Gustavo de Sá Carvalho Honorato 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519839&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gustavohonorato@...&lt;/a&gt;] &lt;br&gt;&lt;/div&gt;&lt;b&gt;Sent:&lt;/b&gt; Monday, November 23, 2009 
7:11 AM&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519839&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; 
[saxon] Error in output when xmlns attribute is present&lt;br&gt;&lt;/div&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I&amp;#39;m having some problems using Saxon to 
make XSLT using JAXP Java API. When xmlns attribute is not present in root 
element of the input xml, the output is fine. When xmlns is present, Saxon is 
generating an empty output. Is there any issue regarding this? I&amp;#39;ve been 
searching all over the documentation and I could not find 
anything.&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Gustavo 
Honorato&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;br&gt;
saxon-help@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519839&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-output-when-xmlns-attribute-is-present-tp26477009p26519839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26512035</id>
	<title>Re: Using collations with fn:max</title>
	<published>2009-11-25T04:31:42Z</published>
	<updated>2009-11-25T04:31:42Z</updated>
	<author>
		<name>Abel Braaksma (online)</name>
	</author>
	<content type="html">Hi David,
&lt;br&gt;&lt;br&gt;Yes, this was the &amp;quot;obvious&amp;quot; thing I overlooked. I thought it was an 
&lt;br&gt;issue with Saxon and missed the &amp;quot;how to make a sequence&amp;quot; bit: the 
&lt;br&gt;parentheses. Thanks!
&lt;br&gt;&lt;br&gt;Abel
&lt;br&gt;&lt;br&gt;David Carlisle wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; the second argument of max is the collation name, so if you are giving
&lt;br&gt;&amp;gt; it a character like &amp;quot;X&amp;quot; then that's probably going to be unknown.
&lt;br&gt;&amp;gt; To get the max of X and the string value of somenode then that is
&lt;br&gt;&amp;gt; max((somenode,'X')) ie pass max a single argument consisting of the
&lt;br&gt;&amp;gt; sequence that you want to maxmize.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (seems more xsl-list than saxon-help)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt; The Numerical Algorithms Group Ltd is a company registered in England
&lt;br&gt;&amp;gt; and Wales with company number 1249803. The registered office is:
&lt;br&gt;&amp;gt; Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This e-mail has been scanned for all viruses by Star. The service is
&lt;br&gt;&amp;gt; powered by MessageLabs. 
&lt;br&gt;&amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26512035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26512035&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collation-URIs-tp16070238p26512035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26503809</id>
	<title>Re: Using collations with fn:max</title>
	<published>2009-11-24T13:42:44Z</published>
	<updated>2009-11-24T13:42:44Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;br&gt;Abel,
&lt;br&gt;&lt;br&gt;Nice to see you back.
&lt;br&gt;&lt;br&gt;You need max((normalize-space(), 'X')) - that is, a function call with one
&lt;br&gt;argument, which is a sequence of two items. If your call has two arguments
&lt;br&gt;(without the inner parens), the second one is treated as a collation name.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Abel Braaksma [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503809&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abel.online@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 24 November 2009 19:38
&lt;br&gt;&amp;gt; To: Mailing list for the SAXON XSLT and XQuery processor
&lt;br&gt;&amp;gt; Subject: [saxon] Using collations with fn:max
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi all, Mike,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; it's been a while, I know, so my knowledge may be a bit 
&lt;br&gt;&amp;gt; rusty, forgive me if I've missed the obvious.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using Saxon 9.1.0.6, I tried to use fn:max(somenode, 'X'), 
&lt;br&gt;&amp;gt; where 'X' is a character. Regardless collation specified, I 
&lt;br&gt;&amp;gt; received the error &amp;quot;Unknown collation&amp;quot; on both the 
&lt;br&gt;&amp;gt; default-collation attribute and the line with fn:max. It is 
&lt;br&gt;&amp;gt; my reading from fn:max that it can be used with non-numeric 
&lt;br&gt;&amp;gt; arguments in which case the same collation rules apply as 
&lt;br&gt;&amp;gt; with fn:compare and the likes. But perhaps I've misunderstood.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Whether possible of not, why do I receive an error about collation? 
&lt;br&gt;&amp;gt; Note: if fn:max is replaced by fn:compare it doesn't give any error.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:template match=&amp;quot;blabla&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default-collation=&amp;quot;&lt;a href=&quot;http://saxon.sf.net/collation?lang=en-US&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/collation?lang=en-US&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;max(normalize-space(), 'X')&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The idea of the code was simple (get 'X', unless it's a 
&lt;br&gt;&amp;gt; higher letter), and can be achieved differently, but I 
&lt;br&gt;&amp;gt; wondered about the error.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for any help,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Abel Braaksma
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 30-Day trial. Simplify your report design, 
&lt;br&gt;&amp;gt; integration and deployment - and focus on what you do best, 
&lt;br&gt;&amp;gt; core application coding. Discover what's new with Crystal 
&lt;br&gt;&amp;gt; Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503809&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503809&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collation-URIs-tp16070238p26503809.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26503558</id>
	<title>Re: Using collations with fn:max</title>
	<published>2009-11-24T12:56:09Z</published>
	<updated>2009-11-24T12:56:09Z</updated>
	<author>
		<name>David Carlisle</name>
	</author>
	<content type="html">&lt;br&gt;the second argument of max is the collation name, so if you are giving
&lt;br&gt;it a character like &amp;quot;X&amp;quot; then that's probably going to be unknown.
&lt;br&gt;To get the max of X and the string value of somenode then that is
&lt;br&gt;max((somenode,'X')) ie pass max a single argument consisting of the
&lt;br&gt;sequence that you want to maxmize.
&lt;br&gt;&lt;br&gt;(seems more xsl-list than saxon-help)
&lt;br&gt;&lt;br&gt;David
&lt;br&gt;&lt;br&gt;________________________________________________________________________
&lt;br&gt;The Numerical Algorithms Group Ltd is a company registered in England
&lt;br&gt;and Wales with company number 1249803. The registered office is:
&lt;br&gt;Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
&lt;br&gt;&lt;br&gt;This e-mail has been scanned for all viruses by Star. The service is
&lt;br&gt;powered by MessageLabs. 
&lt;br&gt;________________________________________________________________________
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collation-URIs-tp16070238p26503558.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502077</id>
	<title>Using collations with fn:max</title>
	<published>2009-11-24T11:38:02Z</published>
	<updated>2009-11-24T11:38:02Z</updated>
	<author>
		<name>Abel Braaksma (online)</name>
	</author>
	<content type="html">Hi all, Mike,
&lt;br&gt;&lt;br&gt;it's been a while, I know, so my knowledge may be a bit rusty, forgive 
&lt;br&gt;me if I've missed the obvious.
&lt;br&gt;&lt;br&gt;Using Saxon 9.1.0.6, I tried to use fn:max(somenode, 'X'), where 'X' is 
&lt;br&gt;a character. Regardless collation specified, I received the error 
&lt;br&gt;&amp;quot;Unknown collation&amp;quot; on both the default-collation attribute and the line 
&lt;br&gt;with fn:max. It is my reading from fn:max that it can be used with 
&lt;br&gt;non-numeric arguments in which case the same collation rules apply as 
&lt;br&gt;with fn:compare and the likes. But perhaps I've misunderstood.
&lt;br&gt;&lt;br&gt;Whether possible of not, why do I receive an error about collation? 
&lt;br&gt;Note: if fn:max is replaced by fn:compare it doesn't give any error.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:template match=&amp;quot;blabla&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default-collation=&amp;quot;&lt;a href=&quot;http://saxon.sf.net/collation?lang=en-US&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/collation?lang=en-US&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;max(normalize-space(), 'X')&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;The idea of the code was simple (get 'X', unless it's a higher letter), 
&lt;br&gt;and can be achieved differently, but I wondered about the error.
&lt;br&gt;&lt;br&gt;Thanks for any help,
&lt;br&gt;&lt;br&gt;Abel Braaksma
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502077&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collation-URIs-tp16070238p26502077.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480800</id>
	<title>Re: Receiver doesn't expect an initial PI?</title>
	<published>2009-11-23T07:58:43Z</published>
	<updated>2009-11-23T07:58:43Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;br&gt;It looks to me as if XdmDestination is assuming that it's capturing the
&lt;br&gt;result of a transformation, which will always be a tree rooted at a document
&lt;br&gt;node. When you use it to capture the results of a Query, it implicitly does
&lt;br&gt;the first stage of serialization, which is to wrap the query results in a
&lt;br&gt;document node.
&lt;br&gt;&lt;br&gt;The root node of a TinyTree has to be either a document node or an element
&lt;br&gt;node. For other kinds of parentless node, use an Orphan. Or if you want the
&lt;br&gt;processing instruction to be owned by a document node, call startDocument()
&lt;br&gt;and endDocument() within the open()/close(). Or, rather than using a Builder
&lt;br&gt;as the receiver, use a SequenceOutputter, which will add the processing
&lt;br&gt;instruction to the current tree if there's been a startDocument() or
&lt;br&gt;startElement(), but will retain it as an Orphan if it's parentless.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Norman Walsh [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480800&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ndw@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 23 November 2009 15:39
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480800&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [saxon] Receiver doesn't expect an initial PI?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've got some code for walking over a document, emitting 
&lt;br&gt;&amp;gt; selected nodes.
&lt;br&gt;&amp;gt; It starts like this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;destination = new XdmDestination();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;receiver = destination.getReceiver(saxonConfig);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;PipelineConfiguration pipe = 
&lt;br&gt;&amp;gt; controller.makePipelineConfiguration();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;pipe.setLocationProvider(xLocationProvider);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;receiver.setPipelineConfiguration(pipe);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;receiver.open();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;traverse(doc);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;receiver.close();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Where traverse does a recursive walk. If the first thing 
&lt;br&gt;&amp;gt; encountered in the document is a PI, and we want to pass that 
&lt;br&gt;&amp;gt; PI through, we eventually get down to adding it in 
&lt;br&gt;&amp;gt; TinyBuilder.processingInstruction:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; public void processingInstruction (String piname, 
&lt;br&gt;&amp;gt; CharSequence remainder, int locationId, int properties) 
&lt;br&gt;&amp;gt; throws XPathException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tree.commentBuffer==null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.commentBuffer = new 
&lt;br&gt;&amp;gt; FastStringBuffer(FastStringBuffer.MEDIUM);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int s = tree.commentBuffer.length();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.commentBuffer.append(remainder.toString());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int nameCode = namePool.allocate(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, piname);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeNr = tree.addNode(Type.PROCESSING_INSTRUCTION, 
&lt;br&gt;&amp;gt; currentDepth, s, remainder.length(),
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 			 nameCode);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int prev = prevAtDepth[currentDepth];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (prev &amp;gt; 0) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.next[prev] = nodeNr;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately, currentDepth is 0, so the following line 
&lt;br&gt;&amp;gt; throws an array out-of-bounds exception.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.next[nodeNr] = prevAtDepth[currentDepth - 1]; &amp;nbsp; 
&lt;br&gt;&amp;gt; // *O* owner pointer in last sibling
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prevAtDepth[currentDepth] = nodeNr;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siblingsAtDepth[currentDepth]++;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LocationProvider locator = pipe.getLocationProvider();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (locator instanceof SourceLocationProvider) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.setSystemId(nodeNr, locator.getSystemId(locationId));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (lineNumbering) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.setLineNumber(nodeNr, 
&lt;br&gt;&amp;gt; locator.getLineNumber(locationId), 
&lt;br&gt;&amp;gt; locator.getColumnNumber(locationId));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't think this is because I've failed to initialize 
&lt;br&gt;&amp;gt; something properly, but I've been wrong before.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Be seeing you,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; norm
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Norman Walsh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480800&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ndw@...&lt;/a&gt;&amp;gt; | Endurance is frequently a form of
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://nwalsh.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nwalsh.com/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | indecision.--Elizabeth Bibesco
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480800&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Receiver-doesn%27t-expect-an-initial-PI--tp26480416p26480800.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480416</id>
	<title>Receiver doesn't expect an initial PI?</title>
	<published>2009-11-23T07:39:15Z</published>
	<updated>2009-11-23T07:39:15Z</updated>
	<author>
		<name>Norman Walsh</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've got some code for walking over a document, emitting selected nodes.
&lt;br&gt;It starts like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;destination = new XdmDestination();
&lt;br&gt;&amp;nbsp; &amp;nbsp;receiver = destination.getReceiver(saxonConfig);
&lt;br&gt;&amp;nbsp; &amp;nbsp;PipelineConfiguration pipe = controller.makePipelineConfiguration();
&lt;br&gt;&amp;nbsp; &amp;nbsp;pipe.setLocationProvider(xLocationProvider);
&lt;br&gt;&amp;nbsp; &amp;nbsp;receiver.setPipelineConfiguration(pipe);
&lt;br&gt;&amp;nbsp; &amp;nbsp;receiver.open();
&lt;br&gt;&amp;nbsp; &amp;nbsp;traverse(doc);
&lt;br&gt;&amp;nbsp; &amp;nbsp;receiver.close();
&lt;br&gt;&lt;br&gt;Where traverse does a recursive walk. If the first thing encountered
&lt;br&gt;in the document is a PI, and we want to pass that PI through, we eventually
&lt;br&gt;get down to adding it in TinyBuilder.processingInstruction:
&lt;br&gt;&lt;br&gt;&amp;nbsp; public void processingInstruction (String piname, CharSequence remainder, int locationId, int properties) throws XPathException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tree.commentBuffer==null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.commentBuffer = new FastStringBuffer(FastStringBuffer.MEDIUM);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int s = tree.commentBuffer.length();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.commentBuffer.append(remainder.toString());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int nameCode = namePool.allocate(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, piname);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeNr = tree.addNode(Type.PROCESSING_INSTRUCTION, currentDepth, s, remainder.length(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 			 nameCode);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int prev = prevAtDepth[currentDepth];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (prev &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.next[prev] = nodeNr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Unfortunately, currentDepth is 0, so the following line throws an
&lt;br&gt;array out-of-bounds exception.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.next[nodeNr] = prevAtDepth[currentDepth - 1]; &amp;nbsp; // *O* owner pointer in last sibling
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prevAtDepth[currentDepth] = nodeNr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; siblingsAtDepth[currentDepth]++;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LocationProvider locator = pipe.getLocationProvider();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (locator instanceof SourceLocationProvider) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.setSystemId(nodeNr, locator.getSystemId(locationId));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (lineNumbering) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.setLineNumber(nodeNr, locator.getLineNumber(locationId), locator.getColumnNumber(locationId));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;I don't think this is because I've failed to initialize something properly,
&lt;br&gt;but I've been wrong before.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Be seeing you,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; norm
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Norman Walsh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ndw@...&lt;/a&gt;&amp;gt; | Endurance is frequently a form of
&lt;br&gt;&lt;a href=&quot;http://nwalsh.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nwalsh.com/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | indecision.--Elizabeth Bibesco
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480416&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (191 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26480416/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Receiver-doesn%27t-expect-an-initial-PI--tp26480416p26480416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478661</id>
	<title>Re: Error in output when xmlns attribute is present</title>
	<published>2009-11-23T06:04:50Z</published>
	<updated>2009-11-23T06:04:50Z</updated>
	<author>
		<name>David Johnston-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16939&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=468170014-23112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;XSLT does its matching in a namespace aware environment. 
With no xmlns attribute all elements fall into the default namespace whereas the 
xmlns puts all elements, unless overridden, into a specific namespace.&amp;nbsp; 
Your &quot;match&quot; values are matching elements in the default namespace and thus will 
not match elements in a specific namespace.&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=468170014-23112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=468170014-23112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;This is fundamental behaviour of XML+Namespaces; a &quot;match&quot; 
that will match an element in a specific (even the default) namespace will never 
match an element in a different namespace since those two elements are not the 
same conceptual element.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=468170014-23112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=468170014-23112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Dave&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Gustavo de Sá Carvalho Honorato 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478661&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gustavohonorato@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Monday, November 23, 2009 
7:11 AM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478661&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
[saxon] Error in output when xmlns attribute is present&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV class=gmail_quote&gt;Hi all,&lt;BR&gt;&lt;BR&gt;I'm having some problems using Saxon to 
make XSLT using JAXP Java API. When xmlns attribute is not present in root 
element of the input xml, the output is fine. When xmlns is present, Saxon is 
generating an empty output. Is there any issue regarding this? I've been 
searching all over the documentation and I could not find 
anything.&lt;BR&gt;&lt;BR&gt;Thanks in advance,&lt;BR&gt;&lt;FONT color=#888888&gt;Gustavo 
Honorato&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478661&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-output-when-xmlns-attribute-is-present-tp26477009p26478661.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477428</id>
	<title>Re: Error in output when xmlns attribute is present</title>
	<published>2009-11-23T04:43:26Z</published>
	<updated>2009-11-23T04:43:26Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;This is a common problem encountered by XSLT users caused by 
an insufficient understanding of how namespaces work. In XSLT 2.0 the simplest 
solution is usually to add the attribute xpath-default-namespace=&quot;....&quot; to the 
xsl:stylesheet element, where the value is the same as the default namespace 
declared in the source document. Without this, a match pattern such as match=&quot;p&quot; 
matches a p element in no namespace, whereas you want it to match an element in 
the namespace of the source document.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Googling for &quot;xslt default namespace&quot; will tell you more about 
this than you ever wanted to know.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;This problem is a pure XSLT language issue, it is nothing 
specifically to do with Saxon. In general if you have XSLT coding problems, then 
unless it's clearly something specific to Saxon, your first port of call should 
be the xsl-list at mulberrytech.com.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=106443612-23112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=106443612-23112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gustavo de Sá Carvalho Honorato 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gustavohonorato@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 23 November 2009 
  12:11&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477428&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
  [saxon] Error in output when xmlns attribute is present&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=gmail_quote&gt;Hi all,&lt;BR&gt;&lt;BR&gt;I'm having some problems using Saxon to 
  make XSLT using JAXP Java API. When xmlns attribute is not present in root 
  element of the input xml, the output is fine. When xmlns is present, Saxon is 
  generating an empty output. Is there any issue regarding this? I've been 
  searching all over the documentation and I could not find 
  anything.&lt;BR&gt;&lt;BR&gt;Thanks in advance,&lt;BR&gt;&lt;FONT color=#888888&gt;Gustavo 
  Honorato&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477428&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-output-when-xmlns-attribute-is-present-tp26477009p26477428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477541</id>
	<title>Re: Error in output when xmlns attribute is present</title>
	<published>2009-11-23T04:20:08Z</published>
	<updated>2009-11-23T04:20:08Z</updated>
	<author>
		<name>Martin Honnen-2</name>
	</author>
	<content type="html">Gustavo de Sá Carvalho Honorato wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I'm having some problems using Saxon to make XSLT using JAXP Java API. 
&lt;br&gt;&amp;gt; When xmlns attribute is not present in root element of the input xml, 
&lt;br&gt;&amp;gt; the output is fine. When xmlns is present, Saxon is generating an empty 
&lt;br&gt;&amp;gt; output. Is there any issue regarding this? I've been searching all over 
&lt;br&gt;&amp;gt; the documentation and I could not find anything.
&lt;br&gt;&lt;br&gt;That could simply be an issue with the stylesheet. If you have e.g.
&lt;br&gt;&lt;br&gt;&amp;lt;root xmlns=&amp;quot;&lt;a href=&quot;http://example.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;foo&amp;gt;bar&amp;lt;/foo&amp;gt;
&lt;br&gt;&amp;lt;/root&amp;gt;
&lt;br&gt;&lt;br&gt;then in an XSLT 2.0 stylesheet to match/select elements in that 
&lt;br&gt;namespace you have two choices, either bind a prefix to the namespace 
&lt;br&gt;URI and use that prefix to qualify element names e.g.
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:stylesheet
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:xsl=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Transform&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:ex=&amp;quot;&lt;a href=&quot;http://example.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; exclude-result-prefixes=&amp;quot;ex&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; version=&amp;quot;2.0&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;ex:root&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;ex:foo&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;lt;/xsl:stylesheet&amp;gt;
&lt;br&gt;&lt;br&gt;or use xpath-default-namespace e.g.
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:stylesheet
&lt;br&gt;&amp;nbsp; &amp;nbsp; xmlns:xsl=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Transform&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; xpath-default-namespace=&amp;quot;&lt;a href=&quot;http://example.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.com/&lt;/a&gt;&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; version=&amp;quot;2.0&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;root&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;foo&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;lt;/xsl:stylesheet&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Martin Honnen
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://msmvps.com/blogs/martin_honnen/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://msmvps.com/blogs/martin_honnen/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477541&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-output-when-xmlns-attribute-is-present-tp26477009p26477541.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477009</id>
	<title>Error in output when xmlns attribute is present</title>
	<published>2009-11-23T04:11:09Z</published>
	<updated>2009-11-23T04:11:09Z</updated>
	<author>
		<name>Gustavo de Sá Carvalho Honorato</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I&amp;#39;m having some problems using Saxon to make XSLT using JAXP Java API. When xmlns attribute is not present in root element of the input xml, the output is fine. When xmlns is present, Saxon is generating an empty output. Is there any issue regarding this? I&amp;#39;ve been searching all over the documentation and I could not find anything.&lt;br&gt;

&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Gustavo Honorato&lt;br&gt;
&lt;/font&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477009&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-output-when-xmlns-attribute-is-present-tp26477009p26477009.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464113</id>
	<title>Re: data-scheme and xs:anyURI</title>
	<published>2009-11-22T02:35:36Z</published>
	<updated>2009-11-22T02:35:36Z</updated>
	<author>
		<name>stf-4</name>
	</author>
	<content type="html">Hmmm, I'm afraid that this is an error of RFC 2397, since RFC 2396 under
&lt;br&gt;&amp;quot;2.4.1. Escaped Encoding&amp;quot; states that &amp;quot;%&amp;quot; must be followed by two
&lt;br&gt;hexadecimal digits, and &amp;quot;%fg&amp;quot; does not satisfy this rule.
&lt;br&gt;&lt;br&gt;Sorry for the noise,
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;&lt;br&gt;Stefan Krause schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Saxon alerts that &amp;quot;data:text/plain;charset=iso-8859-7,%be%fg%be&amp;quot; is an
&lt;br&gt;&amp;gt; invalid xs:anyURI. This URL is an example from the RFC 2397
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://www.ietf.org/rfc/rfc2397.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ietf.org/rfc/rfc2397.txt&lt;/a&gt;), so I assumed that this is also a
&lt;br&gt;&amp;gt; valid URI, but I know that xs:anyURI refers to RFC 2396
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://www.w3.org/TR/xmlschema-2/#anyURI&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/xmlschema-2/#anyURI&lt;/a&gt;). Could you please clarify
&lt;br&gt;&amp;gt; this issue?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Stefan
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464113&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464113&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/data-scheme-and-xs%3AanyURI-tp26461953p26464113.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463979</id>
	<title>Re: NodeInfo impl. / Navigator.DescendantEnumeration... (make use of existing classes)</title>
	<published>2009-11-22T02:08:42Z</published>
	<updated>2009-11-22T02:08:42Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;br&gt;When you're operating at this kind of level in Saxon, it's best to think of
&lt;br&gt;yourself as a developer rather than a user. Which means, you can use any
&lt;br&gt;public method you like, but don't assume that it's tested, or that it
&lt;br&gt;conforms to its interface documentation, without doing some tests of your
&lt;br&gt;own, or at least checking where it is currently used from. (The vast
&lt;br&gt;majority of code in Saxon is tested only to the extent that it is actually
&lt;br&gt;used while running XSLT, XQuery, and XSD tests.) You should also be prepared
&lt;br&gt;for changes between releases in this kind of method. I try to keep methods
&lt;br&gt;stable if they (or the containing class) has an &amp;quot;@since&amp;quot; tag in the Javadoc.
&lt;br&gt;&lt;br&gt;&amp;gt;p.s.: Where can I find the NodeInfo implementation for persistent DOM?
&lt;br&gt;&lt;br&gt;If a persistent DOM is delivering DOM interfaces, then I would think you
&lt;br&gt;could use the DOM NodeWrapper with little or no change.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Johannes Lichtenberger 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463979&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Johannes.Lichtenberger@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 22 November 2009 02:15
&lt;br&gt;&amp;gt; To: 'Mailing list for SAXON XSLT queries'
&lt;br&gt;&amp;gt; Subject: [saxon] NodeInfo impl. / 
&lt;br&gt;&amp;gt; Navigator.DescendantEnumeration... (make use of existing classes)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; can I safely use the Navigator.DescendantEnumeration and 
&lt;br&gt;&amp;gt; Navigator.AncestorEnumeration classes for my own implementation of
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; public AxisIterator iterateAxis(final byte axisNumber, final NodeTest
&lt;br&gt;&amp;gt; nodeTest)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; so that I basically have to implement AttributeEnumeration, 
&lt;br&gt;&amp;gt; NamespaceEnumeration which both extend 
&lt;br&gt;&amp;gt; Navigator.BaseEnumeration just like it's done in the dom4j 
&lt;br&gt;&amp;gt; implementation?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; greetings,
&lt;br&gt;&amp;gt; Johannes
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; p.s.: Where can I find the NodeInfo implementation for persistent DOM?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 30-Day trial. Simplify your report design, 
&lt;br&gt;&amp;gt; integration and deployment - and focus on what you do best, 
&lt;br&gt;&amp;gt; core application coding. Discover what's new with Crystal 
&lt;br&gt;&amp;gt; Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463979&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463979&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NodeInfo-impl.---Navigator.DescendantEnumeration...-%28make-use-of-existing-classes%29-tp26462322p26463979.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462322</id>
	<title>NodeInfo impl. / Navigator.DescendantEnumeration... (make use of existing classes)</title>
	<published>2009-11-21T18:15:14Z</published>
	<updated>2009-11-21T18:15:14Z</updated>
	<author>
		<name>Johannes Lichtenberger-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;can I safely use the Navigator.DescendantEnumeration and
&lt;br&gt;Navigator.AncestorEnumeration classes for my own implementation of
&lt;br&gt;&lt;br&gt;public AxisIterator iterateAxis(final byte axisNumber, final NodeTest
&lt;br&gt;nodeTest)
&lt;br&gt;&lt;br&gt;so that I basically have to implement AttributeEnumeration,
&lt;br&gt;NamespaceEnumeration which both extend Navigator.BaseEnumeration just
&lt;br&gt;like it's done in the dom4j implementation?
&lt;br&gt;&lt;br&gt;greetings,
&lt;br&gt;Johannes
&lt;br&gt;&lt;br&gt;p.s.: Where can I find the NodeInfo implementation for persistent DOM?
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462322&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NodeInfo-impl.---Navigator.DescendantEnumeration...-%28make-use-of-existing-classes%29-tp26462322p26462322.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461953</id>
	<title>data-scheme and xs:anyURI</title>
	<published>2009-11-21T16:53:48Z</published>
	<updated>2009-11-21T16:53:48Z</updated>
	<author>
		<name>stf-4</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Saxon alerts that &amp;quot;data:text/plain;charset=iso-8859-7,%be%fg%be&amp;quot; is an
&lt;br&gt;invalid xs:anyURI. This URL is an example from the RFC 2397
&lt;br&gt;(&lt;a href=&quot;http://www.ietf.org/rfc/rfc2397.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ietf.org/rfc/rfc2397.txt&lt;/a&gt;), so I assumed that this is also a
&lt;br&gt;valid URI, but I know that xs:anyURI refers to RFC 2396
&lt;br&gt;(&lt;a href=&quot;http://www.w3.org/TR/xmlschema-2/#anyURI&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/xmlschema-2/#anyURI&lt;/a&gt;). Could you please clarify
&lt;br&gt;this issue?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461953&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/data-scheme-and-xs%3AanyURI-tp26461953p26461953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450403</id>
	<title>Re: PHP with Saxon</title>
	<published>2009-11-20T13:14:36Z</published>
	<updated>2009-11-20T13:14:36Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">Please don't double-post to the list and the forum! 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm learning Saxon by building a simple RSS reader for NPR 
&lt;br&gt;&amp;gt; feeds. I've got the out-of-the-box RSS reader working but 
&lt;br&gt;&amp;gt; would like to make it more flexible by adding a GET variable 
&lt;br&gt;&amp;gt; to the URL that can pull NPR feeds by topic. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can PHP be used with Saxon? I'm getting this error: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Error on line 37 column 1 of rss.xq: 
&lt;br&gt;&amp;gt; &amp;nbsp;XPST0003: XQuery syntax error in #... $topic = &amp;quot;books&amp;quot;; } ?&amp;gt; let $#: 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Unexpected token &amp;quot;let&amp;quot; beyond end of query Static error(s) 
&lt;br&gt;&amp;gt; in query 
&lt;/div&gt;&lt;br&gt;Well, you've abviously got Saxon working in your environment because you're
&lt;br&gt;getting an error message out of it.
&lt;br&gt;&lt;br&gt;But I've no idea what you're trying to do with this &amp;lt;?php..?&amp;gt; processing
&lt;br&gt;instruction in the middle of your query. If you're expecting the PHP code to
&lt;br&gt;be expanded into XQuery code before the XQuery is executed, then I'm sure
&lt;br&gt;that's possible if you line all the ducks up correctly, but it isn't going
&lt;br&gt;to just happen by magic. And judging by the error message, it isn't
&lt;br&gt;happening.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can you help me troubleshoot this? I think the problem is 
&lt;br&gt;&amp;gt; with this line -- let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;) -- 
&lt;br&gt;&amp;gt; but I'm not too familiar with Java.
&lt;br&gt;&lt;br&gt;I don't see any Java here - only XQuery and PHP.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Saxon newbie 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; declare namespace saxon=&amp;quot;&lt;a href=&quot;http://saxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/a&gt;&amp;quot;;; declare 
&lt;br&gt;&amp;gt; option saxon:output &amp;quot;indent=yes&amp;quot;; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;?php
&lt;br&gt;&amp;gt; // Sets the get variable for topic
&lt;br&gt;&amp;gt; global $topic;
&lt;br&gt;&amp;gt; $topic = $_GET['topic'];
&lt;br&gt;&amp;gt; if ($topic == &amp;quot;&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;;
&lt;br&gt;&amp;gt; } else { 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$topic = $topic;
&lt;br&gt;&amp;gt; } 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // Returns the request using the get variable $request = 
&lt;br&gt;&amp;gt; 'rss.html?topic='.$topic; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // Sets default RSS feed to books feed
&lt;br&gt;&amp;gt; $rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1032&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1032&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // Convert topic to rss feed name with the $topic variable 
&lt;br&gt;&amp;gt; global $rss; if ($topic == &amp;quot;education&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1013&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1013&lt;/a&gt;&amp;quot;;;
&lt;br&gt;&amp;gt; } elseif($topic == &amp;quot;economy&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1017&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1017&lt;/a&gt;&amp;quot;;;
&lt;br&gt;&amp;gt; } elseif($topic == &amp;quot;games&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1052&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1052&lt;/a&gt;&amp;quot;;;
&lt;br&gt;&amp;gt; } elseif($topic == &amp;quot;movies&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1045&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1045&lt;/a&gt;&amp;quot;;;
&lt;br&gt;&amp;gt; } elseif($topic == &amp;quot;music&amp;quot;){ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1039&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1039&lt;/a&gt;&amp;quot;;;
&lt;br&gt;&amp;gt; } else{ 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; ?&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;)
&lt;br&gt;&amp;gt; &amp;nbsp;let $dateTime := $news/rss/channel/lastBuildDate &amp;nbsp;return 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;body&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; breaking news from {string($news/rss/channel/title)} at 
&lt;br&gt;&amp;gt; {string($dateTime)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { for $newsItem in $news/rss/channel/item[position() &amp;lt; 7] 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ul&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/title)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/pubDate)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/description)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hear the story..&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/li&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ul&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450403&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450403&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-with-Saxon-tp26450039p26450403.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450039</id>
	<title>PHP with Saxon</title>
	<published>2009-11-20T12:38:21Z</published>
	<updated>2009-11-20T12:38:21Z</updated>
	<author>
		<name>saxon_newbie</name>
	</author>
	<content type="html">I'm learning Saxon by building a simple RSS reader for NPR feeds. I've
&lt;br&gt;got the out-of-the-box RSS reader working but would like to make it
&lt;br&gt;more flexible by adding a GET variable to the URL that can pull NPR
&lt;br&gt;feeds by topic. 
&lt;br&gt;&lt;br&gt;Can PHP be used with Saxon? I'm getting this error: 
&lt;br&gt;&lt;br&gt;Error on line 37 column 1 of rss.xq: 
&lt;br&gt;&amp;nbsp;XPST0003: XQuery syntax error in #... $topic = &amp;quot;books&amp;quot;; } ?&amp;gt; let $#: 
&lt;br&gt;&amp;nbsp; &amp;nbsp;Unexpected token &amp;quot;let&amp;quot; beyond end of query 
&lt;br&gt;Static error(s) in query 
&lt;br&gt;&lt;br&gt;Can you help me troubleshoot this? I think the problem is with this 
&lt;br&gt;line -- let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;) -- but I'm not too 
&lt;br&gt;familiar with Java. 
&lt;br&gt;&lt;br&gt;Thanks, 
&lt;br&gt;Saxon newbie 
&lt;br&gt;&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
&lt;br&gt;&lt;br&gt;declare namespace saxon=&amp;quot;&lt;a href=&quot;http://saxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;declare option saxon:output &amp;quot;indent=yes&amp;quot;; 
&lt;br&gt;&lt;br&gt;&amp;lt;?php 
&lt;br&gt;// Sets the get variable for topic 
&lt;br&gt;global $topic; 
&lt;br&gt;$topic = $_GET['topic']; 
&lt;br&gt;if ($topic == &amp;quot;&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;; 
&lt;br&gt;} else { 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = $topic; 
&lt;br&gt;} 
&lt;br&gt;&lt;br&gt;// Returns the request using the get variable 
&lt;br&gt;$request = 'rss.html?topic='.$topic; 
&lt;br&gt;&lt;br&gt;// Sets default RSS feed to books feed 
&lt;br&gt;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1032&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1032&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;&lt;br&gt;// Convert topic to rss feed name with the $topic variable 
&lt;br&gt;global $rss; 
&lt;br&gt;if ($topic == &amp;quot;education&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1013&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1013&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;} elseif($topic == &amp;quot;economy&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1017&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1017&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;} elseif($topic == &amp;quot;games&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1052&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1052&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;} elseif($topic == &amp;quot;movies&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1045&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1045&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;} elseif($topic == &amp;quot;music&amp;quot;){ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1039&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1039&lt;/a&gt;&amp;quot;;; 
&lt;br&gt;} else{ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;; 
&lt;br&gt;} 
&lt;br&gt;?&amp;gt; 
&lt;br&gt;&lt;br&gt;let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;) 
&lt;br&gt;&amp;nbsp;let $dateTime := $news/rss/channel/lastBuildDate 
&lt;br&gt;&amp;nbsp;return 
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;lt;body&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; breaking news from {string($news/rss/channel/title)} at 
&lt;br&gt;{string($dateTime)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { for $newsItem in $news/rss/channel/item[position() &amp;lt; 7] 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ul&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/title)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/pubDate)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/description)}&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hear the story..&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/li&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ul&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt; 
&lt;br&gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450039&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-with-Saxon-tp26450039p26450039.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26445915</id>
	<title>PHP with Saxon</title>
	<published>2009-11-20T11:48:51Z</published>
	<updated>2009-11-20T11:48:51Z</updated>
	<author>
		<name>saxon_newbie</name>
	</author>
	<content type="html">I'm learning Saxon by building a simple RSS reader for NPR feeds. I've got the out-of-the-box RSS reader working but would like to make it more flexible by adding a GET variable to the URL that can pull NPR feeds by topic.
&lt;br&gt;&lt;br&gt;Can PHP be used with Saxon? I'm getting this error:
&lt;br&gt;&lt;br&gt;Error on line 37 column 1 of rss.xq:
&lt;br&gt;&amp;nbsp;XPST0003: XQuery syntax error in #... $topic = &amp;quot;books&amp;quot;; } ?&amp;gt; let $#:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Unexpected token &amp;quot;let&amp;quot; beyond end of query
&lt;br&gt;Static error(s) in query
&lt;br&gt;&lt;br&gt;Can you help me troubleshoot this? I think the problem is with this
&lt;br&gt;line -- let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;) -- but I'm not too
&lt;br&gt;familiar with Java.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Saxon newbie
&lt;br&gt;&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;declare namespace saxon=&amp;quot;&lt;a href=&quot;http://saxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/a&gt;&amp;quot;;
&lt;br&gt;declare option saxon:output &amp;quot;indent=yes&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;lt;?php
&lt;br&gt;// Sets the get variable for topic
&lt;br&gt;global $topic;
&lt;br&gt;$topic = $_GET['topic'];
&lt;br&gt;if ($topic == &amp;quot;&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;;
&lt;br&gt;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = $topic;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;// Returns the request using the get variable
&lt;br&gt;$request = 'rss.html?topic='.$topic;
&lt;br&gt;&lt;br&gt;// Sets default RSS feed to books feed
&lt;br&gt;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1032&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1032&lt;/a&gt;&amp;quot;;
&lt;br&gt;&lt;br&gt;// Convert topic to rss feed name with the $topic variable
&lt;br&gt;global $rss;
&lt;br&gt;if ($topic == &amp;quot;education&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1013&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1013&lt;/a&gt;&amp;quot;;
&lt;br&gt;} elseif($topic == &amp;quot;economy&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1017&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1017&lt;/a&gt;&amp;quot;;
&lt;br&gt;} elseif($topic == &amp;quot;games&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1052&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1052&lt;/a&gt;&amp;quot;;
&lt;br&gt;} elseif($topic == &amp;quot;movies&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1045&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1045&lt;/a&gt;&amp;quot;;
&lt;br&gt;} elseif($topic == &amp;quot;music&amp;quot;){
&lt;br&gt;&amp;nbsp; &amp;nbsp;$rss = &amp;quot;&lt;a href=&quot;http://www.npr.org/rss/rss.php?id=1039&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.npr.org/rss/rss.php?id=1039&lt;/a&gt;&amp;quot;;
&lt;br&gt;} else{
&lt;br&gt;&amp;nbsp; &amp;nbsp;$topic = &amp;quot;books&amp;quot;;
&lt;br&gt;}
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;let $news := doc(&amp;lt;?php echo $rss; ?&amp;gt;)
&lt;br&gt;&amp;nbsp;let $dateTime := $news/rss/channel/lastBuildDate
&lt;br&gt;&amp;nbsp;return
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; breaking news from {string($news/rss/channel/title)} at
&lt;br&gt;{string($dateTime)}&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { for $newsItem in $news/rss/channel/item[position() &amp;lt; 7]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ul&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/title)}&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/pubDate)}&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {string($newsItem/description)}&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hear the story..&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/li&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ul&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;
&lt;br&gt;&amp;lt;/html&amp;gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-with-Saxon-tp26445915p26445915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26443202</id>
	<title>Re: NPE in TransformerFactory.newInstance()</title>
	<published>2009-11-20T05:01:13Z</published>
	<updated>2009-11-20T05:01:13Z</updated>
	<author>
		<name>Nigel Whitaker</name>
	</author>
	<content type="html">Hello Michael,
&lt;br&gt;&lt;br&gt;Just seen this and Adam's messages - had similar issues in the past, so 
&lt;br&gt;if I may offer some experience:
&lt;br&gt;&lt;br&gt;Michael Kay wrote:
&lt;br&gt;...
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm not quite sure what to do about it: perhaps if 
&lt;br&gt;&amp;gt; class.getClassLoader() returns null, I should use 
&lt;br&gt;&amp;gt; Thread.currentThread().getContextClassLoader(). But that can be null 
&lt;br&gt;&amp;gt; too. Or perhaps I should do new ClassLoader(), or perhaps 
&lt;br&gt;&amp;gt; ClassLoader.getSystemClassLoader()? &amp;nbsp;I'll have to do some experiments.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;The technique we now use is to try the context and then the current 
&lt;br&gt;classloaders, so for a resource:
&lt;br&gt;&lt;br&gt;&amp;nbsp;URL u= null;
&lt;br&gt;&amp;nbsp;// ClassLoader.getResource() doesn't like leading slash, so lets try 
&lt;br&gt;without
&lt;br&gt;&amp;nbsp;String relativeResource= resource.startsWith(&amp;quot;/&amp;quot;) ? 
&lt;br&gt;resource.substring(1) : resource;
&lt;br&gt;&amp;nbsp;// first lets try the context classloader
&lt;br&gt;&amp;nbsp;u= 
&lt;br&gt;Thread.currentThread().getContextClassLoader().getResource(relativeResource);
&lt;br&gt;&amp;nbsp;if (u == null) { // Trying current classloader
&lt;br&gt;&amp;nbsp; &amp;nbsp; u= this.getClass().getResource(resource);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;if (u == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; throw new FilterConfigurationException(&amp;quot;Could not find the Resource 
&lt;br&gt;'&amp;quot; + resource +&amp;quot;'&amp;quot;, null, resource);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;The above code handles some fiddly differences of leading slashes 
&lt;br&gt;between the two kinds of class-loader and jar resources.
&lt;br&gt;&lt;br&gt;We use a similar technique for classes. &amp;nbsp;For example, I finally admitted 
&lt;br&gt;defeat with the JAXP factories and so recently introduced a bypass 
&lt;br&gt;mechanism for directly loading Saxon like this:
&lt;br&gt;&lt;br&gt;if (bypassJAXPFactories) {
&lt;br&gt;&amp;nbsp; Class saxonTFClass= null;
&lt;br&gt;&amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;saxonTFClass= Class.forName(SAXON_FACTORY, true, 
&lt;br&gt;Thread.currentThread().getContextClassLoader());
&lt;br&gt;&amp;nbsp; } catch (Throwable t) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; saxonTFClass= Class.forName(SAXON_FACTORY, true, 
&lt;br&gt;this.getClass().getClassLoader());
&lt;br&gt;&amp;nbsp; &amp;nbsp;} catch (Throwable t2) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; throw new TransformerInstantiationException(&amp;quot;Cannot locate the 
&lt;br&gt;Saxon factory class via the JAXP bypass mechanism&amp;quot;, t2);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;if (saxonTFClass == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;// should never get here, but for the sake of defensive coding...
&lt;br&gt;&amp;nbsp; &amp;nbsp;throw new TransformerInstantiationException(&amp;quot;Cannot locate the Saxon 
&lt;br&gt;factory class via the JAXP bypass mechanism&amp;quot;);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;try {
&lt;br&gt;&amp;nbsp; &amp;nbsp;tf= (TransformerFactory) saxonTFClass.newInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp;....
&lt;br&gt;&lt;br&gt;Our javadoc for this code adds some more detail:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.deltaxml.com/core/5.3.7/docs/api/com/deltaxml/core/PipelinedComparator.html#PipelinedComparator(boolean&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.deltaxml.com/core/5.3.7/docs/api/com/deltaxml/core/PipelinedComparator.html#PipelinedComparator(boolean&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Until we used this double lookup technique we had issues with several 
&lt;br&gt;application servers (tomcat, websphere, orion). &amp;nbsp; As far as I know this 
&lt;br&gt;technique works with most app-servers and IDEs and their various 
&lt;br&gt;configuration options (eg: 'delegation orders').
&lt;br&gt;&lt;br&gt;A useful discussion (not sure I agree 100% with the conclusions) is: 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.javaworld.com/javaworld/javaqa/2003-06/01-qa-0606-load.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.javaworld.com/javaworld/javaqa/2003-06/01-qa-0606-load.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;It warns against using getSystemClassLoader().
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Nigel
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Nigel Whitaker, &amp;nbsp;DeltaXML: &amp;quot;Change control for XML, in XML&amp;quot;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443202&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nigel.whitaker@...&lt;/a&gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.deltaxml.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.deltaxml.com&lt;/a&gt;&lt;br&gt;Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443202&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NPE-in-TransformerFactory.newInstance%28%29-tp26377910p26443202.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26440275</id>
	<title>Re: issue while compile and execute an XQueryexpressionwithSaxon.</title>
	<published>2009-11-20T01:07:13Z</published>
	<updated>2009-11-20T01:07:13Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=711350409-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;I tend to use John Cowan's TagSoup in preference to JTidy. 
TagSoup has the option to run as a SAX parser, so you can use it to build a 
Saxon tree directly. However, you may have reasons to prefer JTidy - they don't 
do quite the same job, and I don't know what your requirements 
are.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=711350409-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=711350409-20112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 20 November 2009 
  06:43&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [saxon] issue while compile and execute an 
  XQueryexpressionwithSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Thanks for the namespace clue. I am able to resolve the problem. 
  now i am getting all the input element.&lt;BR&gt;which is really good. 
  &lt;BR&gt;&lt;BR&gt;actually i am using Jtidy to convert response into DOM object and 
  using SAXON with Xquery to get the desired result.&lt;BR&gt;&lt;BR&gt;Do you think i can 
  remove Jtidy layer and use SAXON for the same.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Many Thanks 
  :),&lt;BR&gt;Gaurav &lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=gmail_quote&gt;On Fri, Nov 20, 2009 at 5:31 PM, Michael Kay &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; wrote:&lt;BR&gt;
  &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;
    &lt;DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Sorry if 
    I didn't make myself clear. I don't think the problem has anything to do 
    with your Java source code. It has to do with your data. I suspect that in 
    the data supplied as input to the query, the input elements are in a 
    namespace, whereas you are searching for input elements in no 
    namespace.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Try 
    replacing your query with the query &quot;.&quot; (which copies the input document to 
    the result) to see what the input document actually looks 
    like.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Incidentally, you should note that using DOM with Saxon is not 
    very efficient: it runs 5-10 times slower than using Saxon's native tree 
    format.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV class=im&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;
    &lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
    &lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
    &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(0,0,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
      &lt;DIV dir=ltr lang=en-us align=left&gt;
      &lt;HR&gt;
      &lt;FONT size=2 face=Tahoma&gt;
      &lt;DIV class=im&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;/DIV&gt;&lt;B&gt;Sent:&lt;/B&gt; 20 
      November 2009 06:05&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Mailing list for the SAXON XSLT and 
      XQuery processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [saxon] issue while compile and 
      execute an XQuery expressionwithSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
      &lt;DIV&gt;
      &lt;DIV&gt;&lt;/DIV&gt;
      &lt;DIV class=h5&gt;
      &lt;DIV&gt;&lt;/DIV&gt;Thanks &lt;SPAN&gt;&lt;FONT size=2&gt;Michael,&lt;BR&gt;&lt;BR&gt;I have attached the 
      one sample source code for your reference. &lt;BR&gt;it would be great if you 
      can give me some&amp;nbsp; direction or problem solution.&lt;BR&gt;&lt;BR&gt;i am trying 
      to get all the input element from response.&lt;BR&gt;&lt;BR&gt;Note: I am using 
      Httpclient and JTidy API 
      &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Regards,&lt;BR&gt;Gaurav&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR&gt;import 
      java.io.IOException;&lt;BR&gt;import java.io.InputStream;&lt;BR&gt;import 
      java.io.OutputStream;&lt;BR&gt;import java.util.List;&lt;BR&gt;import 
      java.util.regex.Matcher;&lt;BR&gt;import java.util.regex.Pattern;&lt;BR&gt;&lt;BR&gt;import 
      net.sf.saxon.Configuration;&lt;BR&gt;import 
      net.sf.saxon.dom.DocumentWrapper;&lt;BR&gt;import 
      net.sf.saxon.query.DynamicQueryContext;&lt;BR&gt;import 
      net.sf.saxon.query.StaticQueryContext;&lt;BR&gt;import 
      net.sf.saxon.query.XQueryExpression;&lt;BR&gt;import 
      net.sf.saxon.trans.XPathException;&lt;BR&gt;&lt;BR&gt;import 
      org.apache.commons.httpclient.HttpException;&lt;BR&gt;import 
      org.apache.http.HttpEntity;&lt;BR&gt;import 
      org.apache.http.HttpResponse;&lt;BR&gt;import 
      org.apache.http.client.ClientProtocolException;&lt;BR&gt;import 
      org.apache.http.client.methods.HttpGet;&lt;BR&gt;import 
      org.apache.http.impl.client.DefaultHttpClient;&lt;BR&gt;import 
      org.apache.http.util.EntityUtils;&lt;BR&gt;import 
      org.w3c.dom.Document;&lt;BR&gt;import org.w3c.tidy.Tidy;&lt;BR&gt;&lt;BR&gt;public class 
      HttpclientTutorial1 {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static String uri 
      = &quot;&lt;A href=&quot;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&lt;/A&gt;&quot;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      private static String url=&quot;&lt;A href=&quot;https://superseeker.super.ato.gov.au&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au&lt;/A&gt;&quot;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      private String restURI=null;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static String 
      query = &quot;for $x in&amp;nbsp; //input \n&quot; + &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &quot;return $x \n&quot;;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public 
      static void main(String[] args) {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpclientTutorial1 hct = new 
      HttpclientTutorial1();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try 
      {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      hct.getScrapedData();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch 
      (ClientProtocolException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch 
      block&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch 
      (IOException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch 
      block&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void 
      getScrapedData() throws ClientProtocolException, IOException 
      {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Create an instance of 
      HttpClient.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultHttpClient 
      httpclient = new DefaultHttpClient();&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpGet httpget = new 
      HttpGet(uri);&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try 
      {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      HttpResponse responseBody = 
      httpclient.execute(httpget);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; Pattern p = 
      Pattern.compile(&quot;window.location.*pid=71&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Matcher m = 
      p.matcher(EntityUtils.toString(responseBody.getEntity()));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean found = 
      false;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (m.find()) 
      {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;I found the text &quot;+m.group()+ &quot; 
      starting at &quot; +m.start() + &quot;index and ending at index &quot;+ 
      m.end());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      restURI=org.apache.commons.lang.StringUtils.removeStart(m.group(), 
      &quot;window.location = '&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      System.out.println(restURI);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; found = 
      true;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      if(!found){&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      System.out.println(&quot;No match found&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpGet httpget1=new 
      HttpGet(url+restURI);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; responseBody = 
      httpclient.execute(httpget1);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; List 
      result=getElementFromResponse(responseBody,query);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (HttpException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.err.println(&quot;Fatal protocol 
      violation: &quot; + e.getMessage());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (IOException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.err.println(&quot;Fatal transport 
      error: &quot; + e.getMessage());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (XPathException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } finally 
      {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Release 
      the connection.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      httpclient.getConnectionManager().shutdown();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private List 
      getElementFromResponse(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpResponse responseBody,String query) throws 
      IllegalStateException, IOException, XPathException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpEntity entity = 
      responseBody.getEntity();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List 
      result=null;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (entity != null) 
      {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream 
      responseBodyStream = entity.getContent();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Convert the response into 
      document object&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; Document tidyDOM = 
      ConvertResponseIntoDomObject(responseBodyStream);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get the element using Xquery and 
      extract the input&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; // attributes.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; result = 
      retriveDomElementFromDocumentObject(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; query, url+restURI, tidyDOM);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot;size:&quot; 
      +result.size());&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 
      result;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private List 
      retriveDomElementFromDocumentObject(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String query, String url, Document 
      doc) throws XPathException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      Configuration c = new Configuration();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; StaticQueryContext qp = 
      c.newStaticQueryContext();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      XQueryExpression xe = qp.compileQuery(query);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; DynamicQueryContext dqc = new 
      DynamicQueryContext(c);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      dqc.setContextItem(new DocumentWrapper(doc, url, 
      c));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List domElement = 
      xe.evaluate(dqc);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 
      domElement;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private 
      Document ConvertResponseIntoDomObject(InputStream responseBody) 
      {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Tidy tidy = new 
      Tidy();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      //tidy.setXHTML(true);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      tidy.setQuiet(false);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      tidy.setShowWarnings(true);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      OutputStream o=System.out;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      Document dom = tidy.parseDOM(responseBody, o);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 
      dom;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
      &lt;DIV class=gmail_quote&gt;On Fri, Nov 20, 2009 at 7:32 AM, Michael Kay &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; wrote:&lt;BR&gt;
      &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;
        &lt;DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;You 
        haven't shown your source document, so I can't tell why this query 
        retrieves nothing. My guess would be that the &amp;lt;input&amp;gt; elements are 
        in a namespace, whereas your query is only selecting &amp;lt;input&amp;gt; 
        elements that are in no namespace.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Incidentally, the query &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; for $x in //input return $x&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;can 
        be abbreviated to&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; //input&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;
        &lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
        &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(0,0,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
          &lt;DIV dir=ltr lang=en-us align=left&gt;
          &lt;HR&gt;
          &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 19 November 
          2009 10:10 
          &lt;DIV&gt;&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;B&gt;Subject:&lt;/B&gt; 
          [saxon] issue while compile and execute an XQuery expression 
          withSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;
          &lt;DIV&gt;&lt;/DIV&gt;
          &lt;DIV&gt;
          &lt;DIV&gt;&lt;/DIV&gt;&lt;BR clear=all&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Hi 
          All,&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;I am 
          SAXON user. And trying to&lt;/SPAN&gt;&lt;A name=125104b77e539d88_1250e2826ccabe72_1250be4ad73432b9_code7 target=&quot;_top&quot;&gt;&lt;B&gt; 
          compile and execute an XQuery expression with 
Saxon&lt;/B&gt;&lt;/A&gt;&lt;B&gt;.&lt;/B&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;B&gt;objective : execute the Xquey on document object 
          and get the Domelement list. &lt;BR&gt;&lt;/B&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;B&gt;&lt;BR&gt;&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size=4&gt;I am using below code for that.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;Configuration c = new Configuration();&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;List result = xe.evaluate(dqc);&lt;/FONT&gt;&lt;/PRE&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Here 
          query=&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot; lang=EN-US&gt; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;for 
          $x in&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;//input \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt; + 
          &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;return 
          $x \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;; 
          &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;And 
          dom is a object of org.w3c.dom.Document.&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Document 
          object is having input element. But when I evaluate xquery expression, 
          list size is coming zero. Also I am not getting any 
          exception.&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;I 
          tried same code with some other URL where I am able to see the result. 
          So what is the problem with other one.&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Can 
          anyone please answer following question?&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
          &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
          &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Why 
          the list size is coming zero if Document object is having input 
          element.&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
          &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;How 
          can I find the baseURI (variable name - url). &lt;/SPAN&gt;&lt;/P&gt;
          &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
          &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Is 
          there any way to trace the log/warning/errors.&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
          &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Gaurav 
          &lt;/SPAN&gt;&lt;/P&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Let 
        Crystal Reports handle the reporting - Free Crystal Reports 2008 
        30-Day&lt;BR&gt;trial. Simplify your report design, integration and deployment 
        - and focus on&lt;BR&gt;what you do best, core application coding. Discover 
        what's new with&lt;BR&gt;Crystal Reports now. &amp;nbsp;&lt;A href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;saxon-help 
        mailing list archived at &lt;A href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;BR&gt;saxon-help@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/A&gt; 
        &lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Let 
    Crystal Reports handle the reporting - Free Crystal Reports 2008 
    30-Day&lt;BR&gt;trial. Simplify your report design, integration and deployment - 
    and focus on&lt;BR&gt;what you do best, core application coding. Discover what's 
    new with&lt;BR&gt;Crystal Reports now. &amp;nbsp;&lt;A href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;saxon-help 
    mailing list archived at &lt;A href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;BR&gt;saxon-help@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/A&gt; 
    &lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Regards,&lt;BR&gt;Gaurav 
  Sharma&lt;BR&gt;HCL Tech , Gurgaon&lt;BR&gt;Mobile 
+919818305458&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440275&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26440275.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26439039</id>
	<title>Re: issue while compile and execute an XQuery expressionwithSaxon.</title>
	<published>2009-11-19T22:42:31Z</published>
	<updated>2009-11-19T22:42:31Z</updated>
	<author>
		<name>Gaurav sharma-12</name>
	</author>
	<content type="html">Thanks for the namespace clue. I am able to resolve the problem. now i am getting all the input element.&lt;br&gt;which is really good. &lt;br&gt;&lt;br&gt;actually i am using Jtidy to convert response into DOM object and using SAXON with Xquery to get the desired result.&lt;br&gt;
&lt;br&gt;Do you think i can remove Jtidy layer and use SAXON for the same.&lt;br&gt;&lt;br&gt;&lt;br&gt;Many Thanks :),&lt;br&gt;Gaurav &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 5:31 PM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Sorry if I didn&amp;#39;t make myself clear. I don&amp;#39;t think the problem 
has anything to do with your Java source code. It has to do with your data. I 
suspect that in the data supplied as input to the query, the input elements are 
in a namespace, whereas you are searching for input elements in no 
namespace.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Try replacing your query with the query &amp;quot;.&amp;quot; (which copies the 
input document to the result) to see what the input document actually looks 
like.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Incidentally, you should note that using DOM with Saxon is not 
very efficient: it runs 5-10 times slower than using Saxon&amp;#39;s native tree 
format.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;Regards,&lt;br&gt;&lt;br&gt;Michael Kay&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt; 
&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;blockquote style=&quot;border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;&quot;&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot; lang=&quot;en-us&quot;&gt;
  &lt;hr&gt;
  &lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;div class=&quot;im&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Gaurav sharma 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;br&gt;&lt;/div&gt;&lt;b&gt;Sent:&lt;/b&gt; 20 November 2009 
  06:05&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; Re: [saxon] issue while compile and execute an 
  XQuery expressionwithSaxon.&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
  &lt;div&gt;&lt;/div&gt;Thanks &lt;span&gt;&lt;font size=&quot;2&quot;&gt;Michael,&lt;br&gt;&lt;br&gt;I have attached the one 
  sample source code for your reference. &lt;br&gt;it would be great if you can give 
  me some  direction or problem solution.&lt;br&gt;&lt;br&gt;i am trying to get all the 
  input element from response.&lt;br&gt;&lt;br&gt;Note: I am using Httpclient and JTidy API 
  &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Gaurav&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;br&gt;import 
  java.io.IOException;&lt;br&gt;import java.io.InputStream;&lt;br&gt;import 
  java.io.OutputStream;&lt;br&gt;import java.util.List;&lt;br&gt;import 
  java.util.regex.Matcher;&lt;br&gt;import java.util.regex.Pattern;&lt;br&gt;&lt;br&gt;import 
  net.sf.saxon.Configuration;&lt;br&gt;import 
  net.sf.saxon.dom.DocumentWrapper;&lt;br&gt;import 
  net.sf.saxon.query.DynamicQueryContext;&lt;br&gt;import 
  net.sf.saxon.query.StaticQueryContext;&lt;br&gt;import 
  net.sf.saxon.query.XQueryExpression;&lt;br&gt;import 
  net.sf.saxon.trans.XPathException;&lt;br&gt;&lt;br&gt;import 
  org.apache.commons.httpclient.HttpException;&lt;br&gt;import 
  org.apache.http.HttpEntity;&lt;br&gt;import org.apache.http.HttpResponse;&lt;br&gt;import 
  org.apache.http.client.ClientProtocolException;&lt;br&gt;import 
  org.apache.http.client.methods.HttpGet;&lt;br&gt;import 
  org.apache.http.impl.client.DefaultHttpClient;&lt;br&gt;import 
  org.apache.http.util.EntityUtils;&lt;br&gt;import org.w3c.dom.Document;&lt;br&gt;import 
  org.w3c.tidy.Tidy;&lt;br&gt;&lt;br&gt;public class HttpclientTutorial1 
  {&lt;br&gt;&lt;br&gt;    private static String uri = &amp;quot;&lt;a href=&quot;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&lt;/a&gt;&amp;quot;;&lt;br&gt;
    
  private static String url=&amp;quot;&lt;a href=&quot;https://superseeker.super.ato.gov.au&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au&lt;/a&gt;&amp;quot;;&lt;br&gt;    
  private String restURI=null;&lt;br&gt;    private static String query 
  = &amp;quot;for $x in  //input \n&amp;quot; + &lt;br&gt;        
                  
            &amp;quot;return $x 
  \n&amp;quot;;&lt;br&gt;&lt;br&gt;    public static void main(String[] args) 
  {&lt;br&gt;&lt;br&gt;        HttpclientTutorial1 hct = new 
  HttpclientTutorial1();&lt;br&gt;        try 
  {&lt;br&gt;            
  hct.getScrapedData();&lt;br&gt;        } catch 
  (ClientProtocolException e) {&lt;br&gt;        
      // TODO Auto-generated catch block&lt;br&gt;    
          
  e.printStackTrace();&lt;br&gt;        } catch 
  (IOException e) {&lt;br&gt;            
  // TODO Auto-generated catch block&lt;br&gt;        
      e.printStackTrace();&lt;br&gt;    
      }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    
  private void getScrapedData() throws ClientProtocolException, IOException 
  {&lt;br&gt;&lt;br&gt;        // Create an instance of 
  HttpClient.&lt;br&gt;        DefaultHttpClient 
  httpclient = new DefaultHttpClient();&lt;br&gt;&lt;br&gt;    
      HttpGet httpget = new 
  HttpGet(uri);&lt;br&gt;&lt;br&gt;        try 
  {&lt;br&gt;&lt;br&gt;            HttpResponse 
  responseBody = httpclient.execute(httpget);&lt;br&gt;    
          Pattern p = 
  Pattern.compile(&amp;quot;window.location.*pid=71&amp;quot;);&lt;br&gt;    
          Matcher m = 
  p.matcher(EntityUtils.toString(responseBody.getEntity()));&lt;br&gt;    
          boolean found = 
  false;&lt;br&gt;&lt;br&gt;            
  while (m.find()) {&lt;br&gt;    
              
  System.out.println(&amp;quot;I found the text &amp;quot;+m.group()+ &amp;quot; starting at &amp;quot; +m.start() + 
  &amp;quot;index and ending at index &amp;quot;+ m.end());&lt;br&gt;    
              
  restURI=org.apache.commons.lang.StringUtils.removeStart(m.group(), 
  &amp;quot;window.location = &amp;#39;&amp;quot;);&lt;br&gt;    
              
  System.out.println(restURI);&lt;br&gt;        
              found = 
  true;&lt;br&gt;            
  }&lt;br&gt;            
  if(!found){&lt;br&gt;            
      System.out.println(&amp;quot;No match found&amp;quot;);&lt;br&gt;    
          }&lt;br&gt;    
          HttpGet httpget1=new 
  HttpGet(url+restURI);&lt;br&gt;    
          responseBody = 
  httpclient.execute(httpget1);&lt;br&gt;        
      List 
  result=getElementFromResponse(responseBody,query);&lt;br&gt;    
          &lt;br&gt;    
      } catch (HttpException e) {&lt;br&gt;    
          System.err.println(&amp;quot;Fatal protocol 
  violation: &amp;quot; + e.getMessage());&lt;br&gt;        
      e.printStackTrace();&lt;br&gt;    
      } catch (IOException e) {&lt;br&gt;    
          System.err.println(&amp;quot;Fatal transport 
  error: &amp;quot; + e.getMessage());&lt;br&gt;        
      e.printStackTrace();&lt;br&gt;    
      } catch (XPathException e) {&lt;br&gt;    
          
  e.printStackTrace();&lt;br&gt;        } finally 
  {&lt;br&gt;            // Release the 
  connection.&lt;br&gt;            
  httpclient.getConnectionManager().shutdown();&lt;br&gt;    
      }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;    
  private List getElementFromResponse(&lt;br&gt;        
      HttpResponse responseBody,String query) throws 
  IllegalStateException, IOException, XPathException {&lt;br&gt;    
      HttpEntity entity = 
  responseBody.getEntity();&lt;br&gt;        List 
  result=null;&lt;br&gt;        if (entity != null) 
  {&lt;br&gt;            InputStream 
  responseBodyStream = entity.getContent();&lt;br&gt;    
          // Convert the response into document 
  object&lt;br&gt;            Document 
  tidyDOM = 
  ConvertResponseIntoDomObject(responseBodyStream);&lt;br&gt;    
          // get the element using Xquery and 
  extract the input&lt;br&gt;            
  // attributes.&lt;br&gt;            
  result = retriveDomElementFromDocumentObject(&lt;br&gt;    
                  
  query, url+restURI, tidyDOM);&lt;br&gt;        
      System.out.print(&amp;quot;size:&amp;quot; 
  +result.size());&lt;br&gt;&lt;br&gt;        
  }&lt;br&gt;&lt;br&gt;        return 
  result;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    
  &lt;br&gt;    private List 
  retriveDomElementFromDocumentObject(&lt;br&gt;        
      String query, String url, Document doc) throws 
  XPathException {&lt;br&gt;        Configuration c = 
  new Configuration();&lt;br&gt;        
  StaticQueryContext qp = c.newStaticQueryContext();&lt;br&gt;    
      XQueryExpression xe = 
  qp.compileQuery(query);&lt;br&gt;        
  DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;br&gt;    
      dqc.setContextItem(new DocumentWrapper(doc, url, 
  c));&lt;br&gt;        List domElement = 
  xe.evaluate(dqc);&lt;br&gt;        return 
  domElement;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    private Document 
  ConvertResponseIntoDomObject(InputStream responseBody) 
  {&lt;br&gt;&lt;br&gt;        Tidy tidy = new 
  Tidy();&lt;br&gt;        
  //tidy.setXHTML(true);&lt;br&gt;        
  tidy.setQuiet(false);&lt;br&gt;        
  tidy.setShowWarnings(true);&lt;br&gt;        
  OutputStream o=System.out;&lt;br&gt;        Document 
  dom = tidy.parseDOM(responseBody, o);&lt;br&gt;        
  &lt;br&gt;        &lt;br&gt;    
      return dom;&lt;br&gt;    
}&lt;br&gt;&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;
  &lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 7:32 AM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
  &lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
    &lt;div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;You 
    haven&amp;#39;t shown your source document, so I can&amp;#39;t tell why this query retrieves 
    nothing. My guess would be that the &amp;lt;input&amp;gt; elements are in a 
    namespace, whereas your query is only selecting &amp;lt;input&amp;gt; elements that 
    are in no namespace.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Incidentally, the query &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;   for $x in //input return $x&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;can be 
    abbreviated to&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;   //input&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;Regards,&lt;br&gt;&lt;br&gt;Michael Kay&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt; &lt;/font&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;blockquote style=&quot;border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;&quot;&gt;
      &lt;div dir=&quot;ltr&quot; align=&quot;left&quot; lang=&quot;en-us&quot;&gt;
      &lt;hr&gt;
      &lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Gaurav sharma [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 19 November 2009 
      10:10
      &lt;div&gt;&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;b&gt;Subject:&lt;/b&gt; 
      [saxon] issue while compile and execute an XQuery expression 
      withSaxon.&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;
      &lt;div&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot;&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;Hi 
      All,&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;I am SAXON 
      user. And trying to&lt;/span&gt;&lt;a name=&quot;125104b77e539d88_1250e2826ccabe72_1250be4ad73432b9_code7&quot; target=&quot;_top&quot;&gt;&lt;b&gt; compile and execute an 
      XQuery expression with Saxon&lt;/b&gt;&lt;/a&gt;&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;objective : execute the Xquey on document object and 
      get the Domelement list. &lt;br&gt;&lt;/b&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;I am using below code for that.&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt; &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;Configuration c = new Configuration();&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;List result = xe.evaluate(dqc);&lt;/font&gt;&lt;/pre&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt; &lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt; &lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;Here 
      query=&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot;&gt;&amp;quot;for 
      $x in&lt;span&gt;  &lt;/span&gt;//input \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt; + 
      &lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot;&gt;&amp;quot;return 
      $x \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;; 
      &lt;br&gt;&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;And dom 
      is a object of org.w3c.dom.Document.&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Document 
      object is having input element. But when I evaluate xquery expression, 
      list size is coming zero. Also I am not getting any exception.&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;I tried 
      same code with some other URL where I am able to see the result. So what 
      is the problem with other one.&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Can 
      anyone please answer following question?&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
      &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Why the 
      list size is coming zero if Document object is having input 
      element.&lt;/span&gt;&lt;/p&gt;
      &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;How can 
      I find the baseURI (variable name - url). &lt;/span&gt;&lt;/p&gt;
      &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Is there 
      any way to trace the log/warning/errors.&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Gaurav 
      &lt;/span&gt;&lt;/p&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Let 
    Crystal Reports handle the reporting - Free Crystal Reports 2008 
    30-Day&lt;br&gt;trial. Simplify your report design, integration and deployment - 
    and focus on&lt;br&gt;what you do best, core application coding. Discover what&amp;#39;s 
    new with&lt;br&gt;Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;saxon-help 
    mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;br&gt;saxon-help@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; 
    &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;br&gt;
saxon-help@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Regards,&lt;br&gt;Gaurav Sharma&lt;br&gt;
HCL Tech , Gurgaon&lt;br&gt;Mobile +919818305458&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439039&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26439039.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438991</id>
	<title>Re: issue while compile and execute an XQuery expressionwithSaxon.</title>
	<published>2009-11-19T22:31:47Z</published>
	<updated>2009-11-19T22:31:47Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Sorry if I didn't make myself clear. I don't think the problem 
has anything to do with your Java source code. It has to do with your data. I 
suspect that in the data supplied as input to the query, the input elements are 
in a namespace, whereas you are searching for input elements in no 
namespace.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Try replacing your query with the query &quot;.&quot; (which copies the 
input document to the result) to see what the input document actually looks 
like.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Incidentally, you should note that using DOM with Saxon is not 
very efficient: it runs 5-10 times slower than using Saxon's native tree 
format.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=645062806-20112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438991&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 20 November 2009 
  06:05&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Mailing list for the SAXON XSLT and XQuery 
  processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [saxon] issue while compile and execute an 
  XQuery expressionwithSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Thanks &lt;SPAN&gt;&lt;FONT size=2&gt;Michael,&lt;BR&gt;&lt;BR&gt;I have attached the one 
  sample source code for your reference. &lt;BR&gt;it would be great if you can give 
  me some&amp;nbsp; direction or problem solution.&lt;BR&gt;&lt;BR&gt;i am trying to get all the 
  input element from response.&lt;BR&gt;&lt;BR&gt;Note: I am using Httpclient and JTidy API 
  &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Regards,&lt;BR&gt;Gaurav&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR&gt;import 
  java.io.IOException;&lt;BR&gt;import java.io.InputStream;&lt;BR&gt;import 
  java.io.OutputStream;&lt;BR&gt;import java.util.List;&lt;BR&gt;import 
  java.util.regex.Matcher;&lt;BR&gt;import java.util.regex.Pattern;&lt;BR&gt;&lt;BR&gt;import 
  net.sf.saxon.Configuration;&lt;BR&gt;import 
  net.sf.saxon.dom.DocumentWrapper;&lt;BR&gt;import 
  net.sf.saxon.query.DynamicQueryContext;&lt;BR&gt;import 
  net.sf.saxon.query.StaticQueryContext;&lt;BR&gt;import 
  net.sf.saxon.query.XQueryExpression;&lt;BR&gt;import 
  net.sf.saxon.trans.XPathException;&lt;BR&gt;&lt;BR&gt;import 
  org.apache.commons.httpclient.HttpException;&lt;BR&gt;import 
  org.apache.http.HttpEntity;&lt;BR&gt;import org.apache.http.HttpResponse;&lt;BR&gt;import 
  org.apache.http.client.ClientProtocolException;&lt;BR&gt;import 
  org.apache.http.client.methods.HttpGet;&lt;BR&gt;import 
  org.apache.http.impl.client.DefaultHttpClient;&lt;BR&gt;import 
  org.apache.http.util.EntityUtils;&lt;BR&gt;import org.w3c.dom.Document;&lt;BR&gt;import 
  org.w3c.tidy.Tidy;&lt;BR&gt;&lt;BR&gt;public class HttpclientTutorial1 
  {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static String uri = &quot;&lt;A href=&quot;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&lt;/A&gt;&quot;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  private static String url=&quot;&lt;A href=&quot;https://superseeker.super.ato.gov.au&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au&lt;/A&gt;&quot;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  private String restURI=null;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static String query 
  = &quot;for $x in&amp;nbsp; //input \n&quot; + &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &quot;return $x 
  \n&quot;;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) 
  {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpclientTutorial1 hct = new 
  HttpclientTutorial1();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  hct.getScrapedData();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch 
  (ClientProtocolException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch block&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch 
  (IOException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  // TODO Auto-generated catch block&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  private void getScrapedData() throws ClientProtocolException, IOException 
  {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Create an instance of 
  HttpClient.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultHttpClient 
  httpclient = new DefaultHttpClient();&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpGet httpget = new 
  HttpGet(uri);&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try 
  {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpResponse 
  responseBody = httpclient.execute(httpget);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Pattern p = 
  Pattern.compile(&quot;window.location.*pid=71&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Matcher m = 
  p.matcher(EntityUtils.toString(responseBody.getEntity()));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean found = 
  false;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  while (m.find()) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  System.out.println(&quot;I found the text &quot;+m.group()+ &quot; starting at &quot; +m.start() + 
  &quot;index and ending at index &quot;+ m.end());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  restURI=org.apache.commons.lang.StringUtils.removeStart(m.group(), 
  &quot;window.location = '&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  System.out.println(restURI);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; found = 
  true;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  if(!found){&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;No match found&quot;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpGet httpget1=new 
  HttpGet(url+restURI);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; responseBody = 
  httpclient.execute(httpget1);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; List 
  result=getElementFromResponse(responseBody,query);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (HttpException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.err.println(&quot;Fatal protocol 
  violation: &quot; + e.getMessage());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (IOException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.err.println(&quot;Fatal transport 
  error: &quot; + e.getMessage());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (XPathException e) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  e.printStackTrace();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } finally 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Release the 
  connection.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  httpclient.getConnectionManager().shutdown();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  private List getElementFromResponse(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpResponse responseBody,String query) throws 
  IllegalStateException, IOException, XPathException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; HttpEntity entity = 
  responseBody.getEntity();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List 
  result=null;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (entity != null) 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream 
  responseBodyStream = entity.getContent();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Convert the response into document 
  object&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Document 
  tidyDOM = 
  ConvertResponseIntoDomObject(responseBodyStream);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get the element using Xquery and 
  extract the input&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  // attributes.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  result = retriveDomElementFromDocumentObject(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  query, url+restURI, tidyDOM);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot;size:&quot; 
  +result.size());&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 
  result;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private List 
  retriveDomElementFromDocumentObject(&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; String query, String url, Document doc) throws 
  XPathException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Configuration c = 
  new Configuration();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  StaticQueryContext qp = c.newStaticQueryContext();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; XQueryExpression xe = 
  qp.compileQuery(query);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; dqc.setContextItem(new DocumentWrapper(doc, url, 
  c));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List domElement = 
  xe.evaluate(dqc);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 
  domElement;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private Document 
  ConvertResponseIntoDomObject(InputStream responseBody) 
  {&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Tidy tidy = new 
  Tidy();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  //tidy.setXHTML(true);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  tidy.setQuiet(false);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  tidy.setShowWarnings(true);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  OutputStream o=System.out;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Document 
  dom = tidy.parseDOM(responseBody, o);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &amp;nbsp;&amp;nbsp;&amp;nbsp; return dom;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=gmail_quote&gt;On Fri, Nov 20, 2009 at 7:32 AM, Michael Kay &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438991&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; wrote:&lt;BR&gt;
  &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;
    &lt;DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;You 
    haven't shown your source document, so I can't tell why this query retrieves 
    nothing. My guess would be that the &amp;lt;input&amp;gt; elements are in a 
    namespace, whereas your query is only selecting &amp;lt;input&amp;gt; elements that 
    are in no namespace.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Incidentally, the query &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; for $x in //input return $x&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;can be 
    abbreviated to&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; //input&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV class=im&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;
    &lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
    &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(0,0,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
      &lt;DIV dir=ltr lang=en-us align=left&gt;
      &lt;HR&gt;
      &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438991&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 19 November 2009 
      10:10
      &lt;DIV class=im&gt;&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438991&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;B&gt;Subject:&lt;/B&gt; 
      [saxon] issue while compile and execute an XQuery expression 
      withSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
      &lt;DIV&gt;
      &lt;DIV&gt;&lt;/DIV&gt;
      &lt;DIV class=h5&gt;
      &lt;DIV&gt;&lt;/DIV&gt;&lt;BR clear=all&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Hi 
      All,&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;I am SAXON 
      user. And trying to&lt;/SPAN&gt;&lt;A name=1250e2826ccabe72_1250be4ad73432b9_code7 target=&quot;_top&quot;&gt;&lt;B&gt; compile and execute an 
      XQuery expression with Saxon&lt;/B&gt;&lt;/A&gt;&lt;B&gt;.&lt;/B&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;B&gt;objective : execute the Xquey on document object and 
      get the Domelement list. &lt;BR&gt;&lt;/B&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;B&gt;&lt;BR&gt;&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size=4&gt;I am using below code for that.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;Configuration c = new Configuration();&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;List result = xe.evaluate(dqc);&lt;/FONT&gt;&lt;/PRE&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Here 
      query=&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot; lang=EN-US&gt; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;for 
      $x in&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;//input \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt; + 
      &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;return 
      $x \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;; 
      &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;And dom 
      is a object of org.w3c.dom.Document.&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Document 
      object is having input element. But when I evaluate xquery expression, 
      list size is coming zero. Also I am not getting any exception.&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;I tried 
      same code with some other URL where I am able to see the result. So what 
      is the problem with other one.&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Can 
      anyone please answer following question?&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
      &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Why the 
      list size is coming zero if Document object is having input 
      element.&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;How can 
      I find the baseURI (variable name - url). &lt;/SPAN&gt;&lt;/P&gt;
      &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
      &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Is there 
      any way to trace the log/warning/errors.&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
      &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Gaurav 
      &lt;/SPAN&gt;&lt;/P&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Let 
    Crystal Reports handle the reporting - Free Crystal Reports 2008 
    30-Day&lt;BR&gt;trial. Simplify your report design, integration and deployment - 
    and focus on&lt;BR&gt;what you do best, core application coding. Discover what's 
    new with&lt;BR&gt;Crystal Reports now. &amp;nbsp;&lt;A href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;saxon-help 
    mailing list archived at &lt;A href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;BR&gt;saxon-help@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/A&gt; 
    &lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Regards,&lt;BR&gt;Gaurav 
  Sharma&lt;BR&gt;HCL Tech , Gurgaon&lt;BR&gt;Mobile 
+919818305458&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438991&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26438991.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438871</id>
	<title>Re: issue while compile and execute an XQuery expression withSaxon.</title>
	<published>2009-11-19T22:05:28Z</published>
	<updated>2009-11-19T22:05:28Z</updated>
	<author>
		<name>Gaurav sharma-12</name>
	</author>
	<content type="html">Thanks &lt;span&gt;&lt;font size=&quot;2&quot;&gt;Michael,&lt;br&gt;&lt;br&gt;I have attached the one sample source code for your reference. &lt;br&gt;it would be great if you can give me some  direction or problem solution.&lt;br&gt;&lt;br&gt;i am trying to get all the input element from response.&lt;br&gt;
&lt;br&gt;Note: I am using Httpclient and JTidy API &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Gaurav&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;br&gt;import java.io.IOException;&lt;br&gt;import java.io.InputStream;&lt;br&gt;import java.io.OutputStream;&lt;br&gt;import java.util.List;&lt;br&gt;
import java.util.regex.Matcher;&lt;br&gt;import java.util.regex.Pattern;&lt;br&gt;&lt;br&gt;import net.sf.saxon.Configuration;&lt;br&gt;import net.sf.saxon.dom.DocumentWrapper;&lt;br&gt;import net.sf.saxon.query.DynamicQueryContext;&lt;br&gt;import net.sf.saxon.query.StaticQueryContext;&lt;br&gt;
import net.sf.saxon.query.XQueryExpression;&lt;br&gt;import net.sf.saxon.trans.XPathException;&lt;br&gt;&lt;br&gt;import org.apache.commons.httpclient.HttpException;&lt;br&gt;import org.apache.http.HttpEntity;&lt;br&gt;import org.apache.http.HttpResponse;&lt;br&gt;
import org.apache.http.client.ClientProtocolException;&lt;br&gt;import org.apache.http.client.methods.HttpGet;&lt;br&gt;import org.apache.http.impl.client.DefaultHttpClient;&lt;br&gt;import org.apache.http.util.EntityUtils;&lt;br&gt;import org.w3c.dom.Document;&lt;br&gt;
import org.w3c.tidy.Tidy;&lt;br&gt;&lt;br&gt;public class HttpclientTutorial1 {&lt;br&gt;&lt;br&gt;    private static String uri = &amp;quot;&lt;a href=&quot;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au/SuperSeekerWeb/default.aspx?pid=71&lt;/a&gt;&amp;quot;;&lt;br&gt;
    private static String url=&amp;quot;&lt;a href=&quot;https://superseeker.super.ato.gov.au&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://superseeker.super.ato.gov.au&lt;/a&gt;&amp;quot;;&lt;br&gt;    private String restURI=null;&lt;br&gt;    private static String query = &amp;quot;for $x in  //input \n&amp;quot; + &lt;br&gt;
                                  &amp;quot;return $x \n&amp;quot;;&lt;br&gt;&lt;br&gt;    public static void main(String[] args) {&lt;br&gt;&lt;br&gt;        HttpclientTutorial1 hct = new HttpclientTutorial1();&lt;br&gt;        try {&lt;br&gt;            hct.getScrapedData();&lt;br&gt;
        } catch (ClientProtocolException e) {&lt;br&gt;            // TODO Auto-generated catch block&lt;br&gt;            e.printStackTrace();&lt;br&gt;        } catch (IOException e) {&lt;br&gt;            // TODO Auto-generated catch block&lt;br&gt;
            e.printStackTrace();&lt;br&gt;        }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    private void getScrapedData() throws ClientProtocolException, IOException {&lt;br&gt;&lt;br&gt;        // Create an instance of HttpClient.&lt;br&gt;        DefaultHttpClient httpclient = new DefaultHttpClient();&lt;br&gt;
&lt;br&gt;        HttpGet httpget = new HttpGet(uri);&lt;br&gt;&lt;br&gt;        try {&lt;br&gt;&lt;br&gt;            HttpResponse responseBody = httpclient.execute(httpget);&lt;br&gt;            Pattern p = Pattern.compile(&amp;quot;window.location.*pid=71&amp;quot;);&lt;br&gt;
            Matcher m = p.matcher(EntityUtils.toString(responseBody.getEntity()));&lt;br&gt;            boolean found = false;&lt;br&gt;&lt;br&gt;            while (m.find()) {&lt;br&gt;                System.out.println(&amp;quot;I found the text &amp;quot;+m.group()+ &amp;quot; starting at &amp;quot; +m.start() + &amp;quot;index and ending at index &amp;quot;+ m.end());&lt;br&gt;
                restURI=org.apache.commons.lang.StringUtils.removeStart(m.group(), &amp;quot;window.location = &amp;#39;&amp;quot;);&lt;br&gt;                System.out.println(restURI);&lt;br&gt;                    found = true;&lt;br&gt;            }&lt;br&gt;
            if(!found){&lt;br&gt;                System.out.println(&amp;quot;No match found&amp;quot;);&lt;br&gt;            }&lt;br&gt;            HttpGet httpget1=new HttpGet(url+restURI);&lt;br&gt;            responseBody = httpclient.execute(httpget1);&lt;br&gt;
            List result=getElementFromResponse(responseBody,query);&lt;br&gt;            &lt;br&gt;        } catch (HttpException e) {&lt;br&gt;            System.err.println(&amp;quot;Fatal protocol violation: &amp;quot; + e.getMessage());&lt;br&gt;            e.printStackTrace();&lt;br&gt;
        } catch (IOException e) {&lt;br&gt;            System.err.println(&amp;quot;Fatal transport error: &amp;quot; + e.getMessage());&lt;br&gt;            e.printStackTrace();&lt;br&gt;        } catch (XPathException e) {&lt;br&gt;            e.printStackTrace();&lt;br&gt;
        } finally {&lt;br&gt;            // Release the connection.&lt;br&gt;            httpclient.getConnectionManager().shutdown();&lt;br&gt;        }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;    private List getElementFromResponse(&lt;br&gt;            HttpResponse responseBody,String query) throws IllegalStateException, IOException, XPathException {&lt;br&gt;
        HttpEntity entity = responseBody.getEntity();&lt;br&gt;        List result=null;&lt;br&gt;        if (entity != null) {&lt;br&gt;            InputStream responseBodyStream = entity.getContent();&lt;br&gt;            // Convert the response into document object&lt;br&gt;
            Document tidyDOM = ConvertResponseIntoDomObject(responseBodyStream);&lt;br&gt;            // get the element using Xquery and extract the input&lt;br&gt;            // attributes.&lt;br&gt;            result = retriveDomElementFromDocumentObject(&lt;br&gt;
                    query, url+restURI, tidyDOM);&lt;br&gt;            System.out.print(&amp;quot;size:&amp;quot; +result.size());&lt;br&gt;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        return result;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    &lt;br&gt;    private List retriveDomElementFromDocumentObject(&lt;br&gt;
            String query, String url, Document doc) throws XPathException {&lt;br&gt;        Configuration c = new Configuration();&lt;br&gt;        StaticQueryContext qp = c.newStaticQueryContext();&lt;br&gt;        XQueryExpression xe = qp.compileQuery(query);&lt;br&gt;
        DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;br&gt;        dqc.setContextItem(new DocumentWrapper(doc, url, c));&lt;br&gt;        List domElement = xe.evaluate(dqc);&lt;br&gt;        return domElement;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    private Document ConvertResponseIntoDomObject(InputStream responseBody) {&lt;br&gt;
&lt;br&gt;        Tidy tidy = new Tidy();&lt;br&gt;        //tidy.setXHTML(true);&lt;br&gt;        tidy.setQuiet(false);&lt;br&gt;        tidy.setShowWarnings(true);&lt;br&gt;        OutputStream o=System.out;&lt;br&gt;        Document dom = tidy.parseDOM(responseBody, o);&lt;br&gt;
        &lt;br&gt;        &lt;br&gt;        return dom;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 7:32 AM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;You haven&amp;#39;t shown your source document, so I can&amp;#39;t tell why 
this query retrieves nothing. My guess would be that the &amp;lt;input&amp;gt; elements 
are in a namespace, whereas your query is only selecting &amp;lt;input&amp;gt; elements 
that are in no namespace.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Incidentally, the query &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;   for $x in //input return $x&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;can be abbreviated to&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;   //input&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;Regards,&lt;br&gt;&lt;br&gt;Michael Kay&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt; 
&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;blockquote style=&quot;border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;&quot;&gt;
  &lt;div dir=&quot;ltr&quot; align=&quot;left&quot; lang=&quot;en-us&quot;&gt;
  &lt;hr&gt;
  &lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Gaurav sharma 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 19 November 2009 
  10:10&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438871&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;b&gt;Subject:&lt;/b&gt; 
  [saxon] issue while compile and execute an XQuery expression 
  withSaxon.&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
  &lt;div&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;Hi All,&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;I am SAXON user. And trying to&lt;/span&gt;&lt;a name=&quot;1250e2826ccabe72_1250be4ad73432b9_code7&quot; target=&quot;_top&quot;&gt;&lt;b&gt; compile and execute an XQuery expression with 
  Saxon&lt;/b&gt;&lt;/a&gt;&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;objective : execute the Xquey on document object and get 
  the Domelement list. &lt;br&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;I am using below code for that.&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt; &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;Configuration c = new Configuration();&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;List result = xe.evaluate(dqc);&lt;/font&gt;&lt;/pre&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt; &lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt; &lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt;&quot; lang=&quot;EN-US&quot;&gt;Here query=&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot;&gt;&amp;quot;for 
  $x in&lt;span&gt;  &lt;/span&gt;//input \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt; + 
  &lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: rgb(42, 0, 255); font-size: 10pt;&quot;&gt;&amp;quot;return 
  $x \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;; 
  &lt;br&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;And dom is a 
  object of org.w3c.dom.Document.&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Document 
  object is having input element. But when I evaluate xquery expression, list 
  size is coming zero. Also I am not getting any exception.&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;I tried same 
  code with some other URL where I am able to see the result. So what is the 
  problem with other one.&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Can anyone 
  please answer following question?&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
  &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Why the list 
  size is coming zero if Document object is having input element.&lt;/span&gt;&lt;/p&gt;
  &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;How can I 
  find the baseURI (variable name - url). &lt;/span&gt;&lt;/p&gt;
  &lt;p style=&quot;margin-left: 36pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;#39;Times New Roman&amp;#39;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;        
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Is there any 
  way to trace the log/warning/errors.&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;#39;Courier New&amp;#39;; color: black; font-size: 10pt;&quot;&gt;Gaurav 
  &lt;/span&gt;&lt;/p&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/%0Asaxon-help@lists.sourceforge.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;br&gt;
saxon-help@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt; &lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Regards,&lt;br&gt;Gaurav Sharma&lt;br&gt;
HCL Tech , Gurgaon&lt;br&gt;Mobile +919818305458&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438871&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26438871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26434462</id>
	<title>Re: SaxonHE 9.2.0.3 - java.endorsed.dirs possible issue?</title>
	<published>2009-11-19T13:15:25Z</published>
	<updated>2009-11-19T13:15:25Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">This seems to be the same as the issue raised yesterday by Dannes Wessels:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://markmail.org/thread/wwljuixdww6fhd7w&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://markmail.org/thread/wwljuixdww6fhd7w&lt;/a&gt;&lt;br&gt;&lt;br&gt;It's caused by Configuration.class.getClassLoader() returning null when the
&lt;br&gt;class is loaded from the endorsed library (presumably because the class was
&lt;br&gt;loaded by the bootstrap class loader, which is not a real object). I'm not
&lt;br&gt;sure what the best way to fix it is, I will have to do some experiments
&lt;br&gt;(unless someone knowledgeable in class loading can tell me the answer!)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp; 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Adam Retter [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434462&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Adam.Retter@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 18 November 2009 21:45
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434462&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [saxon] SaxonHE 9.2.0.3 - java.endorsed.dirs possible issue?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am wondering if there is a possible issue with using 
&lt;br&gt;&amp;gt; SaxonHE 9.2.0.3 from an endorsed location, such as that 
&lt;br&gt;&amp;gt; specified by java.endorsed.dirs (and often used in a Web 
&lt;br&gt;&amp;gt; Context such as Apache Tomcat)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When placing Saxon in an endorsed lib folder and trying to 
&lt;br&gt;&amp;gt; call something simple like 
&lt;br&gt;&amp;gt; net.sf.saxon.Version.getProductVersion() we seem to get a 
&lt;br&gt;&amp;gt; NullPointerException at line 231 of 
&lt;br&gt;&amp;gt; net.sf.saxon.Configuration However if we take Saxon out of 
&lt;br&gt;&amp;gt; the endorsed lib folder and place it anywhere else on the 
&lt;br&gt;&amp;gt; standard class-path then we do not experience an NPE.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is this an intentional limitation of the HE version?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks Adam
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Registered Office: 7 Abbey Court, Eagle Way, Sowton, Exeter, 
&lt;br&gt;&amp;gt; Devon, EX2 7HY Registered Number 2892803 Registered in 
&lt;br&gt;&amp;gt; England and Wales 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This email has been scanned by the MessageLabs Email Security System.
&lt;br&gt;&amp;gt; For more information please visit &lt;a href=&quot;http://www.messagelabs.com/email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.messagelabs.com/email&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The information contained in this e-mail is confidential and 
&lt;br&gt;&amp;gt; may be subject to legal privilege. If you are not the 
&lt;br&gt;&amp;gt; intended recipient, you must not use, copy, distribute or 
&lt;br&gt;&amp;gt; disclose the e-mail or any part of its contents or take any 
&lt;br&gt;&amp;gt; action in reliance on it. If you have received this e-mail in 
&lt;br&gt;&amp;gt; error, please e-mail the sender by replying to this message. 
&lt;br&gt;&amp;gt; All reasonable precautions have been taken to ensure no 
&lt;br&gt;&amp;gt; viruses are present in this e-mail. Landmark Information 
&lt;br&gt;&amp;gt; Group Limited cannot accept responsibility for loss or damage 
&lt;br&gt;&amp;gt; arising from the use of this e-mail or attachments and 
&lt;br&gt;&amp;gt; recommend that you subject these to your virus checking 
&lt;br&gt;&amp;gt; procedures prior to use.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 30-Day trial. Simplify your report design, 
&lt;br&gt;&amp;gt; integration and deployment - and focus on what you do best, 
&lt;br&gt;&amp;gt; core application coding. Discover what's new with Crystal 
&lt;br&gt;&amp;gt; Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; saxon-help mailing list archived at 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434462&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434462&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SaxonHE-9.2.0.3---java.endorsed.dirs-possible-issue--tp26433775p26434462.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26433641</id>
	<title>Re: issue while compile and execute an XQuery expression withSaxon.</title>
	<published>2009-11-19T12:32:50Z</published>
	<updated>2009-11-19T12:32:50Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;You haven't shown your source document, so I can't tell why 
this query retrieves nothing. My guess would be that the &amp;lt;input&amp;gt; elements 
are in a namespace, whereas your query is only selecting &amp;lt;input&amp;gt; elements 
that are in no namespace.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Incidentally, the query &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; for $x in //input return $x&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;can be abbreviated to&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&amp;nbsp;&amp;nbsp; //input&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=405133020-19112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Gaurav sharma 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26433641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sham.gaurav@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 19 November 2009 
  10:10&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26433641&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
  [saxon] issue while compile and execute an XQuery expression 
  withSaxon.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;&lt;BR clear=all&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;I am SAXON user. And trying to&lt;/SPAN&gt;&lt;A name=1250be4ad73432b9_code7 target=&quot;_top&quot;&gt;&lt;B&gt; compile and execute an XQuery expression with 
  Saxon&lt;/B&gt;&lt;/A&gt;&lt;B&gt;.&lt;/B&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;B&gt;objective : execute the Xquey on document object and get 
  the Domelement list. &lt;BR&gt;&lt;/B&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;B&gt;&lt;BR&gt;&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size=4&gt;I am using below code for that.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;Configuration c = new Configuration();&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size=4&gt;List result = xe.evaluate(dqc);&lt;/FONT&gt;&lt;/PRE&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt&quot; lang=EN-US&gt;Here query=&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot; lang=EN-US&gt; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;for 
  $x in&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;//input \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt; + 
  &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: rgb(42,0,255); FONT-SIZE: 10pt&quot;&gt;&quot;return 
  $x \n&quot;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;; 
  &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;And dom is a 
  object of org.w3c.dom.Document.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Document 
  object is having input element. But when I evaluate xquery expression, list 
  size is coming zero. Also I am not getting any exception.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;I tried same 
  code with some other URL where I am able to see the result. So what is the 
  problem with other one.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Can anyone 
  please answer following question?&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Why the list 
  size is coming zero if Document object is having input element.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;How can I 
  find the baseURI (variable name - url). &lt;/SPAN&gt;&lt;/P&gt;
  &lt;P style=&quot;MARGIN-LEFT: 36pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN&gt;-&lt;SPAN style=&quot;FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Is there any 
  way to trace the log/warning/errors.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt&quot;&gt;Gaurav 
  &lt;/SPAN&gt;&lt;/P&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26433641&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26433641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423711</id>
	<title>issue while compile and execute an XQuery expression with Saxon.</title>
	<published>2009-11-19T02:09:54Z</published>
	<updated>2009-11-19T02:09:54Z</updated>
	<author>
		<name>Gaurav sharma-12</name>
	</author>
	<content type="html">&lt;br clear=&quot;all&quot;&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt;Hi All,&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt;I am SAXON
user. And trying to&lt;/span&gt;&lt;a name=&quot;1250be4ad73432b9_code7&quot; target=&quot;_top&quot;&gt;&lt;b&gt; compile and execute an XQuery
expression with Saxon&lt;/b&gt;&lt;/a&gt;&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;objective : execute the Xquey on document object and get the Domelement list. &lt;br&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/p&gt;

&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;I am using below code for that.&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt; &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;Configuration c = new Configuration();&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;StaticQueryContext qp = new StaticQueryContext(c);&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;XQueryExpression xe = qp.compileQuery(query);&lt;/font&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;DynamicQueryContext dqc = new DynamicQueryContext(c);&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;dqc.setContextNode(new DocumentWrapper(dom, url, c));&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font size=&quot;4&quot;&gt;List result = xe.evaluate(dqc);&lt;/font&gt;&lt;/pre&gt;


&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: &amp;quot;Courier New&amp;quot;;&quot; lang=&quot;EN-US&quot;&gt;Here query=&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(42, 0, 255);&quot; lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(42, 0, 255);&quot;&gt;&amp;quot;for $x
in&lt;span&gt;  &lt;/span&gt;//input \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(42, 0, 255);&quot;&gt;&amp;quot;return
$x \n&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;; &lt;br&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;And dom is a
object of org.w3c.dom.Document.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Document object is
having input element. But when I evaluate xquery expression, list size is coming
zero. Also I am not getting any exception.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;I tried same
code with some other URL where I am able to see the result. So what is the
problem with other one.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Can anyone
please answer following question?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 36pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;       
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Why the list size is coming zero if Document object is having
input element.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 36pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;       
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;How can I find the baseURI (variable name - url). &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 36pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;&lt;span&gt;-&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;       
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Is there any way to trace the log/warning/errors.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;&quot;&gt;Gaurav &lt;/span&gt;&lt;/p&gt;
&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423711&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-while-compile-and-execute-an-XQuery-expression-with-Saxon.-tp26423711p26423711.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416643</id>
	<title>Re: NPE in TransformerFactory.newInstance()</title>
	<published>2009-11-18T14:04:20Z</published>
	<updated>2009-11-18T14:04:20Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Puzzling.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Actually I think the root cause is the 
NullPointerException.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;The code on line 231 is doing: 
Configuration.class.getClassLoader().getResourceAsStream(sConfigFile);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=608322321-18112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=608322321-18112009&gt;&lt;/SPAN&gt;&lt;FONT face=Arial&gt;&lt;FONT color=#0000ff&gt;&lt;FONT size=2&gt;I&amp;nbsp;note&amp;nbsp;that&amp;nbsp;the&amp;nbsp;comment&amp;nbsp;on&amp;nbsp;getClassLoader()&amp;nbsp;says&amp;nbsp;&quot;Some 
implementations may use&lt;SPAN class=608322321-18112009&gt; &lt;/SPAN&gt;null to represent 
the bootstrap class loader. This method will return&lt;SPAN class=608322321-18112009&gt; &lt;/SPAN&gt;null in such implementations if this class was 
loaded by the bootstrap&lt;SPAN class=608322321-18112009&gt; &lt;/SPAN&gt;class 
loader.&quot;&lt;SPAN class=608322321-18112009&gt; I suppose that a class in the endorsed 
library is loaded using the bootstrap class loader, which explains why you are 
seeing the effect.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT color=#0000ff&gt;&lt;FONT size=2&gt;&lt;SPAN class=608322321-18112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT color=#0000ff&gt;&lt;FONT size=2&gt;&lt;SPAN class=608322321-18112009&gt;I'm not quite sure what to do about it: perhaps if 
class.getClassLoader() returns null, I should use 
Thread.currentThread().getContextClassLoader(). But that can be null too. Or 
perhaps I should do new ClassLoader(), or perhaps 
ClassLoader.getSystemClassLoader()?&amp;nbsp; I'll have to do some 
experiments.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial&gt;&lt;FONT color=#0000ff&gt;&lt;FONT size=2&gt;&lt;!-- Converted from text/plain format --&gt;
&lt;P&gt;&lt;FONT size=2&gt;Regards,&lt;BR&gt;&lt;BR&gt;Michael Kay&lt;BR&gt;&lt;A href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/A&gt; 
&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Dannes Wessels 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416643&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dizzzz@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 18 November 2009 
  21:13&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Dannes Wessels&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; Mailing list for the SAXON 
  XSLT and XQuery processor&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [saxon] NPE in 
  TransformerFactory.newInstance()&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Responding myself:
  &lt;DIV&gt;&lt;BR&gt;
  &lt;DIV&gt;
  &lt;DIV&gt;On 16 Nov 2009, at 20:24 , Dannes Wessels wrote:&lt;/DIV&gt;&lt;BR class=Apple-interchange-newline&gt;
  &lt;BLOCKQUOTE type=&quot;cite&quot;&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;&lt;SPAN style=&quot;FONT-FAMILY: monospace&quot; class=Apple-style-span&gt;I replaced my older saxon.jar with the newer 
    saxon9he.jar (drop-in replacement) but this yields into a NPE.... The root 
    cause seems to be &quot;Failed to load configuration defined in 
    edition.properties&quot;.&lt;BR&gt;&lt;BR&gt;java.lang.NullPointerException&lt;BR&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot; class=Apple-tab-span&gt;&lt;/SPAN&gt;at 
    net.sf.saxon.Configuration.&amp;lt;clinit&amp;gt;(Configuration.java:231)&lt;BR&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot; class=Apple-tab-span&gt;&lt;/SPAN&gt;at 
    net.sf.saxon.TransformerFactoryImpl.&amp;lt;init&amp;gt;(TransformerFactoryImpl.java:36)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I normally put the saxon jars (and xerces, xalan etc) as 'endorsed' jars 
  on the classpath.... changing that does the trick...&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;hmmmmmm....&lt;/DIV&gt;&lt;BR&gt;
  &lt;DIV&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;
  &lt;DIV style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;
  &lt;DIV style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;
  &lt;DIV style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;&lt;SPAN style=&quot;WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px&quot; class=Apple-style-span&gt;
  &lt;DIV style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
  &lt;DIV&gt;Kind regards&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Dannes&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;--&lt;/DIV&gt;
  &lt;DIV&gt;
  &lt;DIV&gt;eXist-db Native XML Database - &lt;A href=&quot;http://exist-db.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://exist-db.org&lt;/A&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Join us on linked-in: &lt;A href=&quot;http://www.linkedin.com/groups?gid=35624&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/groups?gid=35624&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;BR class=Apple-interchange-newline&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;BR class=Apple-interchange-newline&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;BR class=Apple-interchange-newline&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;BR class=Apple-interchange-newline&gt;&lt;/SPAN&gt;&lt;BR class=Apple-interchange-newline&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416643&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NPE-in-TransformerFactory.newInstance%28%29-tp26377910p26416643.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26433775</id>
	<title>SaxonHE 9.2.0.3 - java.endorsed.dirs possible issue?</title>
	<published>2009-11-18T13:44:38Z</published>
	<updated>2009-11-18T13:44:38Z</updated>
	<author>
		<name>Adam Retter-6</name>
	</author>
	<content type="html">&lt;br&gt;Michael,
&lt;br&gt;&lt;br&gt;I am wondering if there is a possible issue with using SaxonHE 9.2.0.3 from an endorsed location, such as that specified by java.endorsed.dirs (and often used in a Web Context such as Apache Tomcat)?
&lt;br&gt;&lt;br&gt;When placing Saxon in an endorsed lib folder and trying to call something simple like net.sf.saxon.Version.getProductVersion() we seem to get a NullPointerException at line 231 of net.sf.saxon.Configuration
&lt;br&gt;However if we take Saxon out of the endorsed lib folder and place it anywhere else on the standard class-path then we do not experience an NPE.
&lt;br&gt;&lt;br&gt;Is this an intentional limitation of the HE version?
&lt;br&gt;&lt;br&gt;Thanks Adam
&lt;br&gt;&lt;br&gt;&lt;br&gt;Registered Office: 7 Abbey Court, Eagle Way, Sowton, Exeter, Devon, EX2 7HY
&lt;br&gt;Registered Number 2892803 Registered in England and Wales 
&lt;br&gt;&lt;br&gt;This email has been scanned by the MessageLabs Email Security System.
&lt;br&gt;For more information please visit &lt;a href=&quot;http://www.messagelabs.com/email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.messagelabs.com/email&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;The information contained in this e-mail is confidential and may be subject to 
&lt;br&gt;legal privilege. If you are not the intended recipient, you must not use, copy, 
&lt;br&gt;distribute or disclose the e-mail or any part of its contents or take any 
&lt;br&gt;action in reliance on it. If you have received this e-mail in error, please 
&lt;br&gt;e-mail the sender by replying to this message. All reasonable precautions have 
&lt;br&gt;been taken to ensure no viruses are present in this e-mail. Landmark Information
&lt;br&gt;Group Limited cannot accept responsibility for loss or damage arising from the 
&lt;br&gt;use of this e-mail or attachments and recommend that you subject these to 
&lt;br&gt;your virus checking procedures prior to use.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26433775&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SaxonHE-9.2.0.3---java.endorsed.dirs-possible-issue--tp26433775p26433775.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26415953</id>
	<title>Re: XSLT on-disk tree comparsion</title>
	<published>2009-11-18T13:17:33Z</published>
	<updated>2009-11-18T13:17:33Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; There was at least one such XSLT *1.0* processor several 
&lt;br&gt;&amp;gt; years ago -- the last version of JD, however it quickly 
&lt;br&gt;&amp;gt; disappeared and I haven't heard anything of JD and its author 
&lt;br&gt;&amp;gt; since then :(
&lt;br&gt;&lt;br&gt;&lt;br&gt;Johannes Döbler withdrew jd.xslt from the web with just as little advance
&lt;br&gt;warning as when he originally announced it here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://markmail.org/message/f2orehw45chca3qc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://markmail.org/message/f2orehw45chca3qc&lt;/a&gt;&lt;br&gt;&lt;br&gt;No-one as far as I know was able to contact him after his web site
&lt;br&gt;disappeared, but an archive copy of the software has been preserved on the
&lt;br&gt;Stylus Studio web site for anyone wanting to investigate it: 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://markmail.org/message/iio3gcxcxuwkgrx5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://markmail.org/message/iio3gcxcxuwkgrx5&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;&lt;a href=&quot;http://www.saxonica.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.saxonica.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/michaelhkay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/michaelhkay&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;saxon-help mailing list archived at &lt;a href=&quot;http://saxon.markmail.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://saxon.markmail.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26415953&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saxon-help@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/saxon-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/saxon-help&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/saxon-help-f3802.html&quot; embed=&quot;fixTarget[3802]&quot; target=&quot;_top&quot; &gt;saxon-help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XSLT-on-disk-tree-comparsion-tp26411901p26415953.html" />
</entry>

</feed>
