xslt

XSLT for .NET CF?

Hi, Is there any XSLT library available for the Windows Mobile platform? I need to transform my XML document to HTML. It can be a plus if compatible with .NET CF. Thanks, Ben ...

XSLT transform with xml name spaces I think i'm missing something

I think I'm missing something when it comes to namespaces and xml, I'm trying to transform xml with an XSLT Input <?xml version="1.0" encoding="utf-8"?> <MySomeObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; <_x003C_Name_x003E_k__BackingField>Jon</_x003C_Name_x003E_k__BackingField> <_x003C_Id_x003E_k__BackingField i:...

Simple hash function (1 byte output from string input)

Hi folks, I'm looking for a simple hash algroithm that will give me one byte of output for a string input (the inputs will be RFC822 email addresses, if that helps). I'd like it to be simple, fast, and to magnify input differences (so two similar addresses have differnt outputs). (Yes, I am asking for a lot in one byte of output.) Id...

trouble with xsl:for-each selection using xsl:variable

Problem: I am having trouble generating an xpath expression that selects a node in a different section of the XML document by position. I am using xsl:variable to create the expression, but when I use a xsl:for-each with the value of the xsl:variable as my select statement I get an error. <xsl:variable name="input_params_query"> <...

XSLT apply-template question

Hello everyone, I am confused about XSLT apply-template statement. For example, here in w3school. http://www.w3schools.com/xsl/xsl%5Fapply%5Ftemplates.asp For the statements, <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <xsl:apply-templates/> </body> </html> </xsl:template> my confusions are, (1) wh...

problem in passing parameter <xsl:for each

I am passing parameter from C# to xsl in <xsl: for each> but I am not getting the output. Here is my code till now <xsl:param name="xpath" select="sessions/session"/> <xsl:template match="/"> <xsl:value-of select="$xpath"/> <xsl:for-each select="exsl:node-set($xpath)"> And transformed whith XslCompiledTransform xslt = new XslComp...

XSLT PARAM INSERT PROBLEM

Using XSL file can we insert param value and remove namespace??? ...

XSLT works in IE, not in Chrome or Firefox

Given a normal nhibernate config file: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="http://localhost/xmlStylesheets/nhibernate.xsl"?&gt; <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property...

XSLT for selecting namespaced attributes

After giving up on PHP I'm trying to extract data from the xml using XSLT How do i match the data in <jskit:attribute key="permalink" I saw another similar question about name value pairs but im one step away from that My xml is given here xml source ...

Escaping XML in VB.NET 2.0

Below is my code to transform XML using XSLT: Private Sub Transform(ByVal XslUri As String, ByVal XmlString As String, ByVal OutputUri As String) ' Create the XslTransform object and load the style sheet Dim xslt As New XslCompiledTransform() xslt.Load(XslUri) ' Load the file to transform Dim input As XmlReader = Xm...

Wrap XML Element wth text using Java?

I want to transform XML like this: <account>Wally World</account> <city>Anywhere</city> <state>CA</state> Into this by wrapping each element with equals and single quote i.e. ='' <account>='Wally World'</account> <city>='Anywhere'</city> <state>='CA'</state> Need to transform all the element text in large XML files using Java, mayb...

XSLT template matching issue

Hello everyone, I am confused about XSLT apply-template statement. For example, here in w3school. http://www.w3schools.com/xsl/xsl_apply_templates.asp It is mentioned -- "The <xsl:apply-templates> element applies a template to the current element or to the current element's child nodes.", my question is whether it is applied to curren...

Add Existing node to another node's Child node

Hi there, I have following XML and i want to transform it to my desire XML using XSLT ,i have succeded somewhat but not whole problem is solved .So I need help Given is My Input XML <?xml version = '1.0'?> <ROWSET> <irp_account num="1"> <IRP_CARRIER_ID_NUMBER>274845</IRP_CARRIER_ID_NUMBER> <IRP_ACCOUNT_NUMBER>55002</IRP_ACCOUNT_NUMB...

XPath to get Unique Element Names

I want to use XPath to get a list of the names of all the elements that appear in an XML file. However, I don't want any names repeated, so an element with the same name as a preceding element should not be matched. So far, I've got: *[not(local-name() = local-name(preceding::*))] This executes alright but it spits out duplicates. Why...

XSLT template select and match issue

Hello everyone, I am confused about how this XSLT apply-template statement works for cd/title/artist elements in the w3school sample, http://www.w3schools.com/xsl/xsl_apply_templates.asp Here is the code snippet I am confused, I am confused when xslt processor finds <xsl:apply-templates/> in below sample, it will match all child nodes...

How can I retrieve the favicon of a website?

I want to list featured websites on my website and I thought it would be cool to honor and use their favicon. How do I get it from the domain for an arbitrary URL in either JSP or XSLT? I can fire off PHP or javascript, but XSLT is the preferred methodology. ...

Using Umbraco search with tags

I have setup umbraco search xslt package. In my xslt I am searching by pagename, title, description and now, tags. The tags property is a document type property of the type, 'Tags'. The search xslt is below; <xsl:variable name="searchFields" select="ps:getListParameter(string(//macro/searchFields), '@pageName, title, description, tags'...

XML node type issue

Hello everyone, I am new to XSLT and learning XML. I heard there are 4 types of XML nodes, element, text node, comments and instruction node. I want to learn more about them, their functions and their differences. Could anyone recommend me some good tutorials for this topic? EDIT 1: whether my below understanding of text node is corre...

XSLT for creating template XML

Hi, I am out of my depth regarding xsl transforms for generating a sample XML file. Basically the process is I am trying to generate a large and complex XML template file from an application generated XSD. I have used XMLSpy to generate a sample XML file from the XSD my next step is to convert the values to the required values. exampl...

Ignoring the first element of xml node collection when looping with xslt.

hi All, i am looping through an xml doucment with xslt for each i need to ignore the first element and consider the rest when looping. could somebody help me on this. i am new to xslt. thanking you. Ramana kumar. ...