[relaxng-user] rng analysis

Bob Foster bob at objfac.com
Fri Apr 30 22:28:26 ICT 2004


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.

Bob Foster
http://xmlbuddy.com/

Dave Pawson wrote:
 > Playing with a newish editor,
 >
 > http://www.xmldistilled.com/tools/editor/index.htm
 >
 > It needs an input file to control whether or not
 > inserted elements are block level or inlines.
 >
 > I'm guessing this can be derived from the schema,
 > and for about the third time I'm writing xslt to 'tree walk'
 > the schema.
 >
 > I get the feeling I'm doing it wrong, too many options at
 > any one point, and wondered who else has done this for whatever reason.
 >
 > Has anyone a stylesheet that walks the schema and can tell
 > from any element the parent element name and produce a 'tree' in
 > the correct order?
 >   Or perhaps even suggest an approach that would make sense
 > for me to try further?
 >
 > regards DaveP



More information about the relaxng-user mailing list