Problem with prefixed names in XSLT transformations
Here should go questions about transforming XML with XSLT and FOP.
-
- 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.
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.
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problem with prefixed names in XSLT transformations
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Nov 04, 2009 9:13 pm
Re: Problem with prefixed names in XSLT transformations
Post by Giordano Galli »
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.Radu wrote: Maybe you can post some small XML and XSL samples and we'll take a look at them.
Giordano
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service