Re: problems with identity transformations and namespaces
then I get an error saying: Namespace for prefix 'http://paraliansoftware.com/kompas/idf-1.0' has not been declared. It looks like it's mistaking the namespace for the prefix. Weird. I specified xalan as the transformer type, thinking it was XSLTC or something, but it's not. This used to work fine in 2.0.4. If I don't use an identity transformer everything is fine. any ideas? Hmm. What does your source XML look like? Is it possible that the error comes from the prefix declaration there? If not, I'd try looking at the XML between the two stylesheets (i.e. the output of the first stylesheet). You can do this using a view (URL?cocoon-view=raw, for example). HTH, Lars Thanks Lars. You're first thought was correct. It turns out I forgot about a hack I did to work around an old xalan bug. my startElement calls in my generator were like this: contentHandler.startElement(IDF_URI, "head", IDF_URI + ":head", attributes); changing the second IDF_URI to IDF_PREFIX solved the problem. I guess the bug was fixed, but this never caused a problem until yesterday when I upgraded. -Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with identity transformations and namespaces
> -Original Message- > From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 04, 2003 7:54 PM > To: [EMAIL PROTECTED] > Subject: problems with identity transformations and namespaces > > > ugh... more problems since upgrading to 2.1 > > Some of my source xml uses a namespace (it's mixed). The prefix is > "idf" and my namespace declaration is like this: > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:idf="http://paraliansoftware.com/kompas/idf-1.0";> > > I'm using two stylesheets in a row in my pipeline. If my first style > sheet has an identity transformation like: > >match="*|@*|comment()|processing-instruction()|text()"> > >select="*|@*|comment()|processing-instruction()|text()"/> > > > > then I get an error saying: > > Namespace for prefix 'http://paraliansoftware.com/kompas/idf-1.0' has > not been declared. > > It looks like it's mistaking the namespace for the prefix. Weird. I > specified xalan as the transformer type, thinking it was XSLTC or > something, but it's not. This used to work fine in 2.0.4. If I don't > use an identity transformer everything is fine. > > any ideas? Hmm. What does your source XML look like? Is it possible that the error comes from the prefix declaration there? If not, I'd try looking at the XML between the two stylesheets (i.e. the output of the first stylesheet). You can do this using a view (URL?cocoon-view=raw, for example). HTH, Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with identity transformations and namespaces
ugh... more problems since upgrading to 2.1 Some of my source xml uses a namespace (it's mixed). The prefix is "idf" and my namespace declaration is like this: http://www.w3.org/1999/XSL/Transform"; xmlns:idf="http://paraliansoftware.com/kompas/idf-1.0";> I'm using two stylesheets in a row in my pipeline. If my first style sheet has an identity transformation like: then I get an error saying: Namespace for prefix 'http://paraliansoftware.com/kompas/idf-1.0' has not been declared. It looks like it's mistaking the namespace for the prefix. Weird. I specified xalan as the transformer type, thinking it was XSLTC or something, but it's not. This used to work fine in 2.0.4. If I don't use an identity transformer everything is fine. any ideas? thanks again, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]