Sorin,

Options like :

Keeping blank lines (yes/no; default no)
Tabulation size (int; default 4)
Tabulation unit (space/tab; default space)
Line size wrap (int; default 100)
Reorder definition (no/alphabetic; default no)

would be a good start

Regards

Xmlizer

On 12/15/06, Sorin Ristache <[EMAIL PROTECTED]> wrote:
Hello,

No, in the current version (8.0) there are no options for configuring
the indentation of Relax NG compact schemas. What options do you think
are useful for this kind of format and indent ?


Regards,
Sorin


mozer wrote:
> Dear,
>
> == Bug ==
> Here is the message when I click on the "Indented le document" button
> for the file in attachment
>
> SystemID: D:\livraison\20061210-ISO-DSDL\nvdl-full-syntax.rnc
> Description: Relax NG Converter failed with:
> java.lang.NullPointerException null
>
> == Feature ==
> Is there parameters for Relax Compact indentation (in fact there is
> parameter for XML and CSS but not RNC) ?
> If not, are they planned ?
>
> Regards
>
> Xmlizer
>
>
> ------------------------------------------------------------------------
>
> namespace local = ""
> default namespace nvdl = "http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0";
> start =
> element rules {
> (schemaType?,
> trigger*,
> (rule* | (attribute startMode { xsd:NCName }, mode+)))
> & foreign
> }
> trigger =
> element trigger {
> (attribute ns { xsd:string },
> attribute nameList { list { xsd:NCName } })
> & foreign
> }
> mode =
> element mode {
> (attribute name { xsd:NCName },
> includedMode*,
> rule*)
> & foreign
> }
> includedMode =
> element mode {
> (attribute name {xsd:NCName}?,
> includedMode*,
> rule*)
> & foreign
> }
> rule =
> element namespace {
> (attribute ns { xsd:string },
> attribute wildCard {xsd:string{maxLength = "1"}}?,
> ruleModel)
> & foreign
> }|
> element anyNamespace { ruleModel & foreign}
> ruleModel = attribute match { elementsOrAttributes }?, actions
> elementsOrAttributes =
> list {
> ("elements", "attributes")
> | ("attributes", "elements")
> | "elements"
> | "attributes"
> }
> actions =
> cancelAction |
> (noResultAction*, (noResultAction|resultAction), noResultAction*)
> cancelAction =
> element cancelNestedActions {foreign}
> noResultAction =
> element validate {
> (schemaType?,
> (message | option)*,
> schema,
> modeUsage) & foreign
> }|
> element allow|reject { (message*, modeUsage) & foreign }
> schema =
> attribute schema { xsd:anyURI } |
> element schema {(text | foreignElement), foreignAttribute*}
> message =
> attribute message {text}
> | element message {(text, xmlAttribute*), nonXMLForeignAttribute*}
> resultAction =
> element attach|attachPlaceholder|unwrap { (message*, modeUsage) & foreign }
> option =
> element option {
> (attribute name { xsd:anyURI },
> attribute arg { text }?,
> attribute mustSupport { xsd:boolean }?)
> & foreign
> }
> modeUsage =
> (attribute useMode { xsd:NCName }
> | nestedMode)?,
> element context {
> (attribute path { path },
> (attribute useMode { xsd:NCName }
> | nestedMode)?
> ) & foreign
> }*
> nestedMode =
> element mode {
> (includedMode*,
> rule*)
> & foreign
> }
> schemaType = attribute schemaType { mediaType }
> ## 5.1 of RFC 2045 allows <any (US-ASCII) CHAR except SPACE, CTLs,
> ## or tspecials>, where
> ##
> ## tspecials := "(" / ")" / "<" / ">" / "@" /
> ## "," / ";" / ":" / "\" / <">
> ## "/" / "[" / "]" / "?" / "="
> ##
> mediaType =
> xsd:string {
> pattern = "\s*"
> ~ "[0-9A-Za-z!#$%&'\*\+\-\.\^_`\{\|\}~]*"
> ~ "\\"
> ~ "[0-9A-Za-z!#$%&'\*\+\-\.\^_`\{\|\}~]*"
> ~ "\s*"}
> path =
> xsd:string {
> pattern = "\s*(/\s*)?\i\c*(\s*/\s*\i\c*)*\s*"
> ~ "(\|\s*(/\s*)?\i\c*(\s*/\s*\i\c*)*\s*)*"
> }
> foreignElement =
> element (* - nvdl:*) {attribute * {text}*, mixed{anyElement*}}
> anyElement =
> element * {attribute * {text}*, mixed{anyElement*}}
> foreignAttribute = attribute * - (nvdl:* | local:*) {text}
> nonXMLForeignAttribute = attribute * - (xml:* | nvdl:* | local:*) {text}
> xmlAttribute =
> attribute xml:lang {text}
> | attribute xml:space {"default" | "preserve"}
> | attribute xml:base {xsd:anyURI}
> foreign = foreignAttribute*, foreignElement*
>

_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to