Urgent (wd-xsl)

Hello,
i have a stylesheet designed in wd-xsl and i want to dynamically transform my xml file to that stylesheet,but as it is the older stylesheet it is not transformed by these days xsl processor. i too tried to convert xsl to xsl using xsl to xslt converter but that one cannot transform fully to xslt.
from javascript i did the transformation using msxxml dom document3.0 but,it sometime works and sometime it doesnot works.

i also tried to create processing instruction from javascript and jsp at the runtime using dom.now how can i show the xml file in internet explorer with dynamically transformed stylesheet(using created processing instruction)??

and is there any xsl processor rather than msxml3.0 which can process wd-xsl stylesheet??

thanks in advance
sansajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ramazanyichCommented:
First of all you should replace your stylesheet definition:
<xsl:stylesheet
         language="JavaScript"
       xmlns:xsl="http://www.w3.org/TR/WD-xsl"
       xmlns="http://www.w3.org/TR/REC-html40"
       result-ns="">

by standard
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Also sometimes it was default rule added to the stylesheet:
<!-- default rule -->
<xsl:template><xsl:apply-templates/></xsl:template>

remove it.

some functions has to be replaced.
Better if you send your old xsl. I will try to convert it.
I don't think that there is a good converters from wd-xsl to standard xsl are exist. because wd-xsl is mostly were implemented by microsoft.

0
sansajAuthor Commented:
hey thanks
the old xsl is available at
http://www.esri.com/metadata/fgdc_esri.xsl


thanks
0
ramazanyichCommented:
replace all context()[ calls by .[
replace all end() function calls by not(last())
replace all $any$ calls by similiar or constructions.

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

sansajAuthor Commented:
>>replace all $any$ calls by similiar or constructions.

what does similar or constructions means.???
0
ramazanyichCommented:
for example you have following expression: /metadata/idinfo/keywords[$any$ */(themekey | placekey | stratkey | tempkey) != '']

It should be replaced by:
(/metadata/idinfo/keywords[child::*/themekey != ''] or /metadata/idinfo/keywords[child::*/placekey != ''] or /metadata/idinfo/keywords[child::*/stratkey != ''] or /metadata/idinfo/keywords[child::*/tempkey!= ''] )
0
ramazanyichCommented:
in my suggestion "replace end() by not(last())" was mistake:
it should be:
replace end() by last()
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sansajAuthor Commented:
Thanks i am trying this one
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.