From: Joe v. D. <jo...@va...> - 2005-02-03 15:26:08
|
Thanks for your reply! I think I'm closer to where the problem is - with these settings, if I modify the file directly in the GUI client, the spaces are preserved. However, if I modify it via XUpdate, the spaces are stripped out. So I'd assume whatever parses XUpdate statements is doing it, before eXist's indexer. I tried adding xml:space="preserve" to the <xupdate:update> statement, but it didn't have any effect. For what it's worth, if I add the xml:space directive directly to the <p> tag, everything is indexed fine. Obviously though, that isn't feasible for large documents. Is there a setting to tell XUpdate to preserve whitespace? On Feb 3, 2005, at 9:49 AM, g.v...@ng... wrote: > Firs sorry for my english > about your problem. > > set inside the conf.xml > > <indexer stemming="no" caseSensitive="no" suppress-whitespace="none" > index-depth="1" tokenizer="org.exist.storage.analysis.SimpleTokenizer" > track-term-freq="yes" validation="no" > preserve-whitespace-mixed-content="yes"> > > you have to restore the documents for apply the change > > about the xsl ceck > http://www.w3schools.com/xsl/el_preserve-space.asp > > Giulio > > > > > > > >> Da: Joe van Deventer <jo...@va...> >> Data: >> A: exi...@li... >> Oggetto: [Exist-open] Inline whitespace question >> >> Hi there. I'm trying to throw some documents in an XML language I put >> together into eXist. The problem occurs when I use inline elements - >> eXist normalizes line breaks and stuff, so something like >> >> <content> >> <p>It has been quantitatively proven that the greatest movie ever >> is >> <ref media="film">Robot Jox</ref></p> >> </content> >> >> Becomes something like >> >> <content> >> <p>It has been quantitatively proven that the greatest movie ever >> is >> <ref media="film">Robot Jox</ref> >> </p> >> </content> >> >> So then when it gets fed through XSLT you end up with "...greatest >> movie ever isRobot Jox". I tried adding xml:space="preserve" to the >> "content" tag, and editing conf.xml to set the indexer's >> "preserve-whitespace-mixed-content" to "yes". This eliminates the >> linefeeds around the <ref> tag, but still strips spaces from either >> side. Is there any way to turn eXist's formatting off altogether? If I >> go to the trouble of writing a DTD and add my xml:space directive to >> <p> tags there, will eXist recognize it? >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >> Reporting >> Tool for open source databases. Create drag-&-drop reports. Save time >> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open> > > |