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

Re: Selecting namespaces

Subject: Re: Selecting namespaces
From: "belangour abdessamad" <abdessamad.belangour@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Oct 2003 13:35:55 +0100
xmlns source
Hi,
Thanks, it did suceed again.But i have a last question.
The result that i wrote was:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="currentDocument" xmlns:cd="currentDocument"
elementFormDefault="qualified">

But i got (using XSLT):
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="currentDocument" elementFormDefault="qualified"
xmlns:cd="currentDocument">

I want the attribute (elementFormDefault) to appear at last position of the
schema attributes.
what should i have to do?
Thanks again.

----- Original Message ----- 
From: "Jeni Tennison" <jeni@xxxxxxxxxxxxxxxx>
To: "belangour abdessamad" <abdessamad.belangour@xxxxxxxxxxxxxxxxxxx>
Cc: "XSL-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, October 30, 2003 12:58 PM
Subject: Re:  Selecting namespaces


> Hi,
>
> > I have litteraly written the result, it did suceed. but the problem
> > is that all the namespaces on the <xsl:stylesheet> element also
> > appear on the result file.
> >
> > What do i have to do to select namspaces that have to appear on the
> > result file and to forbid the others to appear?
>
> You have to list the prefixes of the namespaces that you don't want to
> appear in the output in the exclude-result-prefixes attribute of
> <xsl:stylesheet>. For example, if you have:
>
> <xsl:stylesheet version="1.0"
>                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                 xmlns:my="MyDoc"
>                 xmlns:source="http://www.example.com/source"
>                 xmlns:another="http://www.example.com/another">
> ...
> </xsl:stylesheet>
>
> and you don't want your output to contain namespace declarations for
> the http://www.example.com/source or http://www.example.com/another
> namespaces, then add an exclude-result-prefixes attribute with the
> value "source another", as in:
>
> <xsl:stylesheet version="1.0"
>                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                 xmlns:my="MyDoc"
>                 xmlns:source="http://www.example.com/source"
>                 xmlns:another="http://www.example.com/another"
>                 exclude-result-prefixes="source another">
> ...
> </xsl:stylesheet>
>
> Cheers,
>
> Jeni
>
> ---
> Jeni Tennison
> http://www.jenitennison.com/
>
>
>  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.