Camille B?gnis wrote:

> If I dare I think maybe a behavior like the one described here could be
> implemented: http://www.docbook.org/docs/howto/#cust-naming (I think
> Jirka designed this)
> By adding a new attribute to the <relaxng> element, we could have
> something like that:
> 
> <relaxng compactSyntax="true" encoding="ISO-8859-1" location="dict.rnc"
>       name="http://docbook.org/ns/docbook";
>       version="5.0-subset LSWE-DICT-1.0"/>
> 

I think that name there acts only as an internal identifier to XXE, so 
you could use something like

name="http://docbook.org/ns/docbook#5.0-subset LSWE-DICT-1.0"

I would rather see more general mechanism where arbitrary XPath 
expression could be used to test which customization to use.

Something like:

<detect>
   <and> 
<rootElementNamespace>http://docbook.org/ns/docbook</rootElementNamespace>
     <xpath>starts-with(/*[1]/@version, '5.0')</xpath>
   </and>
</detect>


-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka at kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesion?ln? ?kolen? a poradenstv? v oblasti technologi? XML.
      Pod?vejte se na n?? nov? spu?t?n? web http://DocBook.cz
        Podrobn? p?ehled ?kolen? http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbli??? term?ny ?kolen?:
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
     ** XSLT 23.-26.10.2006 ** XML sch?mata 13.-15.11.2006 **
------------------------------------------------------------------
   http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3225 bytes
Desc: S/MIME Cryptographic Signature
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060627/9bfd400e/attachment.bin
 

Reply via email to