my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSAD 5 XML/XSL Validator
 
Similar Threads
XSL
[XSLT] remove a particular node
How to delete empty tag from XML
to EXACT Dublicate an xml file[xml->xml] via Java TransformerFactory classes and XSTL well I do not
Passing Files in Web Services