Re: str:encode-uri()

2006-01-21 Thread Mark Weaver
David Bertoni wrote: Ivan Bogouchev / Иван Богушев wrote: Hi David, 2005/9/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Tthanks for the reply, Dave, it that made the stylesheet work. Just one more question: what about the str:replace() function? It seems it is not implemented in xalan-c 1.9.

Re: EntityResolver and baseURI

2005-03-15 Thread Mark Weaver
[EMAIL PROTECTED] wrote: Hello, I am able to install my own EntityResolver using theXalanTransformer.setEntityResolver() and Xerces is invoking the customer EntityResolver's resolveEntity method. Is it possible to obtain the baseURI of the document (xml or xsd) in which this entity was

http://apache.mirrors.rossfell.co.uk/dist/xml/xalan-c/

2004-05-12 Thread Mark Weaver
This is one of the mirrors listed for the Xalan download -- tells me: Forbidden You don't have permission to access /dist/xml/xalan-c/Xalan-C_current-src.zip.sig on this server. (for all of the files). A random sampling of other mirrors seemed ok. Mark

RE: ProblemListener problem

2004-04-28 Thread Mark Weaver
> I'm trying to trap all errors produced by Xalan using a problem listener. > The problem is that this misses errors that get thrown as exceptions > sometimes. I _think_ but I'm not sure (this is only from experimentation) > that this only happens if an extension functions throws the error. > Gene

ProblemListener problem

2004-04-27 Thread Mark Weaver
I'm trying to trap all errors produced by Xalan using a problem listener. The problem is that this misses errors that get thrown as exceptions sometimes. I _think_ but I'm not sure (this is only from experimentation) that this only happens if an extension functions throws the error. Generally, the

RE: bug in XalanEXSLTFunctionDecodeURI::execute

2004-04-22 Thread Mark Weaver
> Hi Mark, > > Thanks for the patch. This defect was recently fixed and is available in > the latest CVS and will be in upcoming Xalan release. > Ah, I've got a stick tag for 1.7. Keep forgetting about that! Will check properly next time...

bug in XalanEXSLTFunctionDecodeURI::execute

2004-04-21 Thread Mark Weaver
in XalanEXST/XalanEXSLTString.cpp. if (byte2 & 0x80 == 0) ... There are a few of these. This comes out as: if (byte2 & (0x80 == 0)) if (byte2 & 0) if (0) which is presumably not was intended. The compiler picked this one up, not me :) cvs diff attached. XalanEXSLTString.cpp.patch Descripti

RE: getting the output method/encoding of a document after a transformation

2004-04-15 Thread Mark Weaver
> You can do this by compiling the stylesheet and querying that information. > The only caveat is that if there is no output method specified in the > stylesheet, and the initial element generated is "html", the > processor will > use the html method, rather than the xml method. So, perhaps we > c

RE: getting the output method/encoding of a document after a transformation

2004-04-15 Thread Mark Weaver
> One thing we could do would be to put another accessor on XalanTransformer > to return the actual encoding of the last transformation. If that sounds > reasonable to you, please file a bugzilla request for an enhancement. Yes, that's about the only reasonable way that I could think of. I'd like

getting the output method/encoding of a document after a transformation

2004-04-14 Thread Mark Weaver
Both of these pieces of information would be very useful to me as I'm squirting the output back from a webserver, and it would be ideal to add text/html, text/xml to the Content-Type: header, along with the appropriate charset parameter. getOutputEncoding does exist, but it is the pair to setOutpu

RE: rtree()->getNodesetRoot()

2004-04-14 Thread Mark Weaver
> "Mark Weaver" <[EMAIL PROTECTED]> wrote: > > > However, if I understand you code correctly, the following is the > > > equivalent of what you were doing before: > > > > > >theNodeList->addNode(&(*it).second->rtree()); > >

RE: rtree()->getNodesetRoot()

2004-04-08 Thread Mark Weaver
doesn't own any of the nodes and won't clean them up > when it's > destroyed. > Presumably then, clone is wrong because the clone won't be cleaned up? In that case, I'm kind of stuck! > Thanks! > > Dave > > > > |-+---

RE: Compiling Xalan 1.7 with .NET 2003

2004-04-08 Thread Mark Weaver
> > Hi, > > I am trying to compile Xalan 1.7 on .NET 2003. I have a couple of > questions: > > Is Xerces 2.5 the right version to use? > I am getting compilation errors as follows: > > ..\..\..\..\src\xalanc\PlatformSupport\XalanMessageLoader.hpp(67) : > fatal error C1083: Cannot open include file:

RE: rtree()->getNodesetRoot()

2004-04-08 Thread Mark Weaver
; Should the deep flag be set? Does the nodelist then own (and therefore ultimately cleanup) the cloned tree? Thanks, Mark > Dave > > > > |-+---> &g

rtree()->getNodesetRoot()

2004-04-07 Thread Mark Weaver
I've recently moved up to Xalan 1.7 and it seems that the getNodeSetRoot() function has disappeared from XalanDocumentFragment. This was used in one of my (nasty) extension functions that implements a dictionary. Basically, I'm trying to stick the RTF to a nodeset in the following code:

RE: [VOTE} Xalan 1.7 release plan

2003-12-12 Thread Mark Weaver
> Hi Mark, > > I apologize again for forgetting about this _again_. I wanted to > make some > changes so that it can be more flexible than it is, and also, I can't > really see the utility in having a dynamic result tree fragment > option when > node-sets are more powerful. Do you agree? Would i

RE: [VOTE} Xalan 1.7 release plan

2003-12-11 Thread Mark Weaver
> Subject: [VOTE} Xalan 1.7 release plan Any chance of my dynamic nodeset builder being added in?

RE: Begginer question: Xalan XObjectPtr and evaluate

2003-12-09 Thread Mark Weaver
> But for the second part of my question... > How can i know the xpath i'm evaluting has 'failed'? > It throws an exception (probably XPathException). I tend to do: catch (const XSLException &e) { e.defaultFormat(errorMessage); } where errorMessage is a XalanDOMString.

RE: Memory problems with Release version and a DLL

2003-10-08 Thread Mark Weaver
#include "extfnapi.h" This seems to be missing. > -Original Message- > From: David Fishburn [mailto:[EMAIL PROTECTED] > Sent: 08 October 2003 14:58 > To: xalan-c-users@xml.apache.org > Subject: Memory problems with Release version and a DLL > > > > Good Morning Dave. > > You reviewed

RE: Xalan-C 1.4 special character question

2003-09-05 Thread Mark Weaver
> > Hello, > > I forgot to remove the prefix TL. It is not the real problem however. > Regard it as: > > > ... > > ... > > What do you mean with: "the XML document snippet you provided contains an > illegal UTF-8 byte sequence" > It's still much easier if you provide a test case -- this means at

FW: Xalan-C 1.4 special character question

