[xslt] bug libxslt? test case
- From: spinmar interfree it ()
- To: xslt gnome org
- Subject: [xslt] bug libxslt? test case
- Date: 3 Feb 2003 09:29:11 -0000
Hi Daniel,
this is a very simple test case: I send xml file, xsl file and the result of xsltproc with -v option.
I'm using:
libxml2 2.4.30
libxslt 1.0.23
The email clent I'm using permits me to send only one file so I send output.html and write xml and xsl. Sorry
*---------------------------------------*
<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<result>
<query>volontà</query>
<pag>1</pag>
</result>
</root>
*----------------------------------------------------------*
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" encoding="ISO-8859-1" method="html" />
<xsl:template match="/">
<html>
<head>
<title>bug test</title>
</head>
<body>
<xsl:apply-templates select="root" />
</body>
</html>
</xsl:template>
<xsl:template match="root">
example bug test: <br />
<xsl:apply-templates select="result" />
</xsl:template>
<xsl:template match="result">
<a href="http://prova.it?query={query}&pag={pag}">prova link</a>
</xsl:template>
</xsl:stylesheet>
*----------------------------------------------------------------*
Cheers
--Marco
-----------------------------------------------------
Salve, il messaggio che hai ricevuto
è stato inviato per mezzo del sistema
di web mail interfree. Se anche tu vuoi
una casella di posta free visita il
sito http://club.interfree.it
Ti aspettiamo!
-----------------------------------------------------
Added namespace: xsl mapped to http://www.w3.org/1999/XSL/Transform
xsltPrecomputeStylesheet: removing ignorable blank node
xsltParseStylesheetProcess : found stylesheet
xsltCompilePattern : parsing '/'
xsltCompilePattern : parsed /, default priority 0.500000
added pattern : '/' priority 0.500000
xsltCompilePattern : parsing 'root'
xsltCompilePattern : parsed root, default priority 0.000000
added pattern : 'root' priority 0.000000
xsltCompilePattern : parsing 'result'
xsltCompilePattern : parsed result, default priority 0.000000
added pattern : 'result' priority 0.000000
parsed 3 templates
Resolving attribute sets references
Initializing keys on file.xml
Registered 0 modules
Registering global variables
Registering global variables from prova.xsl
xsltProcessOneNode: applying template '/' for /
xsltApplyOneTemplate: copy node html
xsltApplyOneTemplate: copy node head
xsltApplyOneTemplate: copy node title
xsltApplyOneTemplate: copy text bug test
xsltCopyText: copy text bug test
xsltApplyOneTemplate: copy node body
xsltApplyTemplates: select root
xsltApplyTemplates: list of 1 nodes
xsltProcessOneNode: applying template 'root' for root
xsltApplyOneTemplate: copy text
example bug test:
xsltCopyText: copy text
example bug test:
xsltApplyOneTemplate: copy node br
xsltApplyTemplates: node: root
xsltApplyTemplates: select result
xsltApplyTemplates: list of 1 nodes
xsltProcessOneNode: applying template 'result' for result
xsltApplyOneTemplate: copy node a
xsltEvalXPathString: returns volontÃ
xsltEvalXPathString: returns 1
xsltApplyOneTemplate: copy text prova link
xsltCopyText: copy text prova link
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>bug test</title>
</head>
<body>
example bug test: <br><a href="http://prova.it?query=volont%C3%A0&pag=1">prova link</a>
</body>
</html>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]