You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brett McLaughlin <br...@earthlink.net> on 2000/04/08 21:21:36 UTC
WML and namespaces
It appears that WML does not work with namespaces - is this true?
For example, for this stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:JavaXML="http://www.oreilly.com/catalog/javaxml"
>
<xsl:template match="JavaXML:Book">
<xsl:processing-instruction
name="cocoon-format">type="text/wml"</xsl:processing-instruction>
<wml>
<card id="index" title="Your Portfolio">
<p align="center">
<a href="#cover">Cover Page</a><br/>
<a href="#contents">Table of Contents</a><br/>
</p>
</card>
</wml>
</xsl:template>
</xsl:stylesheet>
It tries to create this output (fragment):
<wml xmlns:JavaXML="http://www.oreilly.com/catalog/javaxml">
...
and gripes because that is not an allowed attribute on the wml element.
But why does Cocoon put that there? Or is it something WML specific? I
would like to use my namespace documents and transform them into XML
without having to remove all the namespace prefixes... any ideas?
-brett