2003-09-05 Thread Mark Weaver
meant this to go here, bah... -Original Message- From: Mark Weaver [mailto:[EMAIL PROTECTED] Sent: 05 September 2003 14:40 To: Borislav Stoyanov Subject: RE: Xalan-C 1.4 special character question > ok,on Win2000 I have: > > in XML: > > > http://www.w3.org/2001/

gnomon 1.0 released

2003-08-29 Thread Mark Weaver
Hello, I'm pleased to announce the first public release of gnomon, which is offered under an open source license basically identical to that of Apache. Gnomon is an ISAPI extension that provides server side XSLT support to IIS. Gnomon is (of course!) based on Xalan-C. You can download binaries

RE: In Memory Schema

2003-07-30 Thread Mark Weaver
You could install an EntityResolver, and return a MemBufInputSource when your external location is matched. It's looking like I've got a case of when all you have is a hammer... ;) Mark -Original Message- From: Matthew Berry [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 10:08 To: xalan-c-

bug? assertion in XPath::findNodeSet

2003-07-30 Thread Mark Weaver
I've been fiddling around with docbook, and applying the XalanTransformerCallback sample (unmodified this time) to a simple document gives the following assertion: Assertion failed: subQueryResults.getDocumentOrder(), file \cvs\3rdparty\xml-xalan\c\src\XPath\XPath.cpp, line 3415. It's in XPath::f

RE: Xsl:include support - how to enable it?

2003-07-29 Thread Mark Weaver
mailto:[EMAIL PROTECTED] > Sent: 29 July 2003 16:05 > To: 'Mark Weaver'; xalan-c-users@xml.apache.org > Subject: RE: Xsl:include support - how to enable it? > > > > Right, but where (what directory), do I create this class in: > entity resolver class. > >

RE: Xsl:include support - how to enable it?

2003-07-28 Thread Mark Weaver
> After that, I am not sure how to enable the EntityResolver. > I am using the following sample that I have based everything on: > C:\OpenSrc\xalan\C\xml-xalan\c\samples\XalanTransformerCallback > > So I am not sure where I need to put the code to enable this. > I am putting it in my XalanTransfor

RE: Xsl:include support?

2003-07-18 Thread Mark Weaver
> > > Specifically: > > > > > > For Java Xalan, I had to create a XSLTURIResolver.java. > > When a xsl:include is found, the resolver tells xalan how to find the > > genericHead.xsl document. > > > > Is this supported in the C++ Xalan? > > I have looked around the C++ API docs, but it is quite d

RE: Best way to create a XalanNode inside an extension function

2003-04-28 Thread Mark Weaver
for the digression. > > Note: The XObjectPtr returned from the XPathEvaluator must be > cloned upon returning it from the > extension function (but you all know this kind of stuff already... :) > > Regards > /Rob > > > -Original Message- > > From: Mark Weaver

RE: Best way to create a XalanNode inside an extension function

2003-04-28 Thread Mark Weaver
t off, I may send some user-code > snippets for feedback. > > Emmanuel > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, April 25, 2003 8:38 AM > To: xalan-c-users@xml.apache.org > Subject: RE: Best way to create a XalanNode inside a

RE: using Xalan to parse an XML document.

2003-04-18 Thread Mark Weaver
That's because Xalan's source trees are read only. If you need to read/modify a source tree, using a Xerces document is probably the way to go. If you just need to build a document, you can use a FormatterToSourceTree and build with SAX events. > -Original Message- > From: Ashay Shende [

RE: how to resolve a PUBLIC DTD ?

2003-04-14 Thread Mark Weaver
An EntityResolver is correct. They aren't that hard, you only need to implement one function! An entity resolver is a Xerces object, but Xalan allows you to set them on various objects, notably the XalanTransformer if you are using that. Note that there is a problem (as I see it anyway) with Ent

RE: how document() resolves a relative path

2003-04-14 Thread Mark Weaver
Yes, that seems correct to me. URI imports should be resolved relative to the base URI. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Per Jessen > Sent: 14 April 2003 10:18 > To: xalan-c-users@xml.apache.org > Subject: how document() resolves a relative path > > >

RE: returning xml nodes from extensions functions

2003-04-03 Thread Mark Weaver
> Here is a CVS diff against the latest (intended to go into the > 1.6 dev try). With brain on... <>

RE: returning xml nodes from extensions functions

2003-04-03 Thread Mark Weaver
ons > > > > > > > Hi Jürgen, > > No, this did not make it in. > > Dave > > > > > > "Juergen > > Hermann" To: "Mark > Weaver" <[EMAIL PROTECTED]>

RE: problem with Xalan & XSLT

2003-03-31 Thread Mark Weaver
Try: http://exslt.org/common"; extension-element-prefixes="exsl" Then: select="exsl:node-set($listTitles)/li[$rowPos = @row]" Mark > -Original Message- > From: CP Hennessy [mailto:[EMAIL PROTECTED] > Sent: 30 March 2003 12:57 > To: xalan-c-users@xml.apache.org > Subject: probl

RE: Portability of XalanTransformer::CompiledStylesheet?

2003-03-26 Thread Mark Weaver
The transformer caches both sources and compiled stylesheets. You could get around this by having a global instance of the transformer and using both compiled stylesheets and sources from that (application permitting of course), or you could extract code from XalanTransformer, or copy/hack up the

RE: my naughty dictionary function

2003-03-25 Thread Mark Weaver
> This may just be some broken assumptions we're making in the Xalan code > about what's in a node-set, and whether or not it can always be ordered. > Another thing to remember about result tree fragments is they each must > have a separate owner document if they are going to be turned into a > nod

my naughty dictionary function

2003-03-22 Thread Mark Weaver
One of the changes I've noticed with 1.5 is that my naughty dictionary function is broken. This is a bad thing, because it's not XSLT like (i.e. not strictly functional), but it's very handy. Essentially it goes: class FunctionDictionary : public Function { virtual XObjectPtr exe

RE: RE: Upcoming Xalan-C++ 1.5 release

2003-03-22 Thread Mark Weaver
legacy documents, then send a patch with the change, or new > copies of the XalanParsedURI files. > > Thanks! > > Dave > > > > > > "Mark Weaver" > > <[EMAIL PROTECTED]

RE: RE: Upcoming Xalan-C++ 1.5 release

2003-03-21 Thread Mark Weaver
Relative URI references are distinguished from absolute URI in that > >they do not begin with a scheme name. Instead, the scheme > is inherited > >from the base URI, as described in Section 5.2" > > > > Unfortunately, it looks like the Java processors (which

RE: Upcoming Xalan-C++ 1.5 release

2003-03-20 Thread Mark Weaver
> Mark, can you make sure your patch is compatible with the latest CVS and > provide a CVS diff? Also, actual copies of the new source files > instead of > diffs (XalanParsedURI.cpp and XalanParsedURI.hpp) would be much easier to > deal with. > OK, the included zip is a cvs diff against the curren

RE: Upcoming Xalan-C++ 1.5 release

2003-03-19 Thread Mark Weaver
Whoops, looks like I've missed my opportunity to get the URI fixes in. In retrospect, I've finally gotten around to posting my patch for this: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16737 which has both the patch and a test application. It's against the 1.4 release, but will probably

RE: EXSLT

2003-03-04 Thread Mark Weaver
> Are there any examples of using EXSLT with XalanC? I can't find any in > the distribution. > > Incidentally, the 1.4 documentation says: > > * installExternalFunction() makes the function available in > the current instance of XalanTransformer. Use > uninstallExternalFunction() to remove the

RE: returning xml nodes from extensions functions

2003-02-02 Thread Mark Weaver
Hi David, OK, I finally something for you to look at. This is a patch against the Xalan 1.4 release to add support for returning nodesets and result tree fragments from extension functions. The hacked up ExternalFunction sample shows how this works. Roughly, things are as discussed, but I'll go

RE: returning xml nodes from extensions functions

2003-01-23 Thread Mark Weaver
> Hi Mark, > > It's good to hear back from you! > Yup, and sorry once again for the (vast) delays. Hopefully I'll be able to get this rounded off finally! > I think you've uncovered a bug in the code. There's no way an external > function should get a reference to the XPathExecutionContextDefaul

RE: returning xml nodes from extensions functions

2003-01-22 Thread Mark Weaver
Hi David. Well I realise this was back in October but (once again) I managed to run out of time on it (sadly, the way that the company works is as follows: do work on core stuff. Find someone who is willing to pay money. Immediately drop everything for money. Return to core stuff. Repeat until

RE: returning xml nodes from extensions functions

2002-11-07 Thread Mark Weaver
OK, one more stab before this gets somewhere ;) I'm happy with the two class/base class concept, i.e. class XalanDynamicBuilder { void reset()=0; ContentHandler *getContentHandler()=0; LexicalHandler *getLexicalHandler()=0; DocumentHandler *getDocumentHandler()=0

dom->dom transformation + returning xml nodes from extensions functions

2002-07-16 Thread Mark Weaver
Two unrelated questions. The first is that I would like to transform a DOM into a DOM, the reason for this is that there may be a number of stylesheets applied to a single input XML document, thus giving a general procedure: input --styleA--> DOM output #1 DOM output #1 --styleB--

RE: Coredump when using XalanTransformer.transform()

2001-10-30 Thread Mark Weaver
This is fixed in the Xerces 1.5.2 release, you might want to consider upgrading to that if you really need this support. However, Init/Term are not thread-safe (there is an open bug for this). Mark > -Original Message- > From: David_N_Bertoni@lotus.com [mailto:[EMAIL PROTECTED] > Sent: 3

regexp in xsl:value-of?

2001-10-25 Thread Mark Weaver
start would be great! Thanks, Mark > -Original Message- > From: Juergen Hermann [mailto:[EMAIL PROTECTED] > Sent: 24 October 2001 03:58 > To: Mark Weaver; Xalan-C-Users > Subject: Re: regexp in xsl:value-of? > > > On Wed, 24 Oct 2001 00:10:14 +0100, Mark Wea

regexp in xsl:value-of?

2001-10-23 Thread Mark Weaver
Hi, I'm currently in the process of shifting my company over from MSXML to Xalan. As part of this, some of them have (annoyingly) written stylesheets including VBspit. Most of these are easily replaced, but one of the things that they tried to do is thus: > The one thing javascript / vb access

RE: FW: XMLTransformer question

2001-10-12 Thread Mark Weaver
> I also keep my own (mutex protected) map of stylesheet path->compiled > > stylesheets; the stylesheet is effectively compiled & stored on > the first > > usage. Thread safety of STL containers is a bit of a pain, for maximum > > efficiency you need a multiple readers/single writer locking > mech

FW: XMLTransformer question

2001-10-11 Thread Mark Weaver
e compiled stylesheets and parsed source documents > directly, but you'll need to manage things. It's pretty > straightforward -- > just see the code in XalanTransformer::compileStylesheet() and > XalanTransformer::parseSource(). For information on cre

XMLTransformer question

2001-10-10 Thread Mark Weaver
smime.p7m Description: S/MIME encrypted message