Re: [xml] LRE stylesheets in libxslt



On Wed, Oct 23, 2002 at 07:51:46AM +0200, Christian Stocker wrote:
Hi

Is it possible to use LRE stylesheets in libxslt? xsltproc at least
complained about 
xsltParseStylesheetProcess : document is not a stylesheet

 It does of course since this is part of the standard
this is even part of the regression test suite:

gnome:~/XSLT/tests/REC -> xsltproc test-2.3-1.xsl test-2.3-1.xml
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/TR/xhtml1/strict";><head><title>Expense Report 
Summary</title></head><body><p>Total Amount: 1234</p></body></html>
gnome:~/XSLT/tests/REC -> cat test-2.3-1.xsl
<html xsl:version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
      xmlns="http://www.w3.org/TR/xhtml1/strict";>
  <head>
    <title>Expense Report Summary</title>
  </head>
  <body>
    <p>Total Amount: <xsl:value-of select="expense-report/total"/></p>
  </body>
</html>
gnome:~/XSLT/tests/REC -> cat test-2.3-1.xml
<expense-report>
<total>1234</total>
</expense-report>
gnome:~/XSLT/tests/REC ->

It would be great, if this could be supported, since this would make
life easier to work together with not-so-literate-in-xslt people :)

  It would make life of the developpers easier if not-so-literate-in-xslt
people tried stuff out seriously before posting :)

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]