[oXygen-user] request: resolve entity refs in err msgs
Mark Baker
Sat Sep 12 23:45:52 CDT 2009
Syd,
The output of xsl:message is not a text string, it is an XML fragment. Per
the XSLT spec (http://www.w3.org/TR/xslt#message):
The xsl:message instruction sends a message in a way that is dependent on
the XSLT processor. The content of the xsl:message instruction is a
template. The xsl:message is instantiated by instantiating the content to
create an XML fragment. This XML fragment is the content of the message.
Since "<" has to be escaped when an XML fragment is serialized, you are
going to see < in any reasonable representation of the message output.
The upside of the fact that the output of xsl:message is an XML fragment is
that you can put an actual "duck" element into the message:
<xsl:message>I found a <duck/> element</xsl:message>
Or
<xsl:message>I found a <duck>...</duck> element</xsl:message>
Mark
---
Mark Baker
Analecta Communications Inc.
www.analecta.com
+1 613 614 5881
* Experience is normative; language is contingent. *
> -----Original Message-----
> From:
> [mailto:] On Behalf Of Syd Bauman
> Sent: September 11, 2009 11:59 AM
> To:
> Subject: [oXygen-user] request: resolve entity refs in err msgs
>
> [Apologies if this is a repeat -- I haven't done a good search of the
> archives, etc.]
>
>
> I often use "<" and ">" to indicate that a word is the name of an XML
> element type. I even do this in diagnostic and error messages. E.g.:
> <xsl:message>I found a <duck> element</xsl:message>
>
> In oXygen, the message that is output to the Messages tab has the
> less than and greater than escaped as entity references:
> [Saxon6.5.5] I found a <duck> element.
>
> Same is true for messages generated from Schematron validation. I
> realize that at one point in life those messages were in XML
> documents (e.g., SVRL), but I'd really like to *see* pointy brackets.
> Is there or could there be an option to display these as characters
> instead of entity references?
>
> Thanks for listening.
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list