Quote:
Originally Posted by mhkay
There's nothing wrong with having a "." in an element name, it's just like any other character. Unless there's a bug in your XSLT processor, this is not the cause of your problem.
It's not clear from your post what your problem is. As well as the XSLT code, you should show sample input, expected output, and actual output.
You regular expression test="matches(.,'^[0-9]+\.[0-9]+\.') looks strange to me but without having any idea what the input and expected output of the transformation is, I have no way of knowing whether it is right or wrong.
|
Thanks Sir. but i just change the name of the element rx-list instead of rx.list
i am getting an exact full content.. here placed the sample input and output.
Please check the output the rx-li list item missing after the table
please check and help me...
INPUT Html:
<html>
<body>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.1.</span>
</span>
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That until further Order, the Applicant shall be referred to in all documentation in the proceedings and in the Court as âXâ, and no information identifying the Applicant as the Applicant in the proceeding shall be publicly disclosed or disseminated.</span>
</p>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.2.</span>
</span>
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That the Court file insofar as it discloses the identity of the Applicant shall not be made available for public inspection.</span>
</p>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.3.</span>
</span>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That leave to amend the title to the proceeding to give effect to the Order in paragraph</span>
<span style="font-size:10pt"> </span>
<span style="font-size:10pt">(1) be granted.</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">DISTRICT REGISTRAR</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">Date Entered:</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">[</span>
<span style="font-style:italic">For formal document headings, see guide card âFederal Court Formsâ at </span>
<span class="LC-Externalreference">[50,001]</span>
<span class="LC-Externalreference" style="font-size:7pt; vertical-align:super">:id=d10474e1641</span>
<span style="font-size:10pt">]</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">Form 47</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">ORDER</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">(Order 36)</span>
</p>
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin-left:5.4pt; width:450.4pt">
<tr>
<td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; vertical-align:top; width:237.5pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:center">
<span style="font-family:'Times New Roman'; font-size:10.5pt"> </span>
</p>
</td>
<td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; vertical-align:top; width:230.45pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:center">
<span style="font-family:'Times New Roman'; font-size:10.5pt"> </span>
</p>
</td>
</tr>
<tr>
<td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; vertical-align:top; width:237.5pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">JUDGE:</span>
</p>
</td>
<td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; vertical-align:top; width:230.45pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">Justice Denning</span>
</p>
</td>
</tr>
<tr>
<td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; vertical-align:top; width:237.5pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">DATE OF ORDER:</span>
</p>
</td>
<td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; vertical-align:top; width:230.45pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">1 February 2011</span>
</p>
</td>
</tr>
<tr>
<td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; vertical-align:top; width:237.5pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">WHERE MADE:</span>
</p>
</td>
<td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; vertical-align:top; width:230.45pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:left">
<span style="font-family:'Times New Roman'; font-size:10.5pt">Melbourne</span>
</p>
</td>
</tr>
<tr>
<td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; vertical-align:top; width:237.5pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:center">
<span style="font-family:'Times New Roman'; font-size:10.5pt"> </span>
</p>
</td>
<td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; vertical-align:top; width:230.45pt">
<p class="L-Tablecontent" style="line-height:13.5pt; margin-bottom:6pt; text-align:center">
<span style="font-family:'Times New Roman'; font-size:10.5pt"> </span>
</p>
</td>
</tr>
</table>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.4.</span>
</span>
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That until further Order, the Applicant shall be referred to in all documentation in the proceedings and in the Court as âXâ, and no information identifying the Applicant as the Applicant in the proceeding shall be publicly disclosed or disseminated.</span>
</p>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.5.</span>
</span>
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That the Court file insofar as it discloses the identity of the Applicant shall not be made available for public inspection.</span>
</p>
<p style="margin-left:39.6pt; text-indent:-21.6pt">
<span style="font-size:8pt">
<span>1.6.</span>
</span>
<span style="font:7.0pt 'Times New Roman'">      </span>
<span style="font-size:10pt">That leave to amend the title to the proceeding to give effect to the Order in paragraph</span>
<span style="font-size:10pt"> </span>
<span style="font-size:10pt">(1) be granted.</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">DISTRICT REGISTRAR</span>
</p>
<p class="L-Reprotext">
<span style="font-size:10pt">Date Entered:</span>
</p>
<p class="LM-ProcessingInstruction">
<span><fascicle nextpg="95,001" servnumber="0"></span>
</p>
<p class="LC-Externalreference" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; padding-bottom:1pt">
<span> </span>
</p>
<p style="margin-left:72pt; margin-right:72pt">
<span style="font-weight:bold">Cross-reference metadata (do not edit)</span>
</p>
</body>
</html>
_________________________________________________
XSLT:
<xsl:template match="p[not(@class)]">
<xsl:choose>
<xsl:when test="not(child::ptext) and matches(normalize-space(.),'^\d+\.\d')">
<rx.list type="num">
<xsl:attribute name="after">)</xsl:attribute>
<xsl:attribute name="before">(</xsl:attribute>
<xsl:attribute name="column">1</xsl:attribute>
<rx.li>
<rx.text>
<xsl:choose>
<xsl:when
test="matches(.,'^[0-9]+\.[0-9]+\.')">
<xsl:call-template name="span">
<xsl:with-param name="node" select="*"></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="span">
<xsl:with-param name="node" select="*"></xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</rx.text>
</rx.li>
</rx.list>
</xsl:when>
<xsl:when test="not(child::ptext)">
<p>
<ptext>
<xsl:call-template name="span">
<xsl:with-param name="node" select="*"></xsl:with-param>
</xsl:call-template>
</ptext>
</p>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
___________________________________________
Output:
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>(Order 36)</rx.text>
<rx.list type="num" after=")" before="(" column="1">
<rx.li>
<rx.text>1.1. That until further Order, the Applicant shall be referred to in all documentation in the proceedings and in the Court as “X”, and no information identifying the Applicant as the Applicant in the proceeding shall be publicly disclosed or disseminated.</rx.text>
</rx.li>
<rx.li>
<rx.text>1.2. That the Court file insofar as it discloses the identity of the Applicant shall not be made available for public inspection.</rx.text>
</rx.li>
<rx.li>
<rx.text>1.3. That leave to amend the title to the proceeding to give effect to the Order in paragraph (1) be granted.</rx.text>
</rx.li>
</rx.list>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>DISTRICT REGISTRAR</rx.text>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>Date Entered:</rx.text>
</rx.p>
<rx.p>
<rx.text>[<emphasis shading="nil" type="ital">For formal document headings, see guide card “Federal Court Forms” at </emphasis>
<xref xrefid="FCLP.FCF.FCR.SCH1.F1" link-to="oth" leg-code="FCR" doc-code="FCLP"
link="y"
newwindow="yes">[50,001]</xref>]</rx.text>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>Form 47</rx.text>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>ORDER</rx.text>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>(Order 36)</rx.text>
</rx.p>
</repro-tx>
<p>
<table frame="none" colsep="0" rowsep="0">
<tgroup cols="2">
<colspec colname="col1" colwidth="1*"/>
<colspec colname="col2" colwidth="1*"/>
<tbody>
<row>
<entry align="center"> </entry>
<entry align="center"> </entry>
</row>
<row>
<entry align="left">JUDGE:</entry>
<entry align="left">Justice Denning</entry>
</row>
<row>
<entry align="left">DATE OF ORDER:</entry>
<entry align="left">1 February 2011</entry>
</row>
<row>
<entry align="left">WHERE MADE:</entry>
<entry align="left">Melbourne</entry>
</row>
<row>
<entry align="center"> </entry>
<entry align="center"> </entry>
</row>
</tbody>
</tgroup>
</table>
</p>
<repro-tx/>
<repro-tx pointsize="10">
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>DISTRICT REGISTRAR</rx.text>
</rx.p>
<rx.p emphasis="none" justify="full" line-spacing="single" point-size="10">
<rx.text>Date Entered:</rx.text>
</rx.p>
</repro-tx>