Re: rng analysis
Dave Pawson <[email protected]> Sat, 01 May 2004 12:29:04 +0100
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
At 04:28 01/05/2004, Bob Foster wrote: >The way you phrased this suggests to me that I don't understand what >you're asking. Are you trying to tell whether inserted elements should be >indented or flowed? For that I look at two things: xml:space="preserve" >and whether the (parent) element content is mixed. > >If you just want to provide assistance, my big (yawn) secret is that I >validate the document to the insertion point, then produce the First set >of the current pattern as the list of alternatives. That particular editor uses this external file to determine (at least) whether the dropped in tag pair should be inlines or blocks <emph></emph> or <para> </para> Analysing a schema is something I've now wanted to do for 3 different reasons, and I've a feeling that the stylesheet to do it is quite hairy. Psst. Have a look at the way they 'drop' a pair of tags on a highlighted block of text! Delightful IMHO. I've not seen that since I saw some dedicated markup software at Xerox! regards DaveP