• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

WSAD 5 XML/XSL Validator

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
author & internet detective
Posts: 42135
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you try reposting using the "code" UBB codes?
For example,

[ September 23, 2003: Message edited by: Jeanne Boyarsky ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic