User Profile

Collapse

Profile Sidebar

Collapse
jhurrell
jhurrell
Last Activity: Mar 21 '07, 04:40 PM
Joined: Mar 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jhurrell
    replied to Removing empty nodes
    in XML
    Genius!!! Thank you Dorin! This does indeed solve the problem!! I had tried an IF tag, but hadn't thought to combine it with an OR.
    Thanks again....
    See more | Go to post

    Leave a comment:


  • jhurrell
    started a topic Removing empty nodes
    in XML

    Removing empty nodes

    I have an XML file that contains some empty nodes like:

    Code:
    <sample>
       <test/>
       <test1/>
    </sample>
    I am using Saxon 8.8 to transform this XML into another XML file, but I'd like to remove the empty nodes and leave the rest of the document as it was.

    XML:

    Code:
    <?xml version="1.0" ?>
    
    <ROOT>
    ...
    See more | Go to post

  • jhurrell
    replied to Saxon & <xsl:result-document> and error
    in XML
    Many thanks Dorinbogdan. This, has indeed worked! I inserted a for-each command within an existing for-each to loop the C nodes:

    Code:
    <xsl:for-each select="//B">
    		<xsl:if test="B_NAME='Test_B'">
    			<xsl:for-each select="C">
    				<xsl:variable name="filename" select="concat('output/Test_A/Test_B/',C_ID,'.htm')" />
    				<xsl:value-of select="$filename"
    ...
    See more | Go to post

    Leave a comment:


  • jhurrell
    started a topic Saxon & <xsl:result-document> and error
    in XML

    Saxon & <xsl:result-document> and error

    I have been having some trouble getting my XSL style sheet to parse correctly.

    I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done with moderate success using Saxon and
    <xsl:result-document>, but Saxon is throwing an error and I don't know how to resolve it. Maybe someone can offer some advice? This is a long question, for which I apologise... OS= Windows XP...
    See more | Go to post
    Last edited by jhurrell; Mar 15 '07, 10:40 AM. Reason: Added info to error message
No activity results to display
Show More
Working...