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

RE: Schema location in target XML document

Subject: RE: Schema location in target XML document
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Tue, 23 Apr 2002 11:01:36 +0200
schema location
Hello!

Use literal result element, it's much simpler:

<xsl:template match="/">
	<courses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\Docs\CorpPortal\clschema.xsd">
		<xsl:apply-templates/>
	</courses>
</xsl:template>

---
Oleg Tkachenko,
Multiconn International, Israel 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Uslu, 
> Cihan Y (MED)
> Sent: Monday, April 22, 2002 10:11 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Schema location in target XML document
> 
> 
> Hi,
> I get my data from OracleDB, create the XML String,  then apply the XSLT
> script, and then I need to validate it against our schema, this is where
> i'm not clear. How can I make it sure that I'm validating against a
> schema located in a URL? Any help is appreciated.
> 
> Cihan
> 
> 
> This is what I have in my XSLT script:
> ---------------------------------
> <xsl:transform version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" indent = "yes"/>
> <xsl:template match="/">
> <xsl:element name="courses"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	
> xsi:noNamespaceSchemaLocation="D:\Docs\CorpPortal\clschema.xsd">
>         <xsl:apply-templates />
> </xsl:element>
> </xsl:template>
> ------------------------
> 
> 
> This code doesnt put the schema location in target XML. This is the
> output I get:
> ------------------------------
> <?xml version="1.0" encoding="UTF-16"?>
> <courses>
> <course compid="11" busunitid="66" coursenumber="C/AMX4">
> --------------------------
> 
> This is what I should be getting in target XML
> --------------------
> <?xml version="1.0" encoding="UTF-16"?>
> <courses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://webd01.corporate.ge.com/learningpo
> rt/learningportal/schema/CLSchema.xsd">
> <course compid="11" busunitid="66" coursenumber="C/AMX4">
> --------------------
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.