I found out about that yesterday in the afternoon and since then I'm trying
to bring up new ideas about how to add XML elements to my document respecting
the hierarchical structure of my XML Schema and WordML. I haven't succeeded
so far though. It's a big shortcoming when formatting regular text documents
in XML.
Any suggestions?
Jorge
> G'day "Jorge" <Jorge@discussions.microsoft.com>,
>
[quoted text clipped - 72 lines]
> >
> >Thanks in advance.
Word Heretic - 07 Sep 2005 11:42 GMT
G'day "Jorge" <Jorge@discussions.microsoft.com>,
Only a few dodgy ones lol.
Dodgy XML - FnR
==============
When one para is followed by another of the same style, replace the
para mark with 2 manual line breaks. This will increase the allowable
incidences of the type you describe.
Dodgy XML - Custom export
======================
Forget WordML and thus all the auto-lovely fields and round-tripping
and custom export your content directly as structured XML. Lose the
whole 'para' object, and work off text chunks whilst the para style
name remains constant. If you want to include round-tripping we simply
tag up all the PARA PROPERTIES as unpaired tags before an unpaired
break to mark end of para.
Overly simplified example:
<Tree>
A Collection of Heretical Ravings<style:=Title><br>
<Branch>Word is like a dirty bum. Paper put near it gets covered in
the proverbial.<style:=Body Text><br>
However, Word is also like building a pyramid. </branch> If you lay
the foundations right, you can reach for the sky.</tree>
Dodgy XML - XSLT
===============
Embed bookmark pairs and use post-processing (a clever XSLT will do
this for you) to kill the para objects and translate your bookmarks
into tags.
Eg bookmark names:
Start Tag: _myStem_TagName_S_1
End Tag: _myStem_TagName_E_1
The first _ is to make these bookmarks 'hidden'
The second marks the end of myStem, which you use in the XSLT to id
bookmarks that need translation, the next separates The third marks
the end of the tagname that will be embedded and then the fourth can
be read to produce a null or a tag precession of \ to alter the on and
off status. The final underscore and numeric is thrown away in
translation so you can add numerous instances of the same tag.
GL, and let me know how you get on. I am crawling up the nostrils of a
guy responsible for our XML capabilities and the more juice you can
give me the better.
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Jorge reckoned:
>I found out about that yesterday in the afternoon and since then I'm trying
>to bring up new ideas about how to add XML elements to my document respecting
[quoted text clipped - 81 lines]
>> >
>> >Thanks in advance.