<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [jdom-interest] XSL</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>how would i go about building up other elements for the xsl doc?</FONT>
</P>
<P><FONT SIZE=2>Element e = new Element("template", "xsl");</FONT>
</P>
<P><FONT SIZE=2>i tried that thinking it might work.. im not sure i understand the parameters being passed to the Element object</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Elliotte Rusty Harold [<A HREF="mailto:elharo@metalab.unc.edu">mailto:elharo@metalab.unc.edu</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, July 26, 2000 6:42 AM</FONT>
<BR><FONT SIZE=2>To: Eddy, Joel; 'jdom-interest@jdom.org'</FONT>
<BR><FONT SIZE=2>Subject: Re: [jdom-interest] XSL</FONT>
</P>
<BR>
<P><FONT SIZE=2>At 3:57 PM -0700 7/25/00, Eddy, Joel wrote:</FONT>
</P>
<P><FONT SIZE=2>for those not understanding this ... i get the following error when i </FONT>
<BR><FONT SIZE=2>try to create an document with the root "xsl:stylesheet" it seems to </FONT>
<BR><FONT SIZE=2>choke on the colon...</FONT>
</P>
<P><FONT SIZE=2>The name "xsl:stylesheet" is not legal for JDOM/XML elements: : is </FONT>
<BR><FONT SIZE=2>not allowed in XML names.. org.jdom.IllegalNameException: The name </FONT>
<BR><FONT SIZE=2>"xsl:stylesheet" is not legal for JDOM/XML elements: : is not allowed </FONT>
<BR><FONT SIZE=2>in XML names..</FONT>
</P>
<P><FONT SIZE=2>You need to create a Namespace object for the xsl namespace. For example,</FONT>
</P>
<P><FONT SIZE=2>Element e = new Element("stylesheet", "xsl", "<A HREF="http://www.w3.org/TR/1999/XSLT" TARGET="_blank">http://www.w3.org/TR/1999/XSLT</A>");</FONT>
</P>
<P><FONT SIZE=2>We should clean up the error message to make this more obvious.</FONT>
</P>
<BR>
<P><FONT SIZE=2>+-----------------------+------------------------+-------------------+</FONT>
<BR><FONT SIZE=2>| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |</FONT>
<BR><FONT SIZE=2>+-----------------------+------------------------+-------------------+</FONT>
<BR><FONT SIZE=2>| The XML Bible (IDG Books, 1999) |</FONT>
<BR><FONT SIZE=2>| <A HREF="http://metalab.unc.edu/xml/books/bible/" TARGET="_blank">http://metalab.unc.edu/xml/books/bible/</A> |</FONT>
<BR><FONT SIZE=2>| <A HREF="http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/" TARGET="_blank">http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/</A> |</FONT>
<BR><FONT SIZE=2>+----------------------------------+---------------------------------+</FONT>
<BR><FONT SIZE=2>| Read Cafe au Lait for Java News: <A HREF="http://metalab.unc.edu/javafaq/" TARGET="_blank">http://metalab.unc.edu/javafaq/</A> |</FONT>
<BR><FONT SIZE=2>| Read Cafe con Leche for XML News: <A HREF="http://metalab.unc.edu/xml/" TARGET="_blank">http://metalab.unc.edu/xml/</A> |</FONT>
<BR><FONT SIZE=2>+----------------------------------+---------------------------------+</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>To control your jdom-interest membership:</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com" TARGET="_blank">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A></FONT>
</P>
</BODY>
</HTML>