Altova Mailing List Archives

Re: [xsl] XSL template "namespace" problem

From: Wendell Piez <wapiez@---------------->
Date: 3/29/2006 8:05:00 PM
At 02:12 PM 3/29/2006, Jon wrote:
I'd be surprised to find any processor supporting this:
<a href="<xsl:value-of select='foo' />">some link</a>. If you can find
one, post a small test case sample and report the bug to the

This is quite unlikely (Jon would be justified in his surprise) 
because developers would probably have to go to extra trouble to 
support a "feature" which breaks both the letter of the XML 
Recommendation, and all current interpretations of XML. An XSLT 
stylesheet is an XML document instance, which any XML parser can 
parse. The above doesn't parse as XML.

The bug you reported here would be a bug in the XML parser that is 
applied to the stylesheet prior to its being applied, since that's 
the component that enforces well-formedness (i.e. syntax) rules like 
"no tags in attribute values" (the rule is actually stricter: no 
unescaped "<" characters at all). It would be interesting to hear any 
XML developers (of XSLT engines or other) try to make the case that 
subverting XML's stated rules regarding its "Draconian error 
handling" of such illegal constructs is a good idea. (There are 
actually application scenarios where it might be defensible -- but 
XSLT isn't one of them.)

This is why it's possible for experienced practitioners to look at 
this and say authoritatively "there's no way this could work". We 
don't have to try it since the XML parsers installed in our brains 
tell us it's a no-go.


Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.