RE: XInclude and xml:lang

2012-10-10 Thread David Lee
Wednesday, October 10, 2012 9:40 AM To: j-users@xerces.apache.org Subject: RE: XInclude and xml:lang I have not understand why I obtain , like this : http://www.w3.org/2001/XInclude";> It's no very logic. For example, with XPath, //bar/xml:lang return something like this : &q

RE: XInclude and xml:lang

2012-10-10 Thread polymorphisme
I have not understand why I obtain , like this : http://www.w3.org/2001/XInclude";> It's no very logic. For example, with XPath, //bar/xml:lang return something like this : ""; so what in fact, the langage's bar is "fr". Why I haven't or can't obtain something like this : http://www.w3.

RE: XInclude and xml:lang

2012-10-09 Thread David Lee
On which element did you get xml:lang="" David A. Lee d...@calldei.com http://www.xmlsh.org -Original Message- From: polymorphisme [mailto:webmas...@polymorphisme.org] Sent: Tuesday, October 09, 2012 2:23 PM To: j-users@xerces.apache.org Subject:

Re: XInclude and XPointer

2009-03-31 Thread Michael Ludwig
Michael Glavassevich schrieb am 31.03.2009 um 10:09:01 (-0400): > Michael Ludwig wrote on 03/28/2009 12:39:14 PM: > > > Gareth Western schrieb am 02.02.2009 um 22:20:40 (+): > > > Hi, > > > > > > I have an application which uses Xerces-J (2.9.0) to parse a large > > > xml document which I'd l

Re: XInclude and XPointer

2009-03-31 Thread Michael Glavassevich
Hi Michael, Michael Ludwig wrote on 03/28/2009 12:39:14 PM: > Gareth Western schrieb am 02.02.2009 um 22:20:40 (+): > > Hi, > > > > I have an application which uses Xerces-J (2.9.0) to parse a large xml > > document which I'd like to split into several smaller files just to > > make it easie

Re: XInclude and XPointer

2009-03-28 Thread Michael Ludwig
Gareth Western schrieb am 02.02.2009 um 22:20:40 (+): > Hi, > > I have an application which uses Xerces-J (2.9.0) to parse a large xml > document which I'd like to split into several smaller files just to > make it easier to manage. > The schema prevents me from including the entire inner fil

Re: XInclude and XPointer

2009-02-04 Thread Michael Glavassevich
Hi Gareth, Gareth Western wrote on 02/04/2009 03:27:02 PM: > Oh, I spoke too soon. From [1]: "XOM supports XInclude including the > XPointer element() scheme and bare name XPointers. It does not support > the XPointer xpointer() scheme." Which I guess means it's in the same > boat as Xerces with

Re: XInclude and XPointer

2009-02-04 Thread Gareth Western
Oop. Forgot to reference my [1] in the other email. It's the XOM Tutorial @ http://www.xom.nu/tutorial.xhtml#d0e1992 On Wed, Feb 4, 2009 at 8:27 PM, Gareth Western wrote: > Oh, I spoke too soon. From [1]: "XOM supports XInclude including the > XPointer element() scheme and bare name XPointers. It

Re: XInclude and XPointer

2009-02-04 Thread Gareth Western
Oh, I spoke too soon. From [1]: "XOM supports XInclude including the XPointer element() scheme and bare name XPointers. It does not support the XPointer xpointer() scheme." Which I guess means it's in the same boat as Xerces with respect to what's supported. Perhaps I'm going about this the wrong

Re: XInclude and XPointer

2009-02-04 Thread Gareth Western
Michael: XOM looks like it might be what I'm looking for. I originally tried to use the old XIncluder project from sourceforge[1] until I realised I'd probably need to use XPointers (which XIncluder does not support either). Joseph: I had considered that, but the situation is already complex enoug

Re: XInclude and XPointer

2009-02-03 Thread keshlam
> If you need support for other kinds of XPointers then you may want to > take a look on the net at some of the other XInclude processors that > are available. e.g. perhaps XOM [4] supports what you're looking for. Another quick idea: It's possible to implement an XInclude subset as an XSLT styl

Re: XInclude and XPointer

2009-02-03 Thread Michael Glavassevich
Hi Gareth, As you've noticed from the FAQ, Xerces' support for XPointer in XInclude is limited to the XPointer Framework [1] and XPointer element() scheme [2]. This is the minimum support [3] required for a conforming XInclude processor. There has been no discussion on expanding/enhancing the XPo

