[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: extended xhtml attribute with namespace not bound

Subject: RE: extended xhtml attribute with namespace not bound
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 1 Jan 2006 17:48:52 -0000
wicket dtd
The error has nothing to do with the DTD/schema. Your input must be
namespace-well-formed XML, which means that if it contains an attribute
wicket:id then it must also contain a namespace declaration that binds the
prefix "wicket" to a URI.

Your input as shown below isn't even well-formed XML (attribute name
xmlns:wicket without a value) so I'm surprised it gets this far.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Juergen Donnerstag [mailto:juergen.donnerstag@xxxxxxxxx] 
> Sent: 01 January 2006 11:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  extended xhtml attribute with namespace not bound
> 
> Hi,
> 
> I'm using Wicket to develop a web application and my (wicket extended)
> html markup looks like
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <html
>     xmlns:wicket
>     xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <body>
>   <span wicket:id="myLabel">mein Label</span>
> </body>
> </html>
> 
> Wicket identifies relevant tags by means of the wicket:id attribute
> which from a Wicket point of view can be added to any tag. Wicket is a
> server side web framework and handles the tags (in this case <span>)
> accordingly. The wicket team choose the separate namespace to avoid
> any collisions with any html tags. A wicket dtd or schema is currently
> not available.
> 
> The markup above is what I'd like to XSL transform. You'll find my
> "empty" xsl file below
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <xsl:stylesheet version="1.0"
> 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 	xmlns:wicket="http://wicket.sourceforge.net">
> 	
> <xsl:output method="xml" omit-xml-declaration="yes"/>
> 
> <xsl:template match="/">
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> I'm using jdk 1.5 and this is my error message
> Caused by: 
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
> The prefix "wicket" for attribute "wicket:id" associated with an
> element type "span" is not bound.
> 
> I think I understand the message but I don't know how to solve the
> problem. I don't want to modify the XHTML dtd to include the wicket
> tags, and I don't know how to write a dtd or schema which extends all
> xhtml tags to allow for the wicket:id attribute. I don't even know if
> that is possible/allowed at all. I guess what I need is either a way
> to define the additional wicket attributes or to tell the xsl
> processor to ignore the error and pass it trough unmodified.
> I would very much appreciate any help.
> 
> Juergen

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.