[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re-insert IDs and RIDs

Subject: Re: Re-insert IDs and RIDs
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Wed, 22 Oct 2008 10:06:08 +0530
Re:  Re-insert IDs and RIDs
Just asking an open-ended question to get someone to write the entire solution for you seems inappropriate and does not help explain the XSLT feature you are already trying to use.
Dear Ken I can understand that and thanks for your effort once again!!! Actually I am learning xsl by my own efforts and quite successful till today. One to one mapping is easy for me by xslt but some features which I can do easily by Perl and I tried the same by xslt is not easy for me. This kind of functions/logic I tried to learn by you people or xslt help desk.

Still I am hanging by the solution provided by you. It is working fine with ver2.0 and saxon 8.7.3. (command line: java -jar saxon8.jar a.xml a.xsl >a.out) but is not working with version1.0). Finally we will use this xslt to transform one xml to another xml by .net version 1.1 using "xst.transform" function. It is behaving the same as it is with saxon command line.

Below is the input/output and xsl.

INPUT
<chapter>
<para>Some consumers <internalref idref="id_0072969415_001_000976">Exhibit 1.2</internalref> know <internalref idref="id_0000000000_001_000037">Table 1</internalref> that <internalref idref="id_0000000000_001_000587">1</internalref> pay increases often lead to price increases. They do not believe that higher labor costs benefit them....</para>
<table id="id_0000000000_001_000037">
..
</table>
<figure id="id_0072969415_001_000976">
...
</figure>
<reference id="id_0000000000_001_000587">...</reference>
<reference id="id_0000000000_001_000588">...</reference>
</chapter>


OUTPUT of XSL 1.0
<p>Some consumers <a id="">Exhibit 1.2</a> know <a id="">Table 1</a> that <a id="">1</a> pay increases often lead to price increases. They do not believe that higher labor costs benefit them....</p>
<table id="">..</table>
<fig id="">...</fig>
<li class="Bib_entry" id="">...</li>
<li class="Bib_entry" id="">...</li>


OUTPUT of xsl 2.0
<?xml version="1.0" encoding="iso-8859-1"?>
<p>Some consumers <a id="fig1">Exhibit 1.2</a> know <a id="tab1">Table 1</a> that <a id="bib1">1</a> pay increases often lead to price increases. They do not believe that higher labor costs benefit them....</p>
<table id="tab1">..</table>
<fig id="fig1">...</fig>
<li class="Bib_entry" id="bib1">...</li>
<li class="Bib_entry" id="bib2">...</li>


Thanks
...JSR


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.