This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSL and Namespaces


>  - This is the XSL file:
> <xsl:stylesheet version='1.0'
> xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> 	<xsl:template match="/Schema">
> 		<xsl:copy>
> 			<xsl:attribute name="xmlns">
> 				<xsl:value-of select="@xmlns" />
> 			</xsl:attribute>

It is an error to use <xsl:attribute> to create an attribute whose name
begins with "xmlns".

It looks as if you are trying to copy namespace nodes; but you don't need to
do this, because <xsl:copy> on the element does it automatically.

Mike Kay
Software AG


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]