You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Zh...@ubsw.com on 2002/04/17 15:57:40 UTC
Exception when translate xml
Hi,
I have a source xml which is generated by using ADO from our underlying database. It has 3 parts, the namespace section, the schema section and the data section.
In namespace section, it looks like this:
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>
Then I used xalan-j-2 to translate this source xml. The header of my xslt looks like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/xsl">
<xsl:output method="xml" version="1.0" standalone="no"/>
And I got Exception:
if use namespace xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: rs
if use namespace xmlns:xsl="http://www.w3.org/TR/xsl"
javax.xml.transform.TransformerException: stylesheet requires
attribute: version
I am totally no clue what happened there. Could you please check this for me?
Thanks,
Julia
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.