I want to apply an XSLT Stylesheet to an XML Document using C# and write the output to a File. 4 Answers 4
I’m using web.config transformation as described in the below post in order to generate configs for different environments. http://vishaljoshi.blogspot.com/2009/03/web-deployment-webconfig-transformation_23.html I can do a “Replace” transformation by matching on the...
I am trying to implement an if -else statement in XSLT but my code just doesn’t parse. Does anyone have any ideas? <xsl:variable name="CreatedDate" select="@createDate"/> <xsl:variable name="IDAppendedDate" select="2012-01-01" />...
What XPath can I use to select any category with a name attribute specified and any child node author with the value specified. I’ve tried different variations of the...
Using a XPath query how do you find if a node (tag) exists at all? For example if I needed to make sure a website page has the correct...
I’m trying to create a website that can be downloaded and run locally by launching its index file. All the files are local, no resources are used online. When...
I want to produce a newline for text output in XSLT. Any ideas? 13 Answers 13
How can I insert Into an XSLT stylesheet, I keep getting this error: XML Parsing Error: undefined entity Essentially I want a non breaking space character in the...
This error, The processing instruction target matching “[xX][mM][lL]” is not allowed occurs whenever I run an XSLT page that begins as follows: <?xml version="1.0" encoding="windows-1256"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include...
How can I check if a value is null or empty with XSL? For example, if categoryName is empty? I’m using a when choosing construct. For example: <xsl:choose> <xsl:when...