XSLT Programmer's Reference 读书笔记

原创 2004年11月02日 14:00:00


  • There is no explicit provision for XHTML output, but since XHTML is pure XML, it can be written using the XML method in the same way as any other XML document type.
  • The difference between <xsl:include> and <xsl:import> is that conflicting definitions are resolved differently:

    • <xsl:include> effectively does a textual inclusion of the referenced stylesheet module, minus its containing <xsl:stylesheet> element, at the point where the <xsl:include> element is written. The included module is treated exactly as if its top-level elements, with their contents, appeared in the parent module in place of the <xsl:include> element itself.

    • <xsl:import> also incorporates the top-level elements from the referenced stylesheet module, but in this case the definitions in the imported module have lower import precedence than the definitions in the parent module. If there are conflicting definitions, the one with higher import precedence will generally win. The detailed rules actually depend on the type of definition, and are given in the specification of <xsl:import> on page 226, in Chapter 4. Importing a module is thus rather like defining a subclass, in that the parent module can use some definitions unchanged from the imported module, and override others with definitions of its own.

  • It is an error for a stylesheet module to import or include itself, directly or indirectly, because doing so would define an infinite loop.
  • It isn't an error, however, for a stylesheet module to be included or imported at more than one place in the stylesheet program.
  • People often ask for some kind of facility to load stylesheet modules dynamically, based on a decision made while the transformation is running. The simple answer is that you can't do this.
  • The typical way of using this is to have one stylesheet containing common template rules, followed by more specific stylesheet modules distinguished using the title or media pseudo-attributes. But other products, notably Microsoft's MSXML3, simply use the first stylesheet and ignore the others.angry_smile.gif
  • Bitten by years of experience with proprietary vendor extensions to HTML, the W3C committee responsible for XSLT took great care to allow vendor extensions in a tightly controlled way.
  • What this means in practice is that if you want to be specific about whitespace characters, write them as character references; if you just want to use them as separators and padding, use the whitespace characters directly.
  • Unlike variables in many programming languages, XSLT variables cannot be updated. Once they are given an initial value, they retain that value until they go out of scope. This feature has a profound effect on the programming style used when a stylesheet needs to do calculations. The subject of programming without assignment statements is discussed in detail in Chapter 9.

XSLT Programmer's Reference

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/topmvp - topmvpAs XML be...
  • topmvp
  • topmvp
  • 2008年11月20日 22:32
  • 450

XSLT 2.0 Programmer's Reference, Third Edition

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/topmvp - topmvpWhen XML ...
  • topmvp
  • topmvp
  • 2008年08月29日 21:25
  • 287

[经典]UNIX PROGRAMMER'S MANUAL(November 3, 1971)

/*这是November 3, 1971 UNIX第一版的参考手册,来自Dennis Ritchie’s Web site: http://cm.bell-labs.com/cm/cs/who/dmr...
  • coofucoo
  • coofucoo
  • 2005年08月06日 21:15
  • 2455

ODBC Programmer's Reference

 ODBC 3.51 Programmers Reference   本指南介绍了ODBC(Open Database Connectivity)的结构并解释了怎样写ODBC驱动和应用程序。也解释了怎...
  • eryar
  • eryar
  • 2009年11月07日 22:16
  • 746

VBScript Programmer's Reference

What is this book about? The VBScript standard has changed over time,and several new things have bee...
  • topmvp
  • topmvp
  • 2008年08月07日 03:27
  • 490

pysvn - Programmer's reference

pysvn - Programmer's reference This programmer's reference gives complete and detailed infomation...
  • HarbinZJU
  • HarbinZJU
  • 2012年08月13日 13:12
  • 7793

Computer Systems: A Programmer's Perspective --- 读书笔记1

最后一次更新日期:2016-03-03 这本书的中文名字叫《深入理解计算机系统》。当我看到这本书第二章的浮点数部分时,回头发现前面的内容已经不怎么记得了。因此我打算通过写读书笔记的方式来强化自己的理解...
  • k0becheng
  • k0becheng
  • 2015年09月20日 21:29
  • 1034

Programmer's Notepad

   Programmers Notepad,一个编辑器的名字,免费但并不开源。它使用很开源的东西,参考它所使用的开源技术,对想开发自己的浏览器的人来源,也是有帮助的。在 Programmers No...
  • dyna_179
  • dyna_179
  • 2009年01月12日 15:07
  • 1126

NDK的安装(NDK Programmer's Guide-Getting Started with the NDK)

因为现在做的项目中需要用到JNI来实现apk同开发版的串口进行通讯。所以,需要安装NDK来进行开发。在网上查询了一些资料,其中百度经验中《Android NDK环境搭建》这份算是比较新也比较实用的,但...
  • ddjq12
  • ddjq12
  • 2015年07月10日 10:13
  • 345

Computer System: A Programmer's Perspective (深入理解计算机系统) 读书总结

Computer System: A Programmer's Perspective 读书总结 中文名为深入理解计算机系统>>. 花了一个多月的时候把CSAPP这本书看完了, 看的是英文...
  • xuzhezhaozhao
  • xuzhezhaozhao
  • 2013年05月23日 16:48
  • 5327
您举报文章:XSLT Programmer's Reference 读书笔记