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

Foreign namespaces in XSLT atttributes

Subject: Foreign namespaces in XSLT atttributes
From: David <dlee@xxxxxxxxxxx>
Date: Wed, 13 Oct 2010 10:22:38 -0400
 Foreign namespaces in XSLT atttributes
I'm would like to find out if adding my own namespace'd attributes to xslt is valid.
It appears to work (in that I am not getting errors) but I cant find any reference that says its allowed.


Example:


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xmlsh="http://www.xmlsh.org/test">
<xsl:template xmlsh:type="element" match="element()">
</xsl:template>



The attribute "xmlsh:type" seems to be properly ignored using saxon (good).
Is this a defined behaviour or does it "just happen to work"?


Context: I'm experimenting with using XSLT as a "database" of xslt elements and do processing on the XSLT to extract specific elements.
Using my own attributes seems a clean way to do that.




--
David A. Lee
dlee@xxxxxxxxxxx
http://www.xmlsh.org

--
David A. Lee
dlee@xxxxxxxxxxx
http://www.xmlsh.org

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.