gmesch / ajaxslt

Automatically exported from code.google.com/p/ajaxslt
Other
0 stars 0 forks source link

Missing built-in template rules #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. XML document

<page>
<message>
Hello World.
</message>
</page>

2. XSL transformation

<xsl:stylesheet>
<xsl:template match="/page">
<xsl:apply-templates select="message"/>
</xsl:template>
<xsl:template match="message">
<div style="color:green">
<xsl:value-of select="."/>
</div>
</xsl:template>
</xsl:stylesheet>

What is the expected output? What do you see instead?
I expected the output to be equivalent to the test example, that is:

<div style="color:green">
Hello World.
</div>

However, the actual output is empty.

What version of the product are you using? On what operating system?
ajaxslt-0.7 and ajaxslt svn
Microsoft Windows XP SP2
Firefox 2.0.0.1
Microsoft Internet Explorer 6

Please provide any additional information below.

<xsl:template match="*|/">
  <xsl:apply-templates/>
</xsl:template>

( see http://www.w3.org/TR/xslt#built-in-rule )

Adding this equivalent of the built-in template rule that should apply to
allow recursive processing to continue in the absence of a successful
pattern match by an explicit template rule in the stylesheet produces :

<div style="color:green">
Hello World.
</div>
<div style="color:green">
Hello World.
</div>

I attached builtin.xml that refers to builtin.xsl. Opening builtin.xml in
firefox or internet explorer produces the expected result.

Thank you.
G.

Original issue reported on code.google.com by gregory....@gmail.com on 10 Feb 2007 at 6:02

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, the builtin rules are not implemented indeed.

Original comment by addressb...@gmail.com on 12 Feb 2007 at 5:04

GoogleCodeExporter commented 9 years ago
Sorry, wrong login: 

Yes, the builtin rules are not implemented indeed.

The obvious workaround is to just add them to the style sheet.

Original comment by steffen....@gmail.com on 12 Feb 2007 at 5:06