Project

Profile

Help

Bug #276

closed

Wrong namesp. with strip-space elements

Added by Anonymous over 22 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-527531
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

SourceForge user: bronger

With the appended files minimal.xsl and minimal.xml,

the command "saxon minimal.xml minimal.xsl" produces

(book:

(section: (heading:Hallo!)

 (p:(em:Look here) (em:and here)).     )   )

but it should produce

(book:(section:(heading:Hallo!)(p:(em:Look here)

(em:and here)).

))

If you remove the namespace from the xsl:stylesheet

element, you get the correct result, however, it

mustn't have any effect.


Files

minimal.tar.gz (9.56 KB) minimal.tar.gz Anonymous, 2002-03-08 20:17
Actions #1

Updated by Anonymous over 22 years ago

SourceForge user: mhkay

Logged In: YES

user_id=251681

Saxon is behaving correctly.

Please don't raise bug reports by making entries in this

section. As the information on the page makes clear, the

bugs section of this site is intended for confirmed bugs

only, not for suspected bugs.

When you say <xsl:strip-space element="section"/>,

the "section" is a QName that here refers to the element

with local name section in the default namespace. If the

default namespace in the stylesheet is different from the

default namespace in the source document, the name doesn't

match and therefore whitespace is not stripped.

Mike Kay

Please register to edit this issue

Also available in: Atom PDF