Literal result element as stylesheet?

Tony Graham <[email protected]> Sun, 13 Mar 2005 22:48:44 +0000
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
Before he joined the list, Phil Casidy submitted a bug report about a
stylesheet that sends xmlroff into an endless loop.  It does, but only
after you run it on itself.

The stylesheet, shown below, is not in the form of a literal result
element but rather in the form of its equivalent stylesheet.

I don't quite understand whether Phil is saying that he can use this
stylesheet as the single argument with other XSL formatters.  (Is that
the case, Phil?).

Whether or not I understand this stylesheet, it does raise the
question of whether or not xmlroff should support a literal result
element as stylesheet.  Should it?

Regards,


Tony.

------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-15"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:rx="http://www.renderx.com/XSL/Extensions"
  >

  <xsl:template match="/">
    
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <fo:layout-master-set>
        <fo:simple-page-master master-name="mainPage" >
          <fo:region-body margin="1in"/>
        </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="mainPage">
        <fo:flow flow-name="xsl-region-body">
          <fo:block>Hello, world!</fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
  </xsl:template>

</xsl:stylesheet>
------------------------------------------------------------



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click