Re: [dom4j-user] Entity substitution

2005-01-29 Thread Peter Stibrany
Hi, I had this problem few days ago. I simply wrote my own tiny DTD with entities and structure declaration. You can use internal DTD subset, like this: ]> your normal xml document, with &myent; and yet &another; entity... -Peter Stibrany Paul Dlug wrote: On Jan 29, 2005, at 12:55 PM, Edwin

Re: [dom4j-user] Entity substitution

2005-01-29 Thread Edwin Dankert
Would it be possible for you to overwrite the DocumentFactory createEntity() method and substitute them when they get created? Regards, Edwin --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source data

Re: [dom4j-user] Entity substitution

2005-01-29 Thread Paul Dlug
On Jan 29, 2005, at 12:55 PM, Edwin Dankert wrote: I'm not sure if I understand fully what you're trying to do? Could you give an example of an input and output document and maybe some code? Sure, example document: This is my test document This is some content with an entity here: &myent; The

Re: [dom4j-user] Entity substitution

2005-01-29 Thread Edwin Dankert
I'm not sure if I understand fully what you're trying to do? Could you give an example of an input and output document and maybe some code? Regards, Edwin --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for ope

Re: [dom4j-user] XPath problem with *

2005-01-29 Thread Edwin Dankert
> The XML is already as you stated it needed to be (i.e. > it uses '<' rather than '<'). Since the XPath > expression is not part of an XML document (e.g. an XSL > Stylesheet), I don't believe that it needs to be > escaped in the String that is the parameter to the > XPath constructor. In fact, i

Re: [dom4j-user] XPath problem with *

2005-01-29 Thread David P. Nesbitt
Edwin, Thanks very much for your response. The XML is already as you stated it needed to be (i.e. it uses '<' rather than '<'). Since the XPath expression is not part of an XML document (e.g. an XSL Stylesheet), I don't believe that it needs to be escaped in the String that is the parameter to t

[dom4j-user] Entity substitution

2005-01-29 Thread Paul Dlug
Does anyone have a good solution to doing entity substitution? I'm attempting to substitute some entities with strings and some with other entities (mostly to create an HTML or plain text representation). I'm already using XSLT to transform to HTML/text but it doesn't seem to have support for t

Re: [dom4j-user] bug: processing current node in stylesheet

2005-01-29 Thread Brett Porter
https://sourceforge.net/tracker/index.php?func=detail&aid=1112068&group_id=16035&atid=316035 Thanks, Brett On Sat, 29 Jan 2005 15:29:15 +0100, Maarten Coene <[EMAIL PROTECTED]> wrote: > Hi Brett, > > can you attach your patch and test to that issue so I can add it to CVS? > > thanks! > Maarten

Re: [dom4j-user] bug: processing current node in stylesheet

2005-01-29 Thread Maarten Coene
Hi Brett, can you attach your patch and test to that issue so I can add it to CVS? thanks! Maarten Brett Porter schreef: Hi, I've hit the problem that the following change addresses: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1077692&group_id=16035 is anyone able to apply this? I

[dom4j-user] bug: processing current node in stylesheet

2005-01-29 Thread Brett Porter
Hi, I've hit the problem that the following change addresses: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1077692&group_id=16035 is anyone able to apply this? I can provide a specific patch + a test case if required (works with 1.4 and CVS HEAD + patch, but not any version of 1.5

Re: [dom4j-user] XPath problem with *

2005-01-29 Thread Edwin Dankert
I can see one problem with your XML and another problem with your XPath. The problem with your XML is caused by the '<' character used as XML content. > <= This is not well-formed XML, it should be: <= Did this throw an exception? The XPath is wrong because, it does first of all not specify