Try to change your test.xml file to this:

<?xml version="1.0"?>
<document>
  <body>
    <section>
    <p>

      <!-- Used as plain text: -->
      http://site/dir/blah?variable1=value1&amp;variable2=value2

      <!-- Used as a link: -->
      <a href="http://site/dir/blah?variable1=value1&amp;variable2=value2";>my link</a>

    </p>
    </section>
  </body>
</document>


The difference is that the plain ampersand is changed to the entity &amp;. Otherwise 
the variable2 will be interpreted as an XML entity and the XML parser will complain 
that it can't find the terminating semicolon.
The example above has the http link as plain text and as a real link using the <a 
href="..."> tag.
Very cool, you gave the steps to reproduce the problem, so it was easy to figure out 
what went wrong.

Regards,
Holger

> -----Original Message-----
> From: Aethon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 6:55 AM
> To: [EMAIL PROTECTED]
> Subject: Multiple GET Parameters
> 
> 
> I believe I have found a bug. Specifically when any of
> the xml files in
> /xdocs have an URL that contains multiple GET
> parameters, the 
> site:generate target fails. An example of an URL that
> makes maven choke is:
> 
> http://site/dir/blah?variable1=value1&variable2=value2
> 
> One GET parameter is not a problem.
> 
> I first found this problem in Beta 9. I have since
> confirmed the problem 
> still exists in CVS.
> 
> To routinely reproduce this, follow these steps:
> 
> 1. Make a new directory to preserve your other files
> 2. In the new directory run "maven -Dpackage=blah
> genapp"
> 3. In the /xdocs directory place the following into a
> new file:
> <?xml version="1.0"?>
> <document>
>    <body>
>     
> http://site/dir/blah?variable1=value1&variable2=value2
>    </body>
> </document>
> (This is the attached test.xml)
> 4. Run "maven site:generate"
> 
> As far as I can tell, this is a bug, if not I
> certainly couldn't find
> any documentation about this.
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to