Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Why TransformerException?

 
Russ Ray
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am taking a simple XML file and transforming it into another XML file. It is very basic and very small. However, when I try to transform the XML, I get the following exception:
javax.xml.transform.TransformerException: stylesheet requires attribute: version
What what I see, I have the version in the xsl file. This is the simple file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt">
<xsl utput method="xml" encoding="UTF-8" indent="yes" xalan:indent-amount="2"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<NewTOInfo>
<FileLocation>
<xsl:value-of select="/TCNewTOInfo/LocationShippedTo"/>
</FileLocation>
<FileName>
<xsl:value-of select="/TCNewTOInfo/TOName"/>
</FileName>
<timeStamp>
<xsl:value-of select="/TCNewTOInfo/Time_Of_Activity"/>
</timeStamp>
</NewTOInfo>
</xsl:template>
</xsl:stylesheet>
Thank in advance!!!
Russ
:roll:
 
Russ Ray
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Report post to moderator
you may close this topic.
 
    Bookmark Topic Watch Topic
  • New Topic