On 1/27/07, Dave Pawson <[EMAIL PROTECTED]> wrote:
On 27/01/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote:
> First of all it looks very impressive, thanks for such a nice feature.
> Unfortunately I am having some issue with newline return and
> whitespaces which produce results I cannot use...
>
> Example:
> Search for the following string in the XML file:
> <para>Sex of the named patient. Enumerated Values:M = maleF = femaleO
> = other</para>
>
> For the human eyes it is trivial to see where the whitespaces are
> missing, but I was not able to figure out what is going wrong for the
> xslt transformation.
I'd be more interested in the source xml in file content.xml from the odt file.
If the 'missing spaces' are newlines, then it's down to the XML parser in use.
Not sure which xslt engine you're using, but if you can,
specify the parser as xerces.
If the 'missing spaces' are unicode 'thin spaces' or some other variant,
then it gets messy. You need some text replacement in the XSLT or
an output character filter in the transform for XSLT2.
I realize I sent the wrong link in my previous mail. The correct link
should have been the .doc file and not the .pdf file. Sorry for
confusion.
http://medical.nema.org/dicom/2007/07_03pu.doc
Anyway exporting the word document into oo1.0 file, and opening it
with vim I can see:
<text:p text:style-name="P93">Sex of the named patient. Enumerated
Values:<text:line-break/><text:tab-stop/>M =
male<text:line-break/><text:tab-stop/>F =
female<text:line-break/><text:tab-stop/>O = other</text:p>
BTW I have absolutely no idea how to select a particular xsl engine
via openoffice. However I did try also the wordml xsl stuff from n.
waslh. For some reason I get the exact same problem using the docbook
roundtrip (wordml) xsl stylesheet:
http://lists.oasis-open.org/archives/docbook-apps/200701/msg00232.html
Should I change xsltproc into xalan and try again (I am running a
linux/debian system)?
Thanks a bunch !
-Mathieu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]