Open
Bug 134013
Opened 22 years ago
Updated 2 years ago
XSLT forbids VariableReference in templates and keys
Categories
(Core :: XSLT, defect)
Tracking
()
NEW
People
(Reporter: gary.frederick, Assigned: peterv)
References
(Depends on 1 open bug)
Details
Attachments
(5 files, 5 obsolete files)
The template rule <xsl:template match="item[position() mod $thisnup = 1]"> should generate an error because the match attribute has a variable in it. http://www.w3.org/TR/xslt#section-Defining-Template-Rules I like that it does not generate an error. The variable can be resolved at runtime and the expression with the variable gives me a way to generate different results, based on the value at runtime. But it is not correct... Gary Attachments in a bit
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Comment 3•22 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
pointed to the data.xml file
Reporter | ||
Comment 5•22 years ago
|
||
obsoletes 76602 and 76608 obsoletes 76597
Comment 6•22 years ago
|
||
bah. same goes for xsl:key match pattern and use expression. Sounds like ExprParser needs beat-a-jonas-state-for-this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•22 years ago
|
||
Attachment #76597 -
Attachment is obsolete: true
Attachment #76602 -
Attachment is obsolete: true
Attachment #76604 -
Attachment is obsolete: true
Attachment #76608 -
Attachment is obsolete: true
Attachment #76609 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
Comment 9•22 years ago
|
||
gary reported this to xalan, too http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7603
Comment 10•22 years ago
|
||
test for keys coming up (topic corrected). Wow, that beast crashes on me at a thousand places. But only in module. And I gave up on gdb on solaris for good right now, somebody with a real compiler/debugger suite should try.
Summary: XSLT not reporting error when a template rule's match attribute has a variable in it → XSLT forbids VariableReference in templates and keys
Comment 11•22 years ago
|
||
Comment 12•22 years ago
|
||
testcase for xsl:key/@match, I won't generate a third one for @use. You get the idea, huh?
*** Bug 344374 has been marked as a duplicate of this bug. ***
Updated•15 years ago
|
QA Contact: keith → xslt
Assignee | ||
Comment 14•15 years ago
|
||
Applies on top of attachment 412476 [details] [diff] [review].
Attachment #412477 -
Flags: review?(jonas)
I don't see code that would make aContext->allowed(txIParseContext::VARIABLE_REFERENCE) return false. Am I missing something?
Assignee | ||
Comment 16•15 years ago
|
||
Comment on attachment 412477 [details] [diff] [review] v1 No, you're right. Something got lost when splitting up the patches.
Attachment #412477 -
Flags: review?(jonas) → review-
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•