Re: [xsl] Re:Re: How to copy xml which attributes are processed with normalize-space function

Subject: Re: [xsl] 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)
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