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

Re: Re:Re: How to copy xml which attributes are proce

Subject: Re: Re:Re: How to copy xml which attributes are processed with normalize-space function
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Apr 2001 11:48:26 +0200 (MET DST)
urn schemas microsoft com rowset
Hi Sun-fu,

> -- output --
> 
> <list ClientID="aaa" EntityID="xxxx" FacilityID="A001"
> xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"     <===these part of
> output I would like to get rid of.
> xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"     which are from the
> namespace prefixes.
> xmlns:rs="urn:schemas-microsoft-com:rowset"
> xmlns:z="#RowsetSchema" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
> </list>
> <list>...
> </list>
> 
> what I like to see a more clean output such as:
> 
> <list ClientID="aaa" EntityID="xxxx" FacilityID="A001">
> </list>
> <list ClientID="bbbb" EntityID="yyyy" FacilityID="B001"
> </list>

just add the attribute
   exclude-result-prefixes="s dt rs z msxsl"
to the xsl:stylesheet start tag:

<xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
     xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
     xmlns:rs="urn:schemas-microsoft-com:rowset" 
     xmlns:z="#RowsetSchema"
     xmlns:msxsl="urn:schemas-microsoft-com:xslt"
     exclude-result-prefixes="s dt rs z msxsl">

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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.