xsl-list
[Top] [All Lists]

Re: How to select a document element from the input xml fileusing xslt?

2004-07-12 14:52:27
When I implemented it this way:

<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform";  version="1.0"
xmlns:xsl="dummy">
  <namespace-alias stylesheet-prefix="xsl" result-prefix=""/>

....
And then debug, I got an "unexpected value" error at the line
<namespace-alias stylesheet-prefix="xsl" result-prefix=""/>

What is wrong?

Both Xalan 2.5.1 and Saxon 6.5.3 work with this, however, according with the
XSLT specification [1] the value #default may be used for specifying the
default namespace so you can try:
  <namespace-alias stylesheet-prefix="xsl" result-prefix="#default"/>

Alternatively you can define a proxy for the
http://www.w3.org/1999/XSL/Transform namespace and use that in the
result-prefix attribute value.

[1] http://www.w3.org/TR/xslt#literal-result-element

Best Regards,
George
-------------------------------------------------------
George Cristian Bina mailto:george(_at_)oxygenxml(_dot_)com
<oXygen/> XML Editor - http://www.oxygenxml.com/




<Prev in Thread] Current Thread [Next in Thread>