|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: XML style processing instruction in HTML ?There's no option in Saxon to do this, but it shouldn't be
hard to create a custom serializer if that's what you want to
do:
1. Create a subclass of HTMLEmitter that overrides the
processing-instruction() method
2. Create a subclass of SerializerFactory that overrides
newHTMLEmitter() to instantiate (1)
3. Register your SerializerFactory using
Configuration.setSerializerFactory()
You could also use your own output method name, in which
case you would want your SerializerFactory to override getReceiver(), by
creating a different Properties object and calling
super.getReceiver().
Michael Kay
http://www.saxonica.com/
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: XML style processing instruction in HTML ?You always have the option of just putting the ? at the end of the dtat replace <xsl:template match="processing-instruction()"> <xsl:copy-of select="."/> </xsl:template> by <xsl:template match="processing-instruction()"> <xsl:processing-instruction name="{name()"> <xsl:value-of select="."/> <xsl:text>?</xsl:text> </xsl:processing-instruction> </xsl:template> David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________ ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free Forum Powered by Nabble | Forum Help |