Re: XInclude with unorthodox tags.

2008-09-27 Thread keshlam
> XInclude support in Xerces is only available as a parsing feature. > If there is some processing you need to do prior to XInclude you > need to serialize the document (after you've done your > preprocessing) and then feed it back to the parser. Alternatively, do the processing and then implem

Re: XInclude with unorthodox tags.

2008-09-26 Thread Michael Glavassevich
Hi Olivier, XInclude support in Xerces is only available as a parsing feature. If there is some processing you need to do prior to XInclude you need to serialize the document (after you've done your preprocessing) and then feed it back to the parser. Thanks. Michael Glavassevich XML Parser Deve

Re: XInclude with Schemas

2008-05-19 Thread Michael Glavassevich
Hi Richard, There are currently no plans to further enhance the XInclude implementation in Xerces. I recall one of the issues with schema-determined IDs [1] is that in order to support them we may have to buffer portions of or the entire document in memory before being able to determine than an X

Re: Xinclude

2008-03-17 Thread Michael Glavassevich
Hi Lars, There are plenty of hex editors around. Take your pick: http://en.wikipedia.org/wiki/Comparison_of_hex_editors. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Lars Vogel" <[EMAIL PROTECTED]> wrote on 03/12/2008 1

Re: Xinclude

2008-03-12 Thread Lars Vogel
Hi Michael, Thank you for your response and explanation. I will then try to filter these special signs ( ) out via an XSLT transformation or via a small Java program. To your question:No, I didn't look at the byte sequence. How can I do this (under MS Windows)? Best regards, Lars 2008/3/12, Mi

Re: Xinclude

2008-03-12 Thread Michael Glavassevich
Hi Lars, When you say both files look the same have you actually taken a look at the byte sequences? If you have you'll see that there are sequences of OD OA (CR LF) all over the place in JavaScript.java. The XInclude processor is doing what it's supposed to do: literally including every character

Re: Xinclude

2008-03-03 Thread Lars Vogel
Hi Michael, so there is no way to avoid this? Best regards, Lars 2008/3/4, Michael Glavassevich <[EMAIL PROTECTED]>: > > Lars' example is doing text inclusion: > > > http://www.w3.org/2001/XInclude"; parse="text" > href="JavaScript.java"/> > > > so the XML 1.0 rules for end-of-line normalization

Re: Xinclude

2008-03-03 Thread Michael Glavassevich
Lars' example is doing text inclusion: http://www.w3.org/2001/XInclude"; parse="text" href="JavaScript.java"/> so the XML 1.0 rules for end-of-line normalization don't apply here. The text in "JavaScript.java" is literally included in the document. That includes any carriage returns. A serializer

Re: Xinclude

2008-03-03 Thread keshlam
is the carriage return character. Some systems use the sequence to break lines (MS systems among others); some just use (Unix systems, among others), and there are a few rare cases that use something else. XML parsers are able to tolerate any of these on input and will convert them all into

Re: xinclude and xml:base

2007-10-13 Thread Michael Glavassevich
Hi Stuart, Most likely you've run into this bug [1]. It hasn't been fixed yet. Thanks. [1] http://issues.apache.org/jira/browse/XERCESJ-1102 Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Stuart Norton" <[EMAIL PROTECTED]> wrote

Re: XInclude and entities

2007-09-19 Thread Michael Glavassevich
Hi Stuart, "Stuart Norton" <[EMAIL PROTECTED]> wrote on 09/19/2007 04:57:18 PM: > I have a question about how Xerces handles text entities when they > are defined in both the parent and child of XInclusion. Are text > entities supposed to be expanded before or after XIncludes are > inserted in t

Re: xinclude: xpointer needed when href absent

2007-01-06 Thread Stanimir Stamenkov
/flyboy/: Seems to me, that this should pass schema validation, where xmlns:xi=''http://www.w3.org/2001/XInclude"; Instead, xerces-j 2.9.0 schema validation gives: 'xpointer attribute must be present when href attribute is absent.' This passes schema validation, but its not valid against th

Re: xinclude ?

2006-09-11 Thread Benjamin Armintor
Michael Glavassevich ca.ibm.com> writes: > > Paul Tomsic yahoo.com> wrote on 08/08/2006 06:37:39 PM: > > > i'm trying to set up xinclude support while validating > > a XML doc against it's XSD. > > > > neither the javax.xml.validation.Validator nor the > > SchemaFactory (in jdk 1.4) support t

Re: XInclude + relative uri problem

2006-08-17 Thread Stanimir Stamenkov
/Dominic Brügger/: Where can I set the system ID for the XML file used as input for the transformation? There's a |Source.systemId| [1] property. You could set the SAX |InputSource.systemId| as well as you never know when it might be needed. public void processXSLT(String inFile, String[]

Re: XInclude + relative uri problem

2006-08-16 Thread Dominic Brügger
Michael Glavassevich wrote: Dominic Brügger <[EMAIL PROTECTED]> wrote on 08/16/2006 07:56:19 AM: How can I set up sax to resolve the include relative to the initial xml file? Relative URIs require a context for resolution. If you're passing the parser an InputSource you need to set the syst

Re: XInclude + relative uri problem

2006-08-16 Thread Michael Glavassevich
Dominic Brügger <[EMAIL PROTECTED]> wrote on 08/16/2006 07:56:19 AM: > I have set up sax (I'm using Xerces 2.8) to be XInclude aware. It works > when using an absolute uri but with a relative uri i get the following > exception: > > org.xml.sax.SAXParseException: Include operation failed, rever

Re: xinclude ?

2006-08-08 Thread Michael Glavassevich
Paul Tomsic <[EMAIL PROTECTED]> wrote on 08/08/2006 06:37:39 PM: > i'm trying to set up xinclude support while validating > a XML doc against it's XSD. > > neither the javax.xml.validation.Validator nor the > SchemaFactory (in jdk 1.4) support the > "http://apache.org/xml/features/xinclude"; > >

Re: XInclude and LSResourceResolver problem.

2006-03-14 Thread Peter McCracken
Hello, Try setting the systemId on the LSInput by adding the line "ret.setSystemId(systemId);" to the resolveResource() method of TestResolver, just before the return statement. That solved the problem for me when I ran your test. Xerces' XIncludeHandler checks for recursive includes by doing

Re: XInclude reference property fixup in Xerces 2.7

2005-07-26 Thread Michael Glavassevich
Hi Jan, Jan Hackel <[EMAIL PROTECTED]> wrote on 07/25/2005 02:48:04 AM: > Hi Michael, > > thanks for the help. > > > For Xerces, references property fixup is a no-op. As far as I know, > > neither SAX or DOM have native support for this property, though the DOM > > specification [2] describ

Re: XInclude reference property fixup in Xerces 2.7

2005-07-24 Thread Jan Hackel
Hi Michael, thanks for the help. > For Xerces, references property fixup is a no-op. As far as I know, > neither SAX or DOM have native support for this property, though the DOM > specification [2] describes how it can be computed. I'm curious about how > you were expecting to access this info

Re: XInclude property fixup in Xerces 2.7

2005-07-21 Thread Michael Glavassevich
Hi Jan, Section 4.5.3 [1] describes fixup of the [references] property of an attribute information item. For IDREF/IDREFS the property contains an ordered list of element information items. Xerces provides no mechanism for accessing this property nor does it keep an internal representation. Fo

Re: XInclude unresloved xpointer starting with shorthand in element scheme data

2005-07-17 Thread Michael Glavassevich
Hi Gerrard, Gerrard Drury <[EMAIL PROTECTED]> wrote on 07/14/2005 04:27:17 AM: > Hi Michael, > > Thanks for your response and explanation. I guess this logically leads > to the next set of questions. > > 1. Is Xerces likely to consider adding support for this in the future? We kicked around a

Re: XInclude unresloved xpointer starting with shorthand in element scheme data

2005-07-14 Thread Gerrard Drury
Hi Michael, Thanks for your response and explanation. I guess this logically leads to the next set of questions. 1. Is Xerces likely to consider adding support for this in the future? 2. Do you have any advice for a workaround? While investigating this further, I also might have come across

Re: XInclude unresloved xpointer starting with shorthand in element scheme data

2005-07-13 Thread Michael Glavassevich
Hi Gerrard, The reason this isn't working for you is that in Xerces, schema validation is performed on the result infoset produced by the XInclude processor. (XInclude does not specify a processing order, so this was an implementation decision.) When the XPointer is processed it isn't known th