<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-3800</id>
	<title>Nabble - Saxon XSLT and XQuery Processor</title>
	<updated>2008-10-09T14:52:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Saxon-XSLT-and-XQuery-Processor-f3800.xml" />
	<link rel="alternate" type="text/html" href="http://www.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:www.nabble.com,2006:post-19908699</id>
	<title>Re: Xquery Module External Variables</title>
	<published>2008-10-09T14:52:03Z</published>
	<updated>2008-10-09T14:52:03Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">You have to supply values for all the external variables before starting
&lt;br&gt;query execution, regardless what module they are declared in. If you want
&lt;br&gt;something that varies from one invocation to another, you must declare it as
&lt;br&gt;a local parameter of a particular function within the module.
&lt;br&gt;&lt;br&gt;Modules are not especially well specified so you may well find variations
&lt;br&gt;between implementations, but I wouldn't expect any product to allow external
&lt;br&gt;variables to be modified dynamically.
&lt;br&gt;&lt;br&gt;A good list for XQuery question is talk @ x-query.com
&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;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Saloucious [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19908699&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;saloucious@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 09 October 2008 22:21
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19908699&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] Xquery Module External Variables
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; May be this is not the place to ask this question, more an 
&lt;br&gt;&amp;gt; Xquery question than a Saxon one...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Actually, I've an xquery module which declares few external variables.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This module is called from an another query, eg: 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;for $n in doc($my_doc)
&lt;br&gt;&amp;gt; &amp;nbsp;let $test := data($n/sample)
&lt;br&gt;&amp;gt; &amp;nbsp;return my_module:call()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; where $test is an external variable of my_module.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there any possibilities to set module external variables 
&lt;br&gt;&amp;gt; dynamically ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; BTW, do you know an dedicated xquery mailling list ?
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/Xquery-Module-External-Variables-tp19907&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Xquery-Module-External-Variables-tp19907&lt;/a&gt;&lt;br&gt;&amp;gt; 612p19907612.html
&lt;br&gt;&amp;gt; Sent from the saxon-help mailing list archive at Nabble.com.
&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; This SF.Net email is sponsored by the Moblin Your Move 
&lt;br&gt;&amp;gt; Developer's challenge
&lt;br&gt;&amp;gt; Build the coolest Linux based applications with Moblin SDK &amp; 
&lt;br&gt;&amp;gt; win great prizes
&lt;br&gt;&amp;gt; Grand prize is a trip for two to an Open Source event 
&lt;br&gt;&amp;gt; anywhere in the world
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19908699&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;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19908699&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://www.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://www.nabble.com/Xquery-Module-External-Variables-tp19907612p19908699.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19907612</id>
	<title>Xquery Module External Variables</title>
	<published>2008-10-09T14:20:31Z</published>
	<updated>2008-10-09T14:20:31Z</updated>
	<author>
		<name>Saloucious</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;May be this is not the place to ask this question, more an Xquery question than a Saxon one...
&lt;br&gt;&lt;br&gt;Actually, I've an xquery module which declares few external variables.
&lt;br&gt;&lt;br&gt;This module is called from an another query, eg: 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;for $n in doc($my_doc)
&lt;br&gt;&amp;nbsp;let $test := data($n/sample)
&lt;br&gt;&amp;nbsp;return my_module:call()
&lt;br&gt;&lt;br&gt;where $test is an external variable of my_module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Is there any possibilities to set module external variables dynamically ?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;BTW, do you know an dedicated xquery mailling list ?&lt;p&gt;From forum: &lt;a href=&quot;http://www.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://www.nabble.com/Xquery-Module-External-Variables-tp19907612p19907612.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19886687</id>
	<title>Re: Getting the version of Saxon in a transform</title>
	<published>2008-10-08T13:10:35Z</published>
	<updated>2008-10-08T13:10:35Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks, that's what I was hoping for. &amp;nbsp;But I noticed from the 
&lt;br&gt;&amp;gt; output of the system properties mentioned in the message that 
&lt;br&gt;&amp;gt; you are unable to tell whether you are running the B or SA 
&lt;br&gt;&amp;gt; version. &amp;nbsp;Fortunately it doesn't matter for me at this point 
&lt;br&gt;&amp;gt; in time. &amp;nbsp;For example I get the following when running 
&lt;br&gt;&amp;gt; Saxon-B 9.1.0.2:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; XSLT Processor:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vendor: SAXON 9.1.0.2 from Saxonica
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; product: SAXON
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; version: 9.1.0.2
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;product-version will be &amp;quot;SA 9.1.0.2&amp;quot; if you are running Saxon-SA (that is,
&lt;br&gt;if you are running with a SchemaAwareConfiguration, which will be the case
&lt;br&gt;if you used the -sa flag on the command line).
&lt;br&gt;&lt;br&gt;I should really output &amp;quot;Saxonica&amp;quot; as vendor. It's the way it is because in
&lt;br&gt;XSLT 1.0 only &amp;quot;vendor&amp;quot; was available so I tried to pack all the information
&lt;br&gt;in there, and I left it that way in case anyone was parsing the value
&lt;br&gt;returned.
&lt;br&gt;&lt;br&gt;Michael Kay
&lt;br&gt;Saxonica
&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19886687&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://www.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://www.nabble.com/Getting-the-version-of-Saxon-in-a-transform-tp19884883p19886687.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19885521</id>
	<title>Re: Getting the version of Saxon in a transform</title>
	<published>2008-10-08T12:10:34Z</published>
	<updated>2008-10-08T12:10:34Z</updated>
	<author>
		<name>Houghton,Andrew</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: Andrew Welch [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrew.j.welch@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, October 08, 2008 2:50 PM
&lt;br&gt;&amp;gt; To: Mailing list for the SAXON XSLT and XQuery processor
&lt;br&gt;&amp;gt; Subject: Re: [saxon] Getting the version of Saxon in a transform
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2008/10/8 Houghton,Andrew &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885521&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;houghtoa@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt; I was hoping to see a saxon:version() as xsd:string as an extension
&lt;br&gt;&amp;gt; function, but I didn't see it. &amp;nbsp;The only other possibility I can see is
&lt;br&gt;&amp;gt; system-property(), but would the property name be?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This sort of thing came up the other day:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xsl.markmail.org/search/?q=processor+version#query:processor%20v&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xsl.markmail.org/search/?q=processor+version#query:processor%20v&lt;/a&gt;&lt;br&gt;&amp;gt; ersion+page:1+mid:wwb3fytctkzspt4r+state:results
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; basically you're after system-property('xsl:product-version')
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; or from Java you can call:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; net.sf.saxon.Version.getProductVersion()
&lt;/div&gt;&lt;br&gt;Thanks, that's what I was hoping for. &amp;nbsp;But I noticed from the output of the system properties mentioned in the message that you are unable to tell whether you are running the B or SA version. &amp;nbsp;Fortunately it doesn't matter for me at this point in time. &amp;nbsp;For example I get the following when running Saxon-B 9.1.0.2:
&lt;br&gt;&lt;br&gt;XSLT Processor:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vendor: SAXON 9.1.0.2 from Saxonica
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; product: SAXON
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; version: 9.1.0.2
&lt;br&gt;&lt;br&gt;given:
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;xsl:transform version=&amp;quot;2.0&amp;quot; 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;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsl:output method=&amp;quot;text&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; media-type=&amp;quot;text/plain&amp;quot; encoding=&amp;quot;utf-8&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; byte-order-mark=&amp;quot;no&amp;quot; normalization-form=&amp;quot;NFC&amp;quot;
&lt;br&gt;&amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;concat('XSLT Processor: ', '&amp;#10;')&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;concat('&amp;#9;', 'vendor: ', system-property('xsl:vendor'), '&amp;#10;')&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;system-property('xsl:version') = '2.0'&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;concat('&amp;#9;', 'product: ', system-property('xsl:product-name'), '&amp;#10;')&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:value-of select=&amp;quot;concat('&amp;#9;', 'version: ', system-property('xsl:product-version'), '&amp;#10;')&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;lt;/xsl:transform&amp;gt;
&lt;br&gt;&lt;br&gt;I guess if I needed to determine whether it was B or SA I could saxon:try a Saxon-SA only function and see if it failed...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885521&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://www.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://www.nabble.com/Getting-the-version-of-Saxon-in-a-transform-tp19884883p19885521.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19885108</id>
	<title>Re: Getting the version of Saxon in a transform</title>
	<published>2008-10-08T11:49:49Z</published>
	<updated>2008-10-08T11:49:49Z</updated>
	<author>
		<name>andrew welch</name>
	</author>
	<content type="html">2008/10/8 Houghton,Andrew &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885108&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;houghtoa@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; I have several processing streams that run Saxon for XSL transformation. &amp;nbsp;These processing streams may be running different versions of Saxon. &amp;nbsp;The XSL transforms that are being run use saxon:try to catch certain errors and when an error is caught in the transform, then the transform collects information from &amp;lt;error/&amp;gt; and routes it to a message queue for staff to look into. &amp;nbsp;The issue I'm running into is that the information being collected doesn't indicate the version of Saxon that is running the transform which could be important for tracking down issues. &amp;nbsp;Does anyone know of a way to retrieve the version of Saxon during a transform?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I was hoping to see a saxon:version() as xsd:string as an extension function, but I didn't see it. &amp;nbsp;The only other possibility I can see is system-property(), but would the property name be?
&lt;br&gt;&lt;br&gt;This sort of thing came up the other day:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://xsl.markmail.org/search/?q=processor+version#query:processor%20version+page:1+mid:wwb3fytctkzspt4r+state:results&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xsl.markmail.org/search/?q=processor+version#query:processor%20version+page:1+mid:wwb3fytctkzspt4r+state:results&lt;/a&gt;&lt;br&gt;&lt;br&gt;basically you're after system-property('xsl:product-version')
&lt;br&gt;&lt;br&gt;or from Java you can call:
&lt;br&gt;&lt;br&gt;net.sf.saxon.Version.getProductVersion()
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Welch
&lt;br&gt;&lt;a href=&quot;http://andrewjwelch.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://andrewjwelch.com&lt;/a&gt;&lt;br&gt;Kernow: &lt;a href=&quot;http://kernowforsaxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kernowforsaxon.sf.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885108&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://www.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://www.nabble.com/Getting-the-version-of-Saxon-in-a-transform-tp19884883p19885108.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19884883</id>
	<title>Getting the version of Saxon in a transform</title>
	<published>2008-10-08T11:40:16Z</published>
	<updated>2008-10-08T11:40:16Z</updated>
	<author>
		<name>Houghton,Andrew</name>
	</author>
	<content type="html">I have several processing streams that run Saxon for XSL transformation. &amp;nbsp;These processing streams may be running different versions of Saxon. &amp;nbsp;The XSL transforms that are being run use saxon:try to catch certain errors and when an error is caught in the transform, then the transform collects information from &amp;lt;error/&amp;gt; and routes it to a message queue for staff to look into. &amp;nbsp;The issue I'm running into is that the information being collected doesn't indicate the version of Saxon that is running the transform which could be important for tracking down issues. &amp;nbsp;Does anyone know of a way to retrieve the version of Saxon during a transform?
&lt;br&gt;&lt;br&gt;I was hoping to see a saxon:version() as xsd:string as an extension function, but I didn't see it. &amp;nbsp;The only other possibility I can see is system-property(), but would the property name be?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks, Andy.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19884883&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://www.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://www.nabble.com/Getting-the-version-of-Saxon-in-a-transform-tp19884883p19884883.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19875275</id>
	<title>Re: Passing Nodes To XPath Functions</title>
	<published>2008-10-08T01:24:51Z</published>
	<updated>2008-10-08T01:24:51Z</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 http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6001.18099&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=459142208-08102008&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Thanks. It's not an acceptable workaround! I've reproduced 
the problem and will produce a further patch. I'm less and less comfortable with 
this JAXP interface - Saxon has moved so far in the direction of assuming static 
type information is available that it's very hard to do a good job when 
everything is dynamic.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=459142208-08102008&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=459142208-08102008&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Michael Kay&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=459142208-08102008&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;http://www.saxonica.com/&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px&quot;&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; Karthick Sankarachary 
  [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthick.sankarachary@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 08 October 2008 
  01:17&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Michael Kay&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] Passing Nodes To XPath 
  Functions&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV dir=ltr&gt;Michael,
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Thanks for pointing me to the patch. I was able to build it into the &lt;A href=&quot;http://9.1.0.2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;9.1.0.2&lt;/A&gt; version of saxon9.jar, and verify that it 
  does indeed work for my use case.
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;There was one minor change I had to make in my&amp;nbsp;XPathVariableResolver 
  implementation to get it to work. Used to be that you could resolve a variable 
  into a java.lang.String value and pass that to a custom function. However, now 
  you have to wrap that string into a org.w3c.dom.Text node, which I think is an 
  acceptable workaround.&lt;BR&gt;
  &lt;DIV&gt;&lt;BR clear=all&gt;Best Regards,&lt;BR&gt;Karthick Sankarachary&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=gmail_quote&gt;On Mon, Oct 6, 2008 at 6:43 AM, Michael Kay &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&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 class=gmail_quote style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;
    &lt;DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Thanks 
    for the reminder. I had in fact fixed the code on the development branch, 
    but had not got around to testing or publishing&amp;nbsp;the equivalent patch 
    for Saxon 9.1. This is now available, see&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;A href=&quot;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2149517&amp;amp;group_id=29872&amp;amp;atid=397617&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2149517&amp;amp;group_id=29872&amp;amp;atid=397617&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
    &lt;DIV class=Ih2E3d&gt;
    &lt;DIV&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Michael 
    Kay&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&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;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;
    &lt;BLOCKQUOTE dir=ltr style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
      &lt;DIV lang=en-us dir=ltr align=left&gt;
      &lt;HR&gt;
      &lt;FONT face=Tahoma size=2&gt;
      &lt;DIV class=Ih2E3d&gt;&lt;B&gt;From:&lt;/B&gt; Karthick Sankarachary [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthick.sankarachary@...&lt;/a&gt;] &lt;BR&gt;&lt;/DIV&gt;&lt;B&gt;Sent:&lt;/B&gt; 
      04 October 2008 01:34
      &lt;DIV&gt;
      &lt;DIV&gt;&lt;/DIV&gt;
      &lt;DIV class=Wj3C7c&gt;&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Michael Kay&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] 
      Passing Nodes To XPath Functions&lt;BR&gt;&lt;/DIV&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=Wj3C7c&gt;
      &lt;DIV&gt;&lt;/DIV&gt;
      &lt;DIV dir=ltr&gt;Hi Michael,&lt;BR&gt;&lt;BR&gt;Just checking to see if a patch is 
      available for the issue described below. If there's anything I can do to 
      help, please let me know.&lt;BR&gt;&lt;BR clear=all&gt;Best Regards,&lt;BR&gt;Karthick 
      Sankarachary&lt;BR&gt;&lt;BR&gt;
      &lt;DIV class=gmail_quote&gt;On Thu, Sep 11, 2008 at 3:29 PM, Michael Kay &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&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 class=gmail_quote style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;
        &lt;DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;It 
        looks as if I didn't run enough tests on the JAXP XPath interface. It's 
        a pretty tough one to support because the architecture of the interface 
        is so different from Saxon's native architecture, and it's full of XPath 
        1.0 assumptions. Also it's very underspecified - for example there is 
        nothing that says what kinds of values get passed in the list of 
        arguments to a function that's returned by a FunctionResolver. And 
        although it's underspecified, users expect it to behave in the same way 
        as other implementations, which can only be discovered by trial and 
        error.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&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&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Saxon is saying &quot;can't convert to Object&quot; because it needs more 
        information about what kind of object the function wants to see. But 
        clearly to conform to JAXP we just have to guess, and pass something. In 
        this case the function probably wants to see a DOM node, so I'll 
        probably&amp;nbsp;patch the code to provide that. However it remains the 
        case that this interface is underspecified and undertested. I think 
        there's a lot to be said for using the s9api interface if you want 
        something more predictable and robust.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&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&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Incidentally, at the end of your code you cast the result to 
        Node. Because you've asked for NODELIST, the result will be a DOM 
        NodeList even if it only contains one node.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&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&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Michael Kay&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
        &lt;DIV dir=ltr align=left&gt;&lt;SPAN&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Saxonica&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
        &lt;BLOCKQUOTE dir=ltr style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
          &lt;DIV lang=en-us dir=ltr align=left&gt;
          &lt;HR&gt;
          &lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Karthick Sankarachary [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthick.sankarachary@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 11 
          September 2008 21:17&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Michael Kay 
          &lt;DIV&gt;&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; Mailing list for the SAXON XSLT and XQuery 
          processor&lt;BR&gt;&lt;/DIV&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [saxon] Passing Nodes To XPath 
          Functions&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;DIV dir=ltr&gt;
          &lt;DIV&gt;Hi Michael,&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;First off, thanks for the quick response.&amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;To answer your questions:&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;Yes, I do have saxon9-dom.jar in my classpath, along with all of 
          the other saxon9*jars.&lt;/DIV&gt;
          &lt;DIV&gt;Yes, the function in question is an extension function. And no, I 
          don't run into this problem with built-in functions.&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;For your convenience, here's a complete JUnit test case:&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;import java.util.Iterator;&lt;/DIV&gt;
          &lt;DIV&gt;import java.util.List;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.namespace.NamespaceContext;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.namespace.QName;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.parsers.DocumentBuilder;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPath;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathConstants;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathExpression;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathFactory;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathFunction;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathFunctionException;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathFunctionResolver;&lt;/DIV&gt;
          &lt;DIV&gt;import javax.xml.xpath.XPathVariableResolver;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;import junit.framework.TestCase;&lt;/DIV&gt;
          &lt;DIV&gt;import net.sf.saxon.om.NamespaceConstant;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;import org.junit.Test;&lt;/DIV&gt;
          &lt;DIV&gt;import org.w3c.dom.Document;&lt;/DIV&gt;
          &lt;DIV&gt;import org.w3c.dom.Node;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;public class NodeVariableTestCase extends TestCase {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;@Test public void 
          testFunctionCall() throws Throwable {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;// Initialize DOM 
          objects&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocumentBuilderFactory dfactory 
          = DocumentBuilderFactory.newInstance();&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp;dfactory.setNamespaceAware(true);&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocumentBuilder docBuilder = 
          dfactory.newDocumentBuilder();&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Document doc = 
          docBuilder.newDocument();&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Node node = 
          doc.createElement(&quot;Y&quot;);&amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Initialize XPath&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.setProperty(&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;&quot;javax.xml.xpath.XPathFactory:&quot; + 
          NamespaceConstant.OBJECT_MODEL_SAXON,&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;&quot;net.sf.saxon.xpath.XPathFactoryImpl&quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPathFactory xpf = 
          XPathFactory.newInstance(NamespaceConstant.OBJECT_MODEL_SAXON);&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPath xpe = 
xpf.newXPath();&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Initialize various 
          resolvers&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setXPathVariableResolver(new 
          XPathVariableResolver() {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;public Object 
          resolveVariable(QName variableName) {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;if 
          (&quot;Y&quot;.equals(variableName.getLocalPart())) {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return node;&amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setXPathFunctionResolver(new 
          XPathFunctionResolver() {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;public XPathFunction resolveFunction(QName functionName, int 
          arity) {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;if (&quot;X&quot;.equals(functionName.getLocalPart())) {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;return new XPathFunction() {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;public Object evaluate(List 
          args)&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;throws 
          XPathFunctionException {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;if (args.size() == 1) 
          {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;if (args.get(0) instanceof 
          Node) {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return args.get(0);&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;};&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; 
          &lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setNamespaceContext(new 
          NamespaceContext() {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public String 
          getNamespaceURI(String prefix) {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if 
          (prefix.equals(&quot;saxon&quot;)) {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp;return &quot;&lt;A href=&quot;http://saxon.sf.net/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://saxon.sf.net/&lt;/A&gt;&quot;;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} 
          else {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp;if (prefix.equals(&quot;tns&quot;)) {&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; &lt;/SPAN&gt;return &quot;&lt;A href=&quot;http://my.org.com/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://my.org.com/&lt;/A&gt;&quot;;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp;} else&amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp; &amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; &lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
          &amp;nbsp;public String getPrefix(String uri) {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public 
          Iterator getPrefixes(String uri) {&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;return null;&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compile&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPathExpression expr =&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
          &amp;nbsp;xpe.compile(&quot;tns:X($Y)&quot;);&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Execute&lt;/DIV&gt;
          &lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Node result = (Node) 
          expr.evaluate(doc, XPathConstants.NODESET);&lt;/DIV&gt;
          &lt;DIV&gt;&lt;SPAN style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;}&lt;/DIV&gt;
          &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;Best Regards,&lt;BR&gt;Karthick 
          Sankarachary&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19875275&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://www.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://www.nabble.com/Passing-Nodes-To-XPath-Functions-tp19438262p19875275.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19873768</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-08T00:28:35Z</published>
	<updated>2008-10-08T00:28:35Z</updated>
	<author>
		<name>Michael Ludwig-4</name>
	</author>
	<content type="html">Andrew Welch schrieb:
&lt;br&gt;&amp;gt;&amp;gt; If I understand correctly, this is to generate HTML that displays
&lt;br&gt;&amp;gt;&amp;gt; XML (or HTML). If so, the included XSL might be helpful for a start.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have a look at Oliver Becker's &amp;quot;XML Verbatim&amp;quot; stylesheet:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www2.informatik.hu-berlin.de/~obecker/XSLT/#xmlverbatim&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www2.informatik.hu-berlin.de/~obecker/XSLT/#xmlverbatim&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks, good pointer. Looks like it's the same approach, but instead of
&lt;br&gt;a mere sketch an elaborate and complete solution.
&lt;br&gt;&lt;br&gt;Michael Ludwig
&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873768&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19873768.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19870169</id>
	<title>Re: Passing Nodes To XPath Functions</title>
	<published>2008-10-07T17:16:59Z</published>
	<updated>2008-10-07T17:16:59Z</updated>
	<author>
		<name>Karthick Sankarachary-2</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Michael,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for pointing me to the patch. I was able to build it into the &lt;a href=&quot;http://9.1.0.2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;9.1.0.2&lt;/a&gt; version of saxon9.jar, and verify that it does indeed work for my use case.&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;There was one minor change I had to make in my&amp;nbsp;XPathVariableResolver implementation to get it to work. Used to be that you could resolve a variable into a java.lang.String value and pass that to a custom function. However, now you have to wrap that string into a org.w3c.dom.Text node, which I think is an acceptable workaround.&lt;br&gt;
&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Best Regards,&lt;br&gt;Karthick Sankarachary&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Oct 6, 2008 at 6:43 AM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19870169&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;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Thanks for the reminder. I had in fact fixed the code on 
the development branch, but had not got around to testing or publishing&amp;nbsp;the 
equivalent patch for Saxon 9.1. This is now available, see&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 face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;a href=&quot;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2149517&amp;amp;group_id=29872&amp;amp;atid=397617&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2149517&amp;amp;group_id=29872&amp;amp;atid=397617&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class=&quot;Ih2E3d&quot;&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Michael Kay&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&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;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;blockquote dir=&quot;ltr&quot; style=&quot;padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px&quot;&gt;
  &lt;div lang=&quot;en-us&quot; dir=&quot;ltr&quot; align=&quot;left&quot;&gt;
  &lt;hr&gt;
  &lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Karthick Sankarachary 
  [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19870169&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthick.sankarachary@...&lt;/a&gt;] &lt;br&gt;&lt;/div&gt;&lt;b&gt;Sent:&lt;/b&gt; 04 October 2008 
  01:34&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; Michael Kay&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] Passing Nodes To XPath 
  Functions&lt;br&gt;&lt;/div&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;Wj3C7c&quot;&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div dir=&quot;ltr&quot;&gt;Hi Michael,&lt;br&gt;&lt;br&gt;Just checking to see if a patch is available 
  for the issue described below. If there&amp;#39;s anything I can do to help, please 
  let me know.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Best Regards,&lt;br&gt;Karthick Sankarachary&lt;br&gt;&lt;br&gt;
  &lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Sep 11, 2008 at 3:29 PM, Michael Kay &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19870169&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 class=&quot;gmail_quote&quot; style=&quot;padding-left:1ex;margin:0pt 0pt 0pt 0.8ex;border-left:rgb(204,204,204) 1px solid&quot;&gt;
    &lt;div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;It looks 
    as if I didn&amp;#39;t run enough tests on the JAXP XPath interface. It&amp;#39;s a pretty 
    tough one to support because the architecture of the interface is so 
    different from Saxon&amp;#39;s native architecture, and it&amp;#39;s full of XPath 1.0 
    assumptions. Also it&amp;#39;s very underspecified - for example there is nothing 
    that says what kinds of values get passed in the list of arguments to a 
    function that&amp;#39;s returned by a FunctionResolver. And although it&amp;#39;s 
    underspecified, users expect it to behave in the same way as other 
    implementations, which can only be discovered by trial and 
    error.&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 face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Saxon is 
    saying &amp;quot;can&amp;#39;t convert to Object&amp;quot; because it needs more information about 
    what kind of object the function wants to see. But clearly to conform to 
    JAXP we just have to guess, and pass something. In this case the function 
    probably wants to see a DOM node, so I&amp;#39;ll probably&amp;nbsp;patch the code to 
    provide that. However it remains the case that this interface is 
    underspecified and undertested. I think there&amp;#39;s a lot to be said for using 
    the s9api interface if you want something more predictable and 
    robust.&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 face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Incidentally, at the end of your code you cast the result to Node. 
    Because you&amp;#39;ve asked for NODELIST, the result will be a DOM NodeList even if 
    it only contains one node.&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 face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
    &lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Michael 
    Kay&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 face=&quot;Arial&quot; color=&quot;#0000ff&quot; size=&quot;2&quot;&gt;Saxonica&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;br&gt;
    &lt;blockquote dir=&quot;ltr&quot; style=&quot;padding-left:5px;margin-left:5px;border-left:rgb(0,0,255) 2px solid;margin-right:0px&quot;&gt;
      &lt;div lang=&quot;en-us&quot; dir=&quot;ltr&quot; align=&quot;left&quot;&gt;
      &lt;hr&gt;
      &lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Karthick Sankarachary [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19870169&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthick.sankarachary@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 11 
      September 2008 21:17&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; Michael Kay
      &lt;div&gt;&lt;br&gt;&lt;b&gt;Cc:&lt;/b&gt; Mailing list for the SAXON XSLT and 
      XQuery processor&lt;br&gt;&lt;/div&gt;&lt;b&gt;Subject:&lt;/b&gt; Re: [saxon] Passing Nodes To 
      XPath Functions&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;div dir=&quot;ltr&quot;&gt;
      &lt;div&gt;Hi Michael,&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;First off, thanks for the quick response.&amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;To answer your questions:&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;Yes, I do have saxon9-dom.jar in my classpath, along with all of the 
      other saxon9*jars.&lt;/div&gt;
      &lt;div&gt;Yes, the function in question is an extension function. And no, I 
      don&amp;#39;t run into this problem with built-in functions.&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;For your convenience, here&amp;#39;s a complete JUnit test case:&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;import java.util.Iterator;&lt;/div&gt;
      &lt;div&gt;import java.util.List;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;import javax.xml.namespace.NamespaceContext;&lt;/div&gt;
      &lt;div&gt;import javax.xml.namespace.QName;&lt;/div&gt;
      &lt;div&gt;import javax.xml.parsers.DocumentBuilder;&lt;/div&gt;
      &lt;div&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPath;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathConstants;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathExpression;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathFactory;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathFunction;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathFunctionException;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathFunctionResolver;&lt;/div&gt;
      &lt;div&gt;import javax.xml.xpath.XPathVariableResolver;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;import junit.framework.TestCase;&lt;/div&gt;
      &lt;div&gt;import net.sf.saxon.om.NamespaceConstant;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;import org.junit.Test;&lt;/div&gt;
      &lt;div&gt;import org.w3c.dom.Document;&lt;/div&gt;
      &lt;div&gt;import org.w3c.dom.Node;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;public class NodeVariableTestCase extends TestCase {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;@Test public void 
      testFunctionCall() throws Throwable {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;// Initialize DOM objects&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocumentBuilderFactory dfactory = 
      DocumentBuilderFactory.newInstance();&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;dfactory.setNamespaceAware(true);&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocumentBuilder docBuilder = 
      dfactory.newDocumentBuilder();&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Document doc = 
      docBuilder.newDocument();&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final Node node = 
      doc.createElement(&amp;quot;Y&amp;quot;);&amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Initialize XPath&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.setProperty(&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;&amp;quot;javax.xml.xpath.XPathFactory:&amp;quot; + 
      NamespaceConstant.OBJECT_MODEL_SAXON,&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;&amp;quot;net.sf.saxon.xpath.XPathFactoryImpl&amp;quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPathFactory xpf = 
      XPathFactory.newInstance(NamespaceConstant.OBJECT_MODEL_SAXON);&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPath xpe = xpf.newXPath();&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Initialize various 
resolvers&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setXPathVariableResolver(new 
      XPathVariableResolver() {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;public Object 
      resolveVariable(QName variableName) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;if 
      (&amp;quot;Y&amp;quot;.equals(variableName.getLocalPart())) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return node;&amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setXPathFunctionResolver(new 
      XPathFunctionResolver() {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;public XPathFunction resolveFunction(QName functionName, int arity) 
      {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;if (&amp;quot;X&amp;quot;.equals(functionName.getLocalPart())) {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;return new XPathFunction() {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;public Object evaluate(List 
      args)&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;throws XPathFunctionException 
      {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;if (args.size() == 1) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;if (args.get(0) instanceof 
      Node) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return args.get(0);&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;};&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; 
      &lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xpe.setNamespaceContext(new 
      NamespaceContext() {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public String 
      getNamespaceURI(String prefix) {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if 
      (prefix.equals(&amp;quot;saxon&amp;quot;)) {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;return &amp;quot;&lt;a 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;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else 
      {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;if (prefix.equals(&amp;quot;tns&amp;quot;)) {&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;return &amp;quot;&lt;a href=&quot;http://my.org.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://my.org.com/&lt;/a&gt;&amp;quot;;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;} else&amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; 
      &amp;nbsp;public String getPrefix(String uri) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public 
      Iterator getPrefixes(String uri) {&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;return null;&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compile&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XPathExpression expr =&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
      &amp;nbsp;xpe.compile(&amp;quot;tns:X($Y)&amp;quot;);&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Execute&lt;/div&gt;
      &lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Node result = (Node) 
      expr.evaluate(doc, XPathConstants.NODESET);&lt;/div&gt;
      &lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
      &lt;div&gt;}&lt;/div&gt;
      &lt;div&gt;&lt;br&gt;&lt;/div&gt;Best Regards,&lt;br&gt;Karthick 
    Sankarachary&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19870169&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://www.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://www.nabble.com/Passing-Nodes-To-XPath-Functions-tp19438262p19870169.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19860323</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T08:04:26Z</published>
	<updated>2008-10-07T08:04:26Z</updated>
	<author>
		<name>andrew welch</name>
	</author>
	<content type="html">&amp;gt;&amp;gt; Output must be:
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;font color=&amp;quot;#FEFEFE&amp;quot; style=&amp;quot;color:#FEFEFE;font-size:11px;&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; size=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;This is a text&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I understand correctly, this is to generate HTML that displays
&lt;br&gt;&amp;gt; XML (or HTML). If so, the included XSL might be helpful for a start.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Have a look at Oliver Becker's &amp;quot;XML Verbatim&amp;quot; stylesheet:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www2.informatik.hu-berlin.de/~obecker/XSLT/#xmlverbatim&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www2.informatik.hu-berlin.de/~obecker/XSLT/#xmlverbatim&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Welch
&lt;br&gt;&lt;a href=&quot;http://andrewjwelch.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://andrewjwelch.com&lt;/a&gt;&lt;br&gt;Kernow: &lt;a href=&quot;http://kernowforsaxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kernowforsaxon.sf.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19860323&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19860323.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856140</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T03:58:36Z</published>
	<updated>2008-10-07T03:58:36Z</updated>
	<author>
		<name>Michael Ludwig-4</name>
	</author>
	<content type="html">walterbt schrieb:
&lt;br&gt;&amp;gt; andrew welch wrote:
&lt;br&gt;&amp;gt;&amp;gt; Out of interest, what is the problem where CDATA sections and d-o-e
&lt;br&gt;&amp;gt;&amp;gt; are the answer?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is a XML/CSS to HTML wrapper.
&lt;br&gt;&lt;br&gt;&amp;gt; Output must be:
&lt;br&gt;&amp;gt; &amp;lt;font color=&amp;quot;#FEFEFE&amp;quot; style=&amp;quot;color:#FEFEFE;font-size:11px;&amp;quot;
&lt;br&gt;&amp;gt; size=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;This is a text&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;
&lt;br&gt;&lt;br&gt;If I understand correctly, this is to generate HTML that displays
&lt;br&gt;XML (or HTML). If so, the included XSL might be helpful for a start.
&lt;br&gt;&lt;br&gt;If this is not the best way to do this sort of thing in 2.0 (or even
&lt;br&gt;1.0, for that matter), I'd be glad to learn how to do it properly.
&lt;br&gt;&lt;br&gt;Michael Ludwig
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:stylesheet version=&amp;quot;1.0&amp;quot;
&lt;br&gt;&amp;nbsp; &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;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;/&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;pre&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:apply-templates select=&amp;quot;*&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/pre&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;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;*[node()]&amp;quot;&amp;gt;&amp;lt;!-- element with children --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;lt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;name()&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:apply-templates select=&amp;quot;@*&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:apply-templates select=&amp;quot;node()&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;lt;/&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;name()&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;*&amp;quot;&amp;gt;&amp;lt;!-- element without children --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;lt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;name()&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:apply-templates select=&amp;quot;@*&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;/&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;@*&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt; &amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;name()&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;=&amp;quot;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&amp;quot;.&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:text&amp;gt;&amp;quot;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;/xsl:stylesheet&amp;gt;
&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856140&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19856140.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19855274</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T03:09:47Z</published>
	<updated>2008-10-07T03:09:47Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; &amp;lt;xsl:template match=&amp;quot;style&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;xsl:param name=&amp;quot;content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xsl:if test=&amp;quot;@font-weight='bold'&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xsl:if test=&amp;quot;@link-vertical-align='top'&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;sup&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy-of select=&amp;quot;$content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xsl:if 
&lt;br&gt;&amp;gt; test=&amp;quot;@link-text-decoration='line-through'&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;/strike&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xsl:if test=&amp;quot;@font-weight='bold'&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsl:template&amp;gt;
&lt;/div&gt;&lt;br&gt;I'm having trouble relating this to the output you said you wanted, and
&lt;br&gt;trouble seeing why you are generating a &amp;lt;sup&amp;gt; start tag but a &amp;lt;/strike&amp;gt; end
&lt;br&gt;tag. Let alone going to a great deal of effort to output nothing in the case
&lt;br&gt;of font-weight='bold'.
&lt;br&gt;&lt;br&gt;But the clean way to handle this situation is with a set of template rules
&lt;br&gt;like this:
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;style[@font-weight='bold']&amp;quot; priority=&amp;quot;10&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;b&amp;gt;&amp;lt;xsl:next-match/&amp;gt;&amp;lt;/b&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;style[@link-vertical-align='top']&amp;quot; priority=&amp;quot;9&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;sup&amp;gt;&amp;lt;xsl:next-match/&amp;gt;&amp;lt;/sup&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;style[@link-text-decoration='line-through']&amp;quot;
&lt;br&gt;priority=&amp;quot;8&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;strike&amp;gt;&amp;lt;xsl:next-match/&amp;gt;&amp;lt;/strike&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;style&amp;quot; priority=&amp;quot;7&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;xsl:apply-templates/&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;It doesn't suggest to me that d-o-e is justified. But I might have
&lt;br&gt;misunderstood - your explanation is rather confusing.
&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;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19855274&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19855274.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19855069</id>
	<title>Re: Saxon 9.0.0.2J from Saxonica overwrite incaseaskingwith doc-available before</title>
	<published>2008-10-07T02:55:28Z</published>
	<updated>2008-10-07T02:55:28Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; When doc-available() returns false, it leaves no record that 
&lt;br&gt;&amp;gt; it was called; there is therefore no guarantee that 
&lt;br&gt;&amp;gt; subsequent calls on doc-available() with the same argument 
&lt;br&gt;&amp;gt; will again return false (that is, the function is not stable 
&lt;br&gt;&amp;gt; in this case). Equally, there is nothing to stop 
&lt;br&gt;&amp;gt; xsl:result-document being called to create the resource that 
&lt;br&gt;&amp;gt; was found to be non-existent.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;A slight change to the design: after doc-available(X) returns false, a
&lt;br&gt;subsequent call on doc(X) will always now fail, and a subsequent call on
&lt;br&gt;doc-available(X) will return false. However a call on &amp;lt;xsl:result-document
&lt;br&gt;href=&amp;quot;X&amp;quot;/&amp;gt; is allowed: you can create the document, but it will not become
&lt;br&gt;available for use within the transformation.
&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;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19855069&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://www.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://www.nabble.com/Saxon-9.0.0.2J-from-Saxonica-overwrite-in-case-asking-with-doc-available-before-tp19631595p19855069.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19854938</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T01:50:35Z</published>
	<updated>2008-10-07T01:50:35Z</updated>
	<author>
		<name>David Carlisle</name>
	</author>
	<content type="html">&lt;br&gt;You've completely failed to explain your problem.
&lt;br&gt;&lt;br&gt;You say
&lt;br&gt;&lt;br&gt;&amp;nbsp; Output must be:
&lt;br&gt;&amp;nbsp; &amp;lt;font color=
&lt;br&gt;&lt;br&gt;that is you want escaped markup as output, in which case there is no
&lt;br&gt;problem at all you _want_ escaping so you do not want to use
&lt;br&gt;disable-output-escaping as that stops that happening.
&lt;br&gt;&lt;br&gt;As has benn explained you can not use d-o-e in teh context that you want
&lt;br&gt;it, but if it had had any effect then you would have got
&lt;br&gt;&lt;br&gt;&amp;lt;font
&lt;br&gt;&lt;br&gt;ie element markup, which is not what you say you wanted.
&lt;br&gt;&lt;br&gt;Your sample code is just weird.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;@font-weight='bold'&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&lt;br&gt;is a no-op, whether the test is true or false, nothing will be generated
&lt;br&gt;in teh result tree, quite likely the enttire expression is removed by
&lt;br&gt;optimisation rewrites.
&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;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19854938&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19854938.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19853888</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T01:43:54Z</published>
	<updated>2008-10-07T01:43:54Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; I thought it is a saxon specific problem because it works 
&lt;br&gt;&amp;gt; using Xalan2.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;There's a history to this.
&lt;br&gt;&lt;br&gt;XSLT 1.0 as originally published says:
&lt;br&gt;&lt;br&gt;&amp;quot;It is an error for output escaping to be disabled for a text node that is
&lt;br&gt;used for something other than a text node in the result tree. &amp;quot;
&lt;br&gt;&lt;br&gt;Note this concept of &amp;quot;the result tree&amp;quot; - XSLT 1.0 is based very much on the
&lt;br&gt;idea that there is a single result tree. Many vendors, not all, interpreted
&lt;br&gt;this to mean that it was an error to use d-o-e when writing a text node to a
&lt;br&gt;result tree fragment.
&lt;br&gt;&lt;br&gt;Erratum E2, however changed this, and stated explicitly that you could use
&lt;br&gt;d-o-e when writing to a variable containing a result tree fragment. This was
&lt;br&gt;known in the WG as the &amp;quot;sticky d-o-e&amp;quot; debate: specifically, d-o-e is
&lt;br&gt;effectively a boolean attribute attached to each character in a result tree
&lt;br&gt;fragment, which stays with it when the fragment is copied.
&lt;br&gt;&lt;br&gt;This change caused a lot of grief when it came to defining XSLT 2.0, which
&lt;br&gt;abolished result tree fragments and turned them into fully-functional
&lt;br&gt;temporary trees. To preserve the stickiness of d-o-e, it would have been
&lt;br&gt;necessary to explicitly add this bit-per-character to the data model and
&lt;br&gt;explain how it was propagated through the wide range of operations that were
&lt;br&gt;now permitted on nodes in temporary trees.
&lt;br&gt;&lt;br&gt;In 2.0, d-o-e is deprecated, and processors are not required to implement it
&lt;br&gt;at all. Using d-o-e when writing to a variable is covered by this sentence:
&lt;br&gt;&lt;br&gt;&amp;quot;If output escaping is disabled for an xsl:value-of or xsl:text instruction
&lt;br&gt;evaluated when temporary output state is in effect, the request to disable
&lt;br&gt;output escaping is ignored.&amp;quot;
&lt;br&gt;&lt;br&gt;(Temporary output state is in force when evaluating variables or functions
&lt;br&gt;and in other similar situations).
&lt;br&gt;&lt;br&gt;This is specifically listed as a known incompatibility: clause 20 of J.1.4
&lt;br&gt;states:
&lt;br&gt;&lt;br&gt;&amp;quot;An erratum to XSLT 1.0 specified what has become known as &amp;quot;sticky
&lt;br&gt;disable-output-escaping&amp;quot;: specifically, that it should be possible to use
&lt;br&gt;disable-output-escaping when writing a node to a temporary tree, and that
&lt;br&gt;this information would be retained for use when the same node was later
&lt;br&gt;copied to a final result tree and serialized. XSLT 2.0 no longer specifies
&lt;br&gt;this behavior (though it permits it, at the discretion of the
&lt;br&gt;implementation).&amp;quot;
&lt;br&gt;&lt;br&gt;(But I think the final phrase in parentheses is incorrect: it does not
&lt;br&gt;permit it. Section 20.2 takes priority, because it is normative, whereas
&lt;br&gt;Appendix J is non-normative.)
&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;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19853888&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19853888.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19853757</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T01:40:02Z</published>
	<updated>2008-10-07T01:40:02Z</updated>
	<author>
		<name>walterbt</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;andrew welch wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Out of interest, what is the problem where CDATA sections and d-o-e
&lt;br&gt;are the answer?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
It is a XML/CSS to HTML wrapper.
&lt;br&gt;&lt;br&gt;I've following XML:
&lt;br&gt;&amp;lt;structure&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;container class=&amp;quot;abc&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;setting name=&amp;quot;abc&amp;quot; width=&amp;quot;500&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;style font-weight=&amp;quot;bold&amp;quot; color=&amp;quot;#FEFEFE&amp;quot; font-size=&amp;quot;11&amp;quot; text-decoration=&amp;quot;underline&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;text&amp;gt;This &amp;lt;i&amp;gt;is&amp;lt;/i&amp;gt; a text&amp;lt;/text&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/content&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... nested containers with other styles and other text ...
&lt;br&gt;&amp;nbsp;&amp;lt;/container&amp;gt;
&lt;br&gt;&amp;nbsp;... other containers ...
&lt;br&gt;&amp;lt;/structure&amp;gt;
&lt;br&gt;&lt;br&gt;Output must be:
&lt;br&gt;&amp;lt;font color=&amp;quot;#FEFEFE&amp;quot; style=&amp;quot;color:#FEFEFE;font-size:11px;&amp;quot; size=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;This is a text&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;
&lt;br&gt;&lt;br&gt;Because I'am not allowed to use font-weight:bold; and text-decoration:underline as CSS. At the end, the output must be placed in a table-column
&lt;br&gt;&lt;br&gt;&amp;lt;table width=&amp;quot;500&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;font color=&amp;quot;#FEFEFE&amp;quot; style=&amp;quot;color:#FEFEFE;font-size:11px;&amp;quot; size=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;This &amp;lt;i&amp;gt;is&amp;lt;/i&amp;gt; a text&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here are some xsl-parts:
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;container&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:apply-templates select=&amp;quot;setting&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:with-param name=&amp;quot;content&amp;quot;&amp;gt;&amp;lt;xsl:apply-templates select=&amp;quot;content | container&amp;quot;/&amp;gt;&amp;lt;/xsl:with-param&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsl:apply-templates&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;setting&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:param name=&amp;quot;content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;table width=&amp;quot;500&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy-of select=&amp;quot;$content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;text&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsl:apply-templates select=&amp;quot;../style&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:with-param name=&amp;quot;content&amp;quot;&amp;gt;&amp;lt;xsl:apply-templates/&amp;gt;&amp;lt;/xsl:with-param&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsl:apply-templates&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:template match=&amp;quot;style&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsl:param name=&amp;quot;content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;@font-weight='bold'&amp;quot;&amp;gt;&amp;lt;xsl:text disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&lt;b&gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;@link-vertical-align='top'&amp;quot;&amp;gt;&amp;lt;xsl:text disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;sup&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy-of select=&amp;quot;$content&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;@link-text-decoration='line-through'&amp;quot;&amp;gt;&amp;lt;xsl:text disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;/strike&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:if test=&amp;quot;@font-weight='bold'&amp;quot;&amp;gt;&amp;lt;xsl:text disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&lt;/b&gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:if&amp;gt;
&lt;br&gt;&amp;lt;/xsl:template&amp;gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19853757.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19852931</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T00:44:14Z</published>
	<updated>2008-10-07T00:44:14Z</updated>
	<author>
		<name>andrew welch</name>
	</author>
	<content type="html">&amp;gt;&amp;gt; Using disable-output-escaping means either that you are an expert tackling
&lt;br&gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt; very unusual and difficult problem, or that you are a beginner who hasn't
&lt;br&gt;&amp;gt;&amp;gt; yet worked out how to use the language properly.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm an expert. As I wrote I have this problem in another context where I
&lt;br&gt;&amp;gt; have to use CDATA and disable-output-escaping.
&lt;br&gt;&lt;br&gt;Out of interest, what is the problem where CDATA sections and d-o-e
&lt;br&gt;are the answer?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Welch
&lt;br&gt;&lt;a href=&quot;http://andrewjwelch.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://andrewjwelch.com&lt;/a&gt;&lt;br&gt;Kernow: &lt;a href=&quot;http://kernowforsaxon.sf.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kernowforsaxon.sf.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19852931&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19852931.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19852419</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-07T00:17:35Z</published>
	<updated>2008-10-07T00:17:35Z</updated>
	<author>
		<name>walterbt</name>
	</author>
	<content type="html">I thought it is a saxon specific problem because it works using Xalan2.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Kay wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Using disable-output-escaping means either that you are an expert tackling a
&lt;br&gt;very unusual and difficult problem, or that you are a beginner who hasn't
&lt;br&gt;yet worked out how to use the language properly. 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I'm an expert. As I wrote I have this problem in another context where I have to use CDATA and disable-output-escaping.
&lt;br&gt;&lt;br&gt;Thx, Walter&lt;p&gt;From forum: &lt;a href=&quot;http://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19852419.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19847965</id>
	<title>Re: Saxon 9.0.0.2J from Saxonica overwrite in caseaskingwith doc-available before</title>
	<published>2008-10-06T15:39:48Z</published>
	<updated>2008-10-06T15:39:48Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">I've looked into this.
&lt;br&gt;&lt;br&gt;When doc-available() returns false, it leaves no record that it was called;
&lt;br&gt;there is therefore no guarantee that subsequent calls on doc-available()
&lt;br&gt;with the same argument will again return false (that is, the function is not
&lt;br&gt;stable in this case). Equally, there is nothing to stop xsl:result-document
&lt;br&gt;being called to create the resource that was found to be non-existent.
&lt;br&gt;&lt;br&gt;I'm fixing this for a future release, but I will leave it as it is for the
&lt;br&gt;9.1 branch.
&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;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Michael Kay [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19847965&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 23 September 2008 23:08
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19847965&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jim.robinson@...&lt;/a&gt;; 'Mailing list for the SAXON 
&lt;br&gt;&amp;gt; XSLT and XQuery processor'
&lt;br&gt;&amp;gt; Subject: Re: [saxon] Saxon 9.0.0.2J from Saxonica overwrite 
&lt;br&gt;&amp;gt; in caseaskingwith doc-available before
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I was just looking into this because some folks in my dept 
&lt;br&gt;&amp;gt; have been 
&lt;br&gt;&amp;gt; &amp;gt; using what appears to be a sneaky and fragile way to handle 
&lt;br&gt;&amp;gt; caching... &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; They've got a URI Resolver which can cache/resolve trees, and are 
&lt;br&gt;&amp;gt; &amp;gt; calling it like:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;lt;xsl:choose&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:when test=&amp;quot;doc-available($cache-uri)&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:sequence select=&amp;quot;doc($cache-uri)&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:when&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:otherwise&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:variable name=&amp;quot;result&amp;quot; type=&amp;quot;element()&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... build the result ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:variable&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:result-document href=&amp;quot;{$cache-uri}&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:sequence select=&amp;quot;$result&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:result-document&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:sequence select=&amp;quot;$result&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:otherwise&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;lt;/xsl:choose&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I was very surprised that this worked, I would have expected it to 
&lt;br&gt;&amp;gt; &amp;gt; give the same error as you are recieving.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, I would expect so too: assuming that cache-uri is an 
&lt;br&gt;&amp;gt; absolute URI, or that if relative, the base URI is the same 
&lt;br&gt;&amp;gt; in both cases. It's possible that there's a minor difference 
&lt;br&gt;&amp;gt; between the absolutization of the two URIs that causes them 
&lt;br&gt;&amp;gt; not to compare equal, for example &amp;quot;file:/&amp;quot; versus &amp;quot;file:///&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you want to circumvent the safety checks defined in the 
&lt;br&gt;&amp;gt; spec, you can often achieve it by taking advantage of the 
&lt;br&gt;&amp;gt; fact that different URIs can refer to the same resource on disc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Kay
&lt;br&gt;&amp;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;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; -----------
&lt;br&gt;&amp;gt; This SF.Net email is sponsored by the Moblin Your Move 
&lt;br&gt;&amp;gt; Developer's challenge Build the coolest Linux based 
&lt;br&gt;&amp;gt; applications with Moblin SDK &amp; win great prizes Grand prize 
&lt;br&gt;&amp;gt; is a trip for two to an Open Source event anywhere in the 
&lt;br&gt;&amp;gt; world &lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&lt;/a&gt;&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19847965&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;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19847965&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://www.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://www.nabble.com/Saxon-9.0.0.2J-from-Saxonica-overwrite-in-case-asking-with-doc-available-before-tp19631595p19847965.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19841611</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-06T09:03:19Z</published>
	<updated>2008-10-06T09:03:19Z</updated>
	<author>
		<name>Michael Kay</name>
	</author>
	<content type="html">&lt;br&gt;This list is for issues that are specific to Saxon. You're asking for XSLT
&lt;br&gt;coding help, which is better done on the xsl-list at mulberrytech.com
&lt;br&gt;&lt;br&gt;disable-output-escaping has no effect unless the text nodes you are creating
&lt;br&gt;are passed directly to the serializer, because escaping is something that
&lt;br&gt;the serializer does. When variables are created, you are constructing nodes
&lt;br&gt;in a tree; no escaping is done, and therefore there is nothing to disable.
&lt;br&gt;&lt;br&gt;Why are you trying to do it this way? What's wrong with
&lt;br&gt;&lt;br&gt;&amp;lt;xsl:variable name=&amp;quot;test&amp;quot;&amp;gt;&amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt;&amp;lt;/xsl:variable&amp;gt;
&lt;br&gt;&lt;br&gt;?
&lt;br&gt;&lt;br&gt;Using disable-output-escaping means either that you are an expert tackling a
&lt;br&gt;very unusual and difficult problem, or that you are a beginner who hasn't
&lt;br&gt;yet worked out how to use the language properly. So it might be best (on
&lt;br&gt;xsl-list, please, not here) to explain the problem you are trying to solve,
&lt;br&gt;and find out the proper way to tackle it.
&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;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: walterbt [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19841611&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guenstig-und-gut@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: 06 October 2008 16:43
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19841611&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] xsl:copy and disable-output-escaping
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm using Saxon-B 9.0.0.6. I've following XSL-Template
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xsl:stylesheet 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;gt; version=&amp;quot;2.0&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:variable name=&amp;quot;test&amp;quot;&amp;gt;&amp;lt;xsl:text 
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt;]]&amp;gt;&amp;lt;/xsl:
&lt;br&gt;&amp;gt; text&amp;gt;&amp;lt;/xsl:variable&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xsl:copy-of select=&amp;quot;$test&amp;quot;&amp;gt;&amp;lt;/xsl:copy-of&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsl:stylesheet&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The output of $test in any browser is &amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt; but I 
&lt;br&gt;&amp;gt; want that the number 5 is bold. If I only use &amp;lt;xsl:text 
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;gt; it works. Can somebody help me?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That's only a example which shall explain my problem. I know 
&lt;br&gt;&amp;gt; that I could write &amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt; without &amp;lt;xsl:text&amp;gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thx Walter
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ps: sorry for my bad english
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-t&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-t&lt;/a&gt;&lt;br&gt;&amp;gt; p19840509p19840509.html
&lt;br&gt;&amp;gt; Sent from the saxon-help mailing list archive at Nabble.com.
&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; This SF.Net email is sponsored by the Moblin Your Move 
&lt;br&gt;&amp;gt; Developer's challenge
&lt;br&gt;&amp;gt; Build the coolest Linux based applications with Moblin SDK &amp; 
&lt;br&gt;&amp;gt; win great prizes
&lt;br&gt;&amp;gt; Grand prize is a trip for two to an Open Source event 
&lt;br&gt;&amp;gt; anywhere in the world
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19841611&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;This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
&lt;br&gt;Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
&lt;br&gt;Grand prize is a trip for two to an Open Source event anywhere in the world
&lt;br&gt;&lt;a href=&quot;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/&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://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19841611&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://www.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://www.nabble.com/xsl%3Acopy-and-disable-output-escaping-tp19840509p19841611.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19840819</id>
	<title>Re: xsl:copy and disable-output-escaping</title>
	<published>2008-10-06T08:57:46Z</published>
	<updated>2008-10-06T08:57:46Z</updated>
	<author>
		<name>andrew welch</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; I'm using Saxon-B 9.0.0.6. I've following XSL-Template
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xsl:stylesheet 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;gt; version=&amp;quot;2.0&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:variable name=&amp;quot;test&amp;quot;&amp;gt;&amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;&amp;lt;/xsl:variable&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsl:copy-of select=&amp;quot;$test&amp;quot;&amp;gt;&amp;lt;/xsl:copy-of&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsl:stylesheet&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The output of $test in any browser is &amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt; but I want that the
&lt;br&gt;&amp;gt; number 5 is bold. If I only use
&lt;br&gt;&amp;gt; &amp;lt;xsl:text
&lt;br&gt;&amp;gt; disable-output-escaping=&amp;quot;yes&amp;quot;&amp;gt;&amp;lt;![CDATA[&amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt;]]&amp;gt;&amp;lt;/xsl:text&amp;gt;
&lt;br&gt;&amp;gt; it works. Can somebody help me?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's only a example which shall explain my problem. I know that I could
&lt;br&gt;&amp;gt; write &amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt; without &amp;lt;xsl: