File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSAD 5 XML/XSL Validator

 
Michael Broderick
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've inherited a working struts WAS 3.5.6 app and am trying to get it to build under WSAD 5 with no warnings or errors. This is a complete copy of an XSL prog that warnings with "styleshheet requires attribute: version" It's there I've compared the syntax with dozens of examples I've found here and elsewhere on the web - I'm sure it's simple (because I'm new) but what the hell? Thanks in advance for you help
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match=".">
<data>
<xsl:apply-templates select=".//.[@changed = 'T']" />
</data>
</xsl:template>
<xsl:template match=".[@changed]">
<xsl:copy>
<xsl:apply-templates select="@id" />
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:copy>
<xsl:value-of />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
 
Michael Broderick
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some how the complete prog got lopped off - here it is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match=".">
<data>
<xsl:apply-templates select=".//.[@changed = 'T']"/>
</data>
</xsl:template>
<xsl:template match=".[@changed]">
<xsl:copy>
<xsl:apply-templates select="@id"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:copy>
<xsl:value-of />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33688
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try reposting using the "code" UBB codes?
For example,

[ September 23, 2003: Message edited by: Jeanne Boyarsky ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic