comparison doc/xml-templates.txt @ 273:4afa86e2ad83

Small doc fix.
author cmlenz
date Sun, 01 Oct 2006 15:30:35 +0000
parents 78ae64ef822e
children 7ae694e7462e
comparison
equal deleted inserted replaced
271:b5b2a84e4b71 273:4afa86e2ad83
563 the including template after the point it was included. 563 the including template after the point it was included.
564 564
565 By default, an error will be raised if an included file is not found. If that's 565 By default, an error will be raised if an included file is not found. If that's
566 not what you want, you can specify fallback content that should be used if the 566 not what you want, you can specify fallback content that should be used if the
567 include fails. For example, to to make the include above fail silently, you'd 567 include fails. For example, to to make the include above fail silently, you'd
568 write: 568 write::
569 569
570 <xi:include href="base.html"><xi:fallback /></xi:include> 570 <xi:include href="base.html"><xi:fallback /></xi:include>
571 571
572 See the XInclude_ for more about fallback content. Note though that Genshi 572 See the `XInclude specification`_ for more about fallback content. Note though
573 currently only supports a small subset of XInclude. 573 that Genshi currently only supports a small subset of XInclude.
574
575 .. _`xinclude specification`: http://www.w3.org/TR/xinclude/
574 576
575 Incudes in Genshi are fully dynamic: Just like normal attributes, the `href` 577 Incudes in Genshi are fully dynamic: Just like normal attributes, the `href`
576 attribute accepts expressions_, and directives_ can be used on the 578 attribute accepts expressions_, and directives_ can be used on the
577 ``<xi:include />`` element just as on any other element, meaning you can do 579 ``<xi:include />`` element just as on any other element, meaning you can do
578 things like conditional includes:: 580 things like conditional includes::
Copyright (C) 2012-2017 Edgewall Software