| <?xml version="1.0"?> |
| <!DOCTYPE doc SYSTEM "doc.dtd"> |
| <?xml-stylesheet type="text/xml" |
| href="#style1"?> |
| <doc> |
| <head> |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" id="style1" version="1.0"> |
| <xsl:import href="doc.xsl"/> |
| <xsl:template match="id('foo')"> |
| <fo:block font-weight="bold"> |
| <xsl:apply-templates/> |
| </fo:block> |
| </xsl:template> |
| <xsl:template match="xsl:stylesheet"> |
| <!-- ignore --> |
| </xsl:template> |
| </xsl:stylesheet> |
| </head> |
| <body> |
| <para id="foo"> |
| ... |
| </para> |
| </body> |
| </doc> |