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

Insert elment in XSD

Subject: Insert elment in XSD
From: <igutierrez027@xxxxxxxxxxxxx>
Date: Thu, 28 Feb 2008 14:25:27 +0100 (CET)
 Insert elment in XSD
Hello Martin Honnen and Florent Georges!

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

This is my XSD:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
  targetNamespace="http://bibtexml.sf.net/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:ns1="http://bibtexml.sf.net/" version="2.0">

  <xs:import namespace="http://purl.org/dc/elements/1.1/"
schemaLocation="dc.xsd"/>

    <xs:element name="article">
    <xs:complexType>
      <xs:all>

        <xs:element ref="ns1:author" minOccurs="1" maxOccurs="1"/>
        <xs:element ref="ns1:title" minOccurs="1" maxOccurs="1"/>

      </xs:all>
    </xs:complexType>
  </xs:element>


Somebody could help me?

Thank You.

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-2011 All Rights Reserved.