View Single Post
  #1 (permalink)  
Old November 17th, 2008, 12:29 PM
DKatSSA DKatSSA is offline
Registered User
Join Date: Nov 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default xsl:copy-of Issue

I am having some trouble using xsl:copy-of and I am hoping you good folks would be able to help me. First, some background information on what I am attempting. I am trying to grab a node set from the XML file I am working with and pass it over to a Java function for processing in a XSL-FO processor. What it looks like is happening is when I pass the value it comes out as a string (as if I were using xsl:value-of instead of xsl:copy-of). I know this because when I set the parameter in Java to String, I get values (string content like xsl:value-of), but when I change the parameter data type to a NodeList it tells me the table is null. I am not sure what I am doing wrong here. Here is a clip of the code:

<xsl:for-each select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.']/n1:text/n1:table" >

      <xsl:copy-of select="javaRef:parseXMLtoDom(.)" />

Any ideas? Thanks!

David J. Katz

Reply With Quote