Loading ...
Sorry, an error occurred while loading the content.

Trang bug

Expand Messages
  • toby_h_ferguson
    Today I went to convert my spring-beans-2.0.xsd to rng, and thence (via Trang) to rnc. What I found was that rng constructs of this form:
    Message 1 of 2 , Jul 9 2:18 PM
    • 0 Attachment
      Today I went to convert my spring-beans-2.0.xsd to rng, and thence
      (via Trang) to rnc.

      What I found was that rng constructs of this form:

      <oneOrMore>
      <optional>
      <choice>
      <ref name="import"/>
      <ref name="alias"/>
      <ref name="bean"/>
      </choice>
      </optional>
      </oneOrMore>


      were (incorrectly) converted to this form:

      (import | alias | bean)?+

      I think they should've been converted to

      ((import | alias | bean)?)+

      Certainly in the first form I was getting errors with the rnc syntax
      itself, when using nxml-mode to do the validation, and with the second
      I wasn't.
    • Dave Pawson
      ... oneOrMore optional is the same as zeroOrMore ref isn t it? regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
      Message 2 of 2 , Jul 10 12:06 AM
      • 0 Attachment
        On 09/07/07, toby_h_ferguson <toby.h.ferguson@...> wrote:
        > What I found was that rng constructs of this form:
        >
        > <oneOrMore>
        > <optional>
        > <choice>
        > <ref name="import"/>
        > <ref name="alias"/>
        > <ref name="bean"/>
        > </choice>
        > </optional>
        > </oneOrMore>

        oneOrMore
        optional

        is the same as

        zeroOrMore
        ref

        isn't it?

        regards



        --
        Dave Pawson
        XSLT XSL-FO FAQ.
        http://www.dpawson.co.uk
      Your message has been successfully submitted and would be delivered to recipients shortly.