|
Subject: [xsl] Replacing default namespace From: Scott Sauyet <lists@xxxxxxxxxx> Date: Fri, 29 Jun 2007 13:01:25 -0400 |
<xs:simpleType name="addrFormat" .../>
<service name="SessionsService" .../><xs:simpleType xmlns:tns="http://tempuri.org/" name="addrFormat"> <service xmlns:tns="http://tempuri.org/" name="SessionsService">
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="MyNewNamespace"
xmlns:n1="http://schemas.xmlsoap.org/wsdl/"
>
<xsl:output method="xml" indent="yes" omit-xml-declaration="no"/><xsl:template match="/wsdl:definitions">
<definitions
targetNamespace="MyNewNamespace"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="@Service@"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ro="urn:Databox"
>
<xsl:apply-templates/>
</definitions>
</xsl:template><xsl:template match="wsdl:types">
<types>
<xsl:apply-templates/>
</types>
</xsl:template><xsl:template match="xs:schema">
<xs:schema targetNamespace="urn:Databox" xmlns="urn:Databox">
<xsl:text>
</xsl:text>
<xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsl:apply-templates/>
</xs:schema>
</xsl:template><xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL 2.0 and .NET and VB, Jirka Kosek | Thread | Re: [xsl] Replacing default namespa, Martin Honnen |
| Re: [xsl] XSL Project Shut Down, Karl Stubsjoen | Date | [xsl] Context node is within a vari, Tristan Stevens |
| Month |