xsl-list
[Top] [All Lists]

Re: [xsl] Insert elment in XSD

2008-02-28 06:34:04
igutierrez027(_at_)ikasle(_dot_)ehu(_dot_)es wrote:

Now I have another problem. In the stylesheet article will be one param like this:

  <xsl:param name="class">article</xsl:param>

Instead of use 'article' like in your solutions, I need to use $class

<xsl:template match="xs:element[(_at_)name=$class]/xs:complexType/xs:all">

but occurs an error and I don't know how correct it

Which error exactly do you get?
Using variables or parameters is allowed in match patterns in XSLT 2.0 I think but not in XSLT 1.0. So make sure you use an XSLT 2.0 processor.

--

        Martin Honnen
        http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>