[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: The entity was referenced, but not declared.
On 6/13/2023 12:48 AM, Manuel Souto Pico terminolator@xxxxxxxxx wrote:
B <xsl:import href="https://raw.githubusercontent.com/davidcarlisle/web-xslt/main/htmlparse /htmlparse.xsl"/> B <xsl:param name="xml-uri" as="xs:string" select="'sample1.xml'"/> B <xsl:mode on-no-match="shallow-copy"/> B <xsl:template name="xsl:initial-template"> B B B <xsl:apply-templates select="unparsed-text($xml-uri) => d:htmlparse('', false())"/> B </xsl:template> </xsl:stylesheet> the named entity references should be parsed into the corresponding characters (and you can process all nodes by adding any templates you need/have/want to transform the XML). So the above assumes starting e.g. Saxon 9.8 or later with `-it` for the initial template.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|