Thanks a lot! I hadn't noticed the automatic input of the text node...

Now it works fine (as usual with your product).

All the best,

Alain Pierrot

Le 8 mars 06 ? 12:51, Hussein Shafie a ?crit :

> Alain Pierrot wrote:
>> I can't add attributes to xsl:elements when a wildcard model is  
>> part  of
>> the model.
>>
>> for instance:
>> xsl:with-param  allows to edit the required "name" attribute, but
>> doesn't offer to edit select.
>>
>> I get error messages when trying to add the attribute :
>>
>>> Le nom "select" ne correspond pas une combinaison (wildcard)
>>
>> What do I miss ?
>
> Select xsl:with-param and press Shift-F1, you'll see this:
>
> ---
> (@(* - (xsl:* | :*))* ,
>  @name ,
>  (@select |
>   (apply-templates | apply-imports | call-template | element |
>    attribute |
>    text | processing-instruction | comment | copy | value-of |
>    number | for-each | if | choose | variable |
>    copy-of | message | fallback | (* - ns:*) | text)+))
> ---
>
> This means that xsl:with-param cannot contain both a text node and a
> select attribute.
>
> The problem is that a newly created xsl:with-param automatically
> contains an empty text node (XXE automatically inserts simplest valid
> content).
>
> Explicitely select the text node (e.g. click on #text in the node path
> bar) contained in a newly created xsl:with-param and *delete* it.
>
> Immediately after that, you'll be able to specify a select  
> attribute for
> the xsl:with-param element. (This proves that XXE really supports  
> RELAX NG!)
>
> If you want to automate this, you'll have to specify an element  
> template
>  for xsl:with-param in the XSLT configuration file. See
> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/ 
> elementTemplate.html
>
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> ---------------------------------------------------------------------- 
> -----------------
> Wanadoo vous informe que cet  e-mail a ete controle par l'anti- 
> virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>



Reply via email to