Fw: variables_en.xml

"Simon Kelly" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
----- Original Message ----- 
From: Simon Kelly 
To: Fábio Luciano Verdi 
Sent: Wednesday, April 23, 2003 8:22 AM
Subject: Re: [Strutscx-user] variables_en.xml


It's not strutscx causing the problem, it's the xsl.  You need to define a template that clears up all the junk at the end (or when ever it's run)

<xsl:template match="*" />

This should do it, but if not mail me you xsl at [email protected] and I'll work out the best template for the job.

Cheers

Simon


  ----- Original Message ----- 
  From: Fábio Luciano Verdi 
  To: [email protected] 
  Sent: Tuesday, April 22, 2003 8:26 PM
  Subject: [Strutscx-user] variables_en.xml


  Hello everybody,
  I using strutscx for a short time and I´m having a problem. The final html which is sent to the browser shows the variables_en.xml content. I do not want that content be shown. I set my DOM object as follow:
  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

  try {

  DocumentBuilder db = dbf.newDocumentBuilder();

  File f = new File("data1.xml");

  Document d = db.parse(f);

  request.setAttribute(StrutsCXConstants.XML_KEY, d);

  }

  And I set my .xsl as usual. But in the browser appears:

  home info error debug Up New back day month year english german korean IT.CappuccinoNet.com Last updated StrutsCX StrutsCX Struts with Castor XML and XSLT. Click here for the Info application sample. Click to display content in an i-mode window. Click to display content in an PDF window. Click to print. Click to transform the XML on the clientside. Click here for multiple XSL transformations in a row. Data access with Enterprise JavaBeans Data access with JDBC Fake Data access Data access with Castor XML Click! Content of entries Content of a single entry Entry ID It's a new entry Hide this entry Put it to the archive The title The text Paragraph The publishing date The ranking The picture The file name The alignment A describing text The link The target of the link A describing text Show list of entries Create new entry View and edit Show a single entry Delete Edit Finish Delete an entry Are you sure? The entry is deleted! Gosh, no! Yes I will delete! Back to list Update a single entry Update delete Plea 

  As you can see, that is the variables_en.xml content. Why is it doing that?

  Thanks

  Fabio.







------------------------------------------------------------------------------
  Yahoo! Mail 
  O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.