Problem with prefixed names in XSLT transformations

Here should go questions about transforming XML with XSLT and FOP.
Giordano Galli
Posts: 2
Joined: Wed Nov 04, 2009 9:13 pm

Problem with prefixed names in XSLT transformations

Post by Giordano Galli »

Hello

I'm practicing on chapter 3 of "XSLT" from Doug Tidwell and I get a void result using <xsl:value-of select="sonnet/auth:author"> on the "sonnet.xml" document from the book's downloads. If I remove the prefix the transformation works.
The relevant XSLT line is in the book and the XML document contains the declaration xmlns:auth="http://www.authors.com/". I'm at a loss: can anyone help?

Thank you very much.

Giordano

PS
I'm using oXygen Author 13.1 build 2011112512.
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with prefixed names in XSLT transformations

Post by Radu »

Hi Giordano,

Maybe you can post some small XML and XSL samples and we'll take a look at them.
If the samples are large you can send them to our support email address (support@oxygenxml.com).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Giordano Galli
Posts: 2
Joined: Wed Nov 04, 2009 9:13 pm

Re: Problem with prefixed names in XSLT transformations

Post by Giordano Galli »

Radu wrote: Maybe you can post some small XML and XSL samples and we'll take a look at them.
Thank you so much, Radu, but I have to apologize to everybody, I just realized I had a missing slash error in the 'auth' namespace declaration I added to the stylesheet, it now works perfectly. Even as an absolute beginner I have to be ashamed.

Giordano
Post Reply