[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XERCES Output different than Saxon!! Why?
Hello Folks! All this time I have been using the Instant Saxon parser, and everything works just fine, but today I began parsing through xerces and lo and behold it does not give me the same output. The strangest thing is that when outputting HTML xerces seems to recognize some carriage returns but not all of them. Below find an example of my XSL, maybe someone can explain to me why xerces seems to recognize some but not all of the <br> that I have put in there. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dppo="dppo" xmlns:c="file:/class/null" xmlns:q="file:/declass/null" xmlns:t="file:/release/null" xmlns:f="file:/foreing/null"> Code omitted for readability... xsl:template match="dppo:document"> <SPAN style=" background-color: white; width:100%; height: 100% "> <br></br> <SPAN style=" font-size: 14pt; font-weight: bold; margin-left: 3pc; text-align: left"> <xsl:variable name="c" select="//@dppo:secur.classif"/> <xsl:value-of select="document(' ')/*/c:classif/@* [name(.)=$c or name()='X'] [1]"/> <xsl:variable name="f" select="//@dppo:secur.fgi"/> <xsl:value-of select="document(' ')/*/f:fgi/@* [name(.)=$f or name()='X'] [1]"/> <xsl:value-of select="$codewords"/> <xsl:value-of select="$class"/> <xsl:variable name="t" select="//@dppo:secur.relto"/> <xsl:value-of select="document(' ')/*/t:relto/@* [name(.)=$t or name()='X'] [1]"/> <xsl:variable name="q" select="//@dppo:secur.declasson"/> <xsl:value-of select="document(' ')/*/q:declason/@* [name(.)=$q or name()='X'] [1]"/> <br></br> <br></br> <br></br> <SPAN style=" width: 100%"> <p> <IMG SRC="http://dppo4/dppo/documents/disp_jsr_banner.gif"/> </p> <br></br> </SPAN> <xsl:text>JSR: </xsl:text> <xsl:value-of select="@dppo:doc.id"/> <xsl:value-of select="@dppo:doc.pubdate"/><br></br> <xsl:value-of select="@dppo:doc.review"/><br></br> <br></br><br></br> <H1> <xsl:value-of select="dppo:titleDef"/> <xsl:text>(</xsl:text> <xsl:value-of select="@dppo:secur.classif"/> <xsl:text>)</xsl:text><p></p> </H1> </SPAN> <xsl:apply-templates /> <br></br> <SPAN style=" font-size: 14pt; font-weight:bold; margin-left: 3pc; width: 100%; text-align: left"> <xsl:value-of select="@dppo:poc.agency"/><xsl:text>/</xsl:text> <xsl:value-of select="@dppo:poc.orgcode"/><xsl:text> : </xsl:text> <xsl:value-of select="@dppo:poc.phone"/><p></p> <xsl:value-of select="@dppo:poc.author"/><p></p> <xsl:value-of select="@dppo:poc.email"/> <br></br> <SPAN style=" font-size: 12pt; font-weight: bold"> <br></br> <xsl:variable name="c" select="//@dppo:secur.classif"/> <xsl:value-of select="document(' ')/*/c:classif/@* [name(.)=$c or name()='X'] [1]"/> <xsl:variable name="f" select="//@dppo:secur.fgi"/> <xsl:value-of select="document(' ')/*/f:fgi/@* [name(.)=$f or name()='X'] [1]"/> <xsl:value-of select="$codewords"/> <xsl:value-of select="$class"/> <xsl:variable name="t" select="//@dppo:secur.relto"/> <xsl:value-of select="document(' ')/*/t:relto/@* [name(.)=$t or name()='X'] [1]"/> <xsl:variable name="q" select="//@dppo:secur.declasson"/> <xsl:value-of select="document(' ')/*/q:declason/@* [name(.)=$q or name()='X'] [1]"/> <br></br> <br></br> </SPAN> </SPAN> </SPAN> </xsl:template> <!-- The problems begins after this point. Xerces does not seem to understand what I'm asking it to do. <xsl:template match="dppo:packetDef" > <br></br> <br></br> <SPAN style=" margin-left: 3pc; margin-right: 3pc; width:100%; font-weight: normal; font-size: small"> <p> <table border="1" cell-padding="1" align="left"> <tbody align="center" bgcolor="lightblue"> <tr> <td> <SPAN style=" background-color: lightblue; font-style: italic; font-weight: bold; font-size: medium"> <xsl:value-of select="dppo:titleDef"/> <xsl:text>(</xsl:text> <xsl:value-of select="../dppo:packetDef/@dppo:secur.classif"/> <xsl:text>)</xsl:text> </SPAN> </td> </tr> </tbody> </table> </p> <br></br> <br></br> <br></br> <xsl:apply-templates /> </SPAN> </xsl:template> Code omitted for readability </xsl:stylesheet> Any ideas would help. Thank you! Eddy XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|