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



Reply via email to