Tagged Questions
1
vote
1answer
48 views
Using html entities in value-of in XSLT
Here is my XSLT file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
...
1
vote
1answer
25 views
How to make xsl:copy keep html entities literary?
I have an input xml like this:
...
<member name="Δ"></member>
...
When I'm applying the identity transformation (i.e. I want to keep this part of the input and I want to ...
2
votes
1answer
57 views
How to open non-valid HTML (from Wikipedia) via document() in XSLT?
I use XSLT 1.0 to extract information from Wikipedia infoboxes, and, for certain links, fetch additional information from further Wikipedia sites.
In principle, this works fine, unless the HTML ...
1
vote
1answer
290 views
Removing all HTML inside XML
I am trying to feed some XML into Apache Solr, but some of the XML contains some HTML formatting in the text which won't let me post to my solr server. Obviously it would be nice to be able to ...
0
votes
1answer
184 views
How can I preserve HTML entities with Diazo?
I have the following simple Diazo rules file:
<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
...
4
votes
1answer
9k views
How to display in XML output
I am generating the XML output using XSLT. I need to display in the XML output. I have tried few options to display but it displays &nbsp;. Can anyone help me on this ...
1
vote
4answers
4k views
Problems inserting with PL/SQL Developer
I have the following script that I want to insert into a table, but I'm having some issues with it.
declare
v_xslt9 varchar2(32767) := '<?xml version="1.0"?> <xsl:stylesheet ...
6
votes
2answers
9k views
What is the difference between   and  ?
I have written one XSLT to transform xml to html. If input xml node contains only space then it inserts the space using following code.
<xsl:text> </xsl:text>
There is another ...
1
vote
3answers
184 views
Is it normal that (some) HTML entities are breaking the XSL engine?
I have a dynamically generated XML document made with PHP DOMDocument. I use this XML with an XSL file. It worked fine until I got the Yen currency symbol (¥) from a database entry. This symbol is ...
0
votes
1answer
252 views
  Acting Oddly [closed]
I'm seeing this odd issue where   is being turned into some odd "?" symbol. Like it's some unknown character I've typed. (I'm using   in the xsl).
Once pass through the XSL just ...
0
votes
3answers
674 views
XSLT Transform with Character 8221
I'm transforming an XML document using javax.xml.transform.Transformer and XSLT. The document contains the characters “ and ” (Java Integer Code 8220 and 8221). These are not the normal quotation ...
3
votes
2answers
3k views
Leave entity intact in XML + XSLT
I transform XML to (sort of) HTML with XSL stylesheets (using Apache Xalan). In XML there can be entities like —, which must be left as is. In beginning of XML file I have a doctype which ...
1
vote
5answers
7k views
xslt, javascript and unescaped html entities
i have a tiny little problem with xslt, js and html entities, eg. within a template:
<script type="text/javascript">
<xsl:value-of select="/some/node"/>
for (var i = 0; i < ...