Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] extended xhtml attribute with namespace not bound

From: Juergen Donnerstag <juergen.donnerstag@--------->
To:
Date: 1/1/2006 11:24:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent