• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The prefix "xsltu" for element "tests:xsltu" is not bound

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What needs to be done to bind? I have been following the example from XSLTunit (http://xsltunit.org/0/2/). I have the library.xml (instance document) and the library.xsl (transormation). I have moved the xsltunit.xsl (library) to the directory where all these are located. I have created a XSLTunit suite. I have missed something and I do not see it.
I am working in WSAD 5.1.2.

--- XSLTunit suite code ---

<?xml version="1.0" encoding="UTF-8" ?>
<!--
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/2001/XSLSchema-instance">
-->

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="resultviewer.xsl" />
<!-- <xsl:import href="http://xsltunit.org/0/2/xsltunit.xsl" /> -->
<xsl:import href="xsltunit.xsl" />
<xsl utput method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<!-- <xsl:template match="/root"> -->
<xsl:template match="/">
<xsltu:tests>
<xsltu:test id="test-policy number">
<xsl:call-template name="xsltu:assertEqual">
<xsl:with-param name="id" select="'full-value'" />
<xsl:with-param name="nodes1">
<xsl:apply-templates select="document('HoldingResponse.xml')/TXLife/TXLifeResponse/OLifE/Holding id/Policy id/PolNumber" />
</xsl:with-param>
<xsl:with-param name="nodes2">
<h1>YSMVRDP006</h1>
</xsl:with-param>
</xsl:call-template>
</xsltu:test>
</xsltu:tests>
</xsl:template>
</xsl:stylesheet>

--- library.xml (instance document) ---

<?xml version="1.0" encoding="UTF-8" ?>
- <TXLife xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <UserAuthResponse>
- <TransResult>
<ResultCode tc="1">Success</ResultCode>
</TransResult>
<SvrDate>2006-04-18</SvrDate>
<SvrTime>11:53:36-05:00</SvrTime>
</UserAuthResponse>
- <TXLifeResponse>
<TransRefGUID>A8EF1262-41CA-11D6-92FB-0050048E28DA</TransRefGUID>
<TransType tc="203">Holding Inquiry</TransType>
<TransExeDate>2006-04-18</TransExeDate>
<TransExeTime>11:53:36-05:00</TransExeTime>
<TransMode tc="4">Replace</TransMode>
- <TransResult>
<ResultCode tc="1">Success</ResultCode>
<ConfirmationID>2006-04-1811:53:36-05:00ACYERCAC</ConfirmationID>
</TransResult>
- <OLifE>
- <Holding id="Holding_1">
<HoldingTypeCode tc="2">Policy</HoldingTypeCode>
- <Policy id="Policy1">
<PolNumber>YSMVRDP006</PolNumber>
....



Any help would be appreciated,

Thanks in advance
 
joseph cooper
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think was able to answer my own question. It looks like i missed this statement:

xmlns:xsltu="http://xsltunit.org/0/">
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic