wood burning stoves*
The moose likes Websphere and the fly likes WSAD 5 XML/XSL Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD 5 XML/XSL Validator" Watch "WSAD 5 XML/XSL Validator" New topic
Author

WSAD 5 XML/XSL Validator

Michael Broderick
Greenhorn

Joined: Sep 23, 2003
Posts: 2
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

Joined: Sep 23, 2003
Posts: 2
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

Joined: May 26, 2003
Posts: 30586
    
154

Can you try reposting using the "code" UBB codes?
For example,

[ September 23, 2003: Message edited by: Jeanne Boyarsky ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: WSAD 5 XML/XSL Validator