cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett McLaughlin <brettmclaugh...@earthlink.net>
Subject WML and namespaces
Date Sat, 08 Apr 2000 19:21:36 GMT
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

Mime
View raw message