You could also construct your elements in your own namespace so as to
avoid the problem with a user selecting the html output method.

Gary

[EMAIL PROTECTED] wrote:
> 
> Regarding the fact that <col> is one of the elements subject to
> special treatment when the output method is HTML:
> 
> >This is an interesting issue. The <col> element is being produced
> >by an extension function. So the output method of the extension
> >function is "xml" but the output of the transformation is "html".
> >To correct this problem, I would have to changed the output for
> >the whole transformation, which may produce invalid html.
> >Is this a bug or feature ??
> >JohnG
> 
> I guess it's a bug somewhere, depending on the point-of-view of the
> beholder. Possible solutions:
> 1. Extension functions ought to be able to ascertain the "current"
>    output method, which will be a dicey proposition in XSLT 2.0.
> 2. Pass in the name to be used, rather than assuming "col".
> 3. Assume a name that's not one of the special HTML names.
> 
> I like (2).
> .................David Marston

Reply via email to