[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Resolving character entities
Hi All, I have this as the input: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE subtask [ <!ENTITY lt "&"> <!ENTITY gt ">"> <!ENTITY amp "&"> ]> <subtask> <title>General Information</title> <prcitem1> <prcitem> <para>This document provides < repair instructions & for the Fire Extinguisher components.</para> </prcitem> </prcitem1> </subtask> I want all of the entities to be resolved when I transform the file. This is my stylesheet: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:math="http://www.w3.org/2005/xpath-functions/math" exclude-result-prefixes="xs math" version="3.0" expand-text="yes"> <xsl:output indent="yes"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:mode on-no-match="shallow-copy"/> </xsl:stylesheet> This is my output: <?xml version="1.0" encoding="UTF-8"?> <subtask> <title>General Information</title> <prcitem1> <prcitem> <para>This document provides < repair instructions & for the Fire Extinguisher components.</para> </prcitem> </prcitem1> </subtask> I was thinking that my $lt; should have been substituted with &, etc. Does it not matter because these are "valid" XML entities? Thank you. Rick
|
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
|