[Home] [By Thread] [By Date] [Recent Entries]
Ganesh Babu N schrieb:
1. [...] My question is how to get entity name and value in to a test.
I don't understand why you define an entity the name of which seems to be identical to its value. What's the point? 2. In the XML file we are using named entities eg:- ´ instead of { or ģ in XSLT how to find if the XML file contains entities other than named entities?
Does anyone know of a tool that parses an XML document and outputs it as ASCII replacing characters with named entities instead of numeric entites? Named entites you'd probably have to supply yourself? 3. How to find non-ascii characters in the XML file and report an error using XSLT.
<?xml version="1.0" encoding="us-ascii"?> This will ensure the document won't get parsed unless it is pure ASCII. 4. How to find double enters in the XML file and report an error using XSLT.
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:transform>Michael Ludwig
|

Cart



