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

Re: Creating namespace and schema directives

Subject: Re: Creating namespace and schema directives
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 12 Dec 2003 17:45:17 +0100
acord namespace
Ed.Trembicki-Guy@xxxxxxxxx wrote:
<ACORD xmlns="http://www.ACORD.org/standards/PC_Surety/ACORD1.4.1/xml/"
xmlns:Marsh="http://www.marsh.com/"


I can specify this element in my xslt template as:

     <xsl:element name="ACORD" namespace="
http://www.ACORD.org/standards/PC_Surety/ACORD1.4.1/xml/" >

but I can find no documentation on how to reproduce the second namespace
directive or the schema directive.


It is enough to declare the namespaces somewhere, for example in the stylesheet element. For example

 <xsl:stylesheet
   xmlns="http://www.ACORD.org/standards/PC_Surety/ACORD1.4.1/xml/"
   xmlns:Marsh="http://www.marsh.com/"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <xsl:template match="/">
   <ACORD
    xsi:schemaLocation="http://www.ACORD.org/standards/PC_Surety/ACORD1.4.1/xml/
     C:\MYDOCU~1\Marsh\ACORD\XSD\Marsh_ACORD_1-4-1.xsd">
   ...

The processor will output the necessary namespace ddeclarations
automatically in a way which makes the resulting document
namespace-valid.

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.