|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating HTML and XHTML with one stylesheet with
At 2007-09-03 10:04 +1000, Deborah Pickett wrote:
Can someone please confirm if what I'm doing here conforms to the XSLT 1.0 spec? It seems to crash Xalan-J 2.7.0, but Saxon 6 and MSXML 4 do what I want. (XSLT 2.0 clearly states that this works, and indeed Saxon 8 does so.) ... Specifically, what I want to know is: Is is allowed for namespace-alias to map the null namespace in XSLT 1.0? Section 7.1.1 shows: <!-- Category: top-level-element --> <xsl:namespace-alias stylesheet-prefix = prefix | "#default" result-prefix = prefix | "#default" /> Since only the default namespace can be the null namespace, this looks pretty explicit to me that provision is made for referencing the null namespace. The text reads "the result-prefix attribute specifies the corresponding namespace URI that will appear in the result tree". Granted there is no wording explicitly about the null namespace, but I would think any conformance would not preclude it being supported since the specification doesn't explicitly constrain the URI for the default namespace. And, anyway, Saxon is so very (very!) rarely wrong. I've relied on 6.5.5 for a lot of production XSLT 1.0 work and always use it in my classroom, and the latest Saxon for the XSLT 2.0 exercises. I hope this helps. . . . . . . . . . . . Ken
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. 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
|






