[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Variables and multiple xmlns
> Below is a snippet of xsl that I am trying to get to work. > Firstly I am not sure if the stylesheet header is legal, and secondly even if it is > strickly legal will it work for what I want to do? It's legal but useless. A processor that recognizes the xsl namespace (and therefore the template) will treat xslt:variable as a literal result element, while one that recognises the xslt namespace will treat a top-level xsl:template element and its contents as user data to be ignored. Mike Kay > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" > xmlns:xslt="http://www.w3.org/1999/XSL/Transform" > version="1.0" > xmlns:data="any-uri" > > > [Other Templates Deleted......] > > <xsl:template match="ENTRY"> > <xslt:variable name="spancols">2</xslt:variable> > <TD> > XX > <xslt:copy-of select="$spancols"/> > XX > <xsl:apply-templates /> > </TD> > </xsl:template> > > </xsl:stylesheet> > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|