From: Ronny O. <ob...@vh...> - 2008-12-17 16:38:16
|
Dear xmlstar-devel list, sorry for bothering you, but I didn't find any useful hints via google, nor did I find anything in the xmlstarlet archieve. I'de like to use the entity-technique for whitspace like it is described in http://www.xml.com/pub/a/2001/12/05/whitespace.html . But when using the <xsl:text> element inside of the entities (3rd last xsl-stylesheet), I'll receive the following output: $ xml tr stylesheet.xsl employee.xml namespace error : Namespace prefix xsl on text is not defined <xsl:text> ^ namespace error : Namespace prefix xsl on text is not defined <xsl:text> </xsl:text> ^ 09/01/1998JohnnyHerbert I found a hint on http://techtonik.rainforce.org/2006/07/xslt-whitespaces-beautifying.html to ship around these errors, with the result of not seeing the "namespace error" output anymore, but still with a wrong format (there are no whitespaces between the three elements). The xslt processor xsltproc did quite the same as xmlstarlet (1.0.1). Probably, because both are using the same library(?). Xalan-C 1.10.0 (with Xerces version 2.7.0), another xslt processor, works fine with these files, it creates the expected output. But I can't use this processor, because it doesn't handle <exsl:document>, which I need in other stylesheets. On http://www.xml.com/pub/a/2001/12/05/whitespace.html?page=2 an interessting comment is posted, which could point out a lack of xmlstarlet(?): Sample problem <http://www.xml.com/cs/user/view/cs_msg/414> 2002-02-11 07:12:07 Antonio del Pozzo [Reply] <http://www.xml.com/cs/user/create/cs_msg?x-lr=cs_msg/414&x-lr2=a/882> The article is very interesting. Nevertheless, when try to execute the samples I get error that tell me "Reference to undeclared namespace prefix: 'xsl' ". I use MSXML 3.0 on W2K, what's wrong? Thanks in advance Antonio Sample problem <http://www.xml.com/cs/user/view/cs_msg/420> 2002-02-13 14:00:33 Bob DuCharme [Reply] <http://www.xml.com/cs/user/create/cs_msg?x-lr=cs_msg/420&x-lr2=a/882> As I told Meili in a private e-mail, the example work properly with XSLT processors that completely conform to the XSLT Recommendation such as Xalan and Xerces, but Microsoft's processors don't always conform,and this is the kind of problem that can come up. http://www.vbxml.com/xsl/XSLTRef.asp has a good chart showing where each release of the Microsoft processors are and aren't compliant. I don't know if there's anything about the elements used to control whitespace there. Bob So, does anyone got another hint or any explanation what's going wrong? Probably Xalan-Java, the java version, works fine with these entities and also the <exsl:document> element. But I don't want to use it, because of...well...it's java ;) Regards Ronny BTW: I ran all the transformations under Win XP in cygwin. |