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....
User Profile
Collapse
-
Removing empty nodes
I have an XML file that contains some empty nodes like:
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.Code:<sample> <test/> <test1/> </sample>
XML:
...Code:<?xml version="1.0" ?> <ROOT>
-
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"Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: