Attributes in the xml: namespace are treated no different than other attributes by an RNG-validator. This means that they must be explicitly allowed by the grammar to pass validation. In your case you could add

<optional>
  <attribute name="xml:space">
    <choice><value>default</value><value>preserve</value></choice>
  </attribute>
</optional>

in your literallayout element pattern

Cheers,
David

Dave Pawson wrote:
I want an element with same semantics as docbook literllayout
(i.e. xml:space ='preserve' )


    <define name="Literallayout">
      <element name="literallayout">
      <text/>
      </element>

If I add the xml:space attribute, jing complains.

Is this a processing expectation, i.e. there should be
a 'choice' value preserve|default
which could / should be optional?


Any suggestions please

tia

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk



SPONSORED LINKS
Xml schema Computer internet security Xml
Computer internet business Xml format Xml document


YAHOO! GROUPS LINKS




Reply via email to