[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Insert elment in XSD

Subject: Re: Insert elment in XSD
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 28 Feb 2008 14:33:32 +0100
Re:  Insert elment in XSD
igutierrez027@xxxxxxxxxxxxx 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[@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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.