Bug 54594

Summary: keycombo template bug
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: docbook-style-xslAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-06 12:23:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
keys.xsl
none
keys.xml none

Description Tim Waugh 2001-10-13 19:19:01 UTC
Description of Problem:
I don't know XSL well enough to know if this is really a bug, but it seems odd at 
the last.

Version-Release number of selected component (if applicable):
1.0.5-1

How Reproducible:
100%

I would expect the output from the following attachments run as

xslt keys.xsl keys.xml

to be this:

<?xml version='1.0'>
C-h C-f

but instead it is

<?xml version=1.0'>
Ch Cf

Comment 1 Tim Waugh 2001-10-13 19:19:23 UTC
I mean xsltproc of course.


Comment 2 Tim Waugh 2001-10-13 19:19:48 UTC
Created attachment 34041 [details]
keys.xsl

Comment 3 Tim Waugh 2001-10-13 19:20:20 UTC
Created attachment 34042 [details]
keys.xml

Comment 4 Daniel Veillard 2001-10-14 17:33:06 UTC
No bug that I know of.
I have a really hard time trying to understand what (and how)
you're trying to achieve, keycombo is both the top node and
its first child element (bad design or error ?).To check how xsltproc evaluate
the stylesheet run with -v:

 xsltproc -v keys.xsl keys.xml

Daniel

Comment 5 Tim Waugh 2001-10-14 18:21:16 UTC
The XML comes straight out of DocBook, and the XSL from docbook-xsl-1.45.  
xsl:for-each is killing the template processing of the child keycombo nodes; is it 
meant to?


Comment 6 Tim Waugh 2001-10-14 21:52:33 UTC
Oh, you're right; I've learnt a little more XSL now.  This is a docbook-xsl bug.
(Hmm, no bugzilla component for that..)


Comment 7 Tim Waugh 2001-12-05 17:38:23 UTC
Fixed in docbook-style-xsl-1.47-1.