OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xsi:schemaLocation in target XML Doc using XSLT

In the stylesheet, replace
<PortfolioReq xsi:schemaLocation="..." >

-Wayne Steele

>From: Ivo Ottiger <ivo.ottiger@bluewin.ch>
>To: Xml-Dev <xml-dev@lists.xml.org>
>Subject: xsi:schemaLocation in target XML Doc using XSLT
>Date: Fri, 20 Apr 2001 10:39:58 +0200
>First of all thanks for tips on namespaces and XSLT in my previous
>As I am new to xsl I have another problem.
>I try to transform the following XML
><?xml version="1.0"?>
>	<ROW num="1">
>	</ROW>
>	<ROW num="2">
>	</ROW>
>with the following XSL
><?xml version="1.0"?>
><!-- quotes.xsl: Transform to Quote.dtd vocabulary -->
><xsl:stylesheet version="1.0"
>xsi:schemaLocation = "http://www.portfolio.org/Portfolio/Request
>http://www.portfolio.org/Portfolio/Request pfl_req.xsd">
>	<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
>	<xsl:template match="/">
>		<PortfolioReq>
>			<xsl:for-each select="ROWSET/ROW">
>				<Symbol>
>					<xsl:value-of select="TICKER"/>
>				</Symbol>
>			</xsl:for-each>
>		</PortfolioReq>
>	</xsl:template>
>The result is
><?xml version="1.0" encoding="UTF-8"?>
><PortfolioReq xmlns="http://www.portfolio.org/Portfolio/Request"
>    <Symbol>ORCL</Symbol>
>    <Symbol>SUNW</Symbol>
>but I am missing the xsi:schemaLocation in the target XML doc.
>Any help, thanks.

Get your FREE download of MSN Explorer at http://explorer.msn.com