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

RE: How to generate <schema> element

Subject: RE: How to generate <schema> element
From: Michael.Giroux@xxxxxxxx
Date: Fri, 13 May 2005 09:05:10 -0700
RE:  How to generate <schema> element
"Michael Kay" <mike@xxxxxxxxxxxx> wrote on 05/13/2005 08:23:45 AM:

> Perhaps you should post a complete (simplified)
> stylesheet and we can see if other processors give
> the same problem.

OK, here you go.  I'll give a simple input xml, along with the main bits of
the stylesheet.  Output is intended to be abstract types definitions for a
wsdl.

Let me know if you would prefer file attachments.

Michael

XML input file:

<?xml version='1.0' ?>
<component name='custDemo'>
</component>


Stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet version = '1.0' xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:tns=
"urn:bpel:jiap"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
  xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xalan="http://xml.apache.org/xslt" >
  <xsl:output method="xml" indent="yes" xalan:indent-amount="2"/>

  <xsl:template match="component">
    <definitions targetNamespace="urn:bpel:jiap">
      <xsl:element name="types">
        <xsl:comment>s/b: xmlns="http://www.w3.org/2001/XMLSchema"
</xsl:comment>
        <xsl:element name="schema" namespace=
"http://www.w3.org/2001/XMLSchema">
          <xsl:attribute name="targetNamespace">urn:bpel:jiap
</xsl:attribute>
        </xsl:element>        <!--  </schema> -->
      </xsl:element>      <!-- </types> -->
    </definitions>
  </xsl:template>

</xsl:stylesheet>

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.