?
Solved

Urgent (wd-xsl)

Posted on 2005-03-09
7
Medium Priority
?
346 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:sansaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 13504721
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
 

Author Comment

by:sansaj
ID: 13505145
hey thanks
the old xsl is available at
http://www.esri.com/metadata/fgdc_esri.xsl


thanks
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 13505524
replace all context()[ calls by .[
replace all end() function calls by not(last())
replace all $any$ calls by similiar or constructions.

0
Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

 

Author Comment

by:sansaj
ID: 13514005
>>replace all $any$ calls by similiar or constructions.

what does similar or constructions means.???
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 13532688
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
 
LVL 19

Accepted Solution

by:
ramazanyich earned 1500 total points
ID: 13532690
in my suggestion "replace end() by not(last())" was mistake:
it should be:
replace end() by last()
0
 

Author Comment

by:sansaj
ID: 13532829
Thanks i am trying this one
0

Featured Post

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question