[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FW: processing-instruction()
I'm using xalan in ArborText EPIC. I'm doing the transformation from a user interface. It's highly possible that EPIC consumed the PIs and they are not available for matching. Xalan sees a different document (from the one actually saved as text)!!! Has anybody used EPIC? Anyone from ArborText reading this list? Thanks. Peiyun -----Original Message----- From: Jiang, Peiyun Sent: Wednesday, July 31, 2002 10:54 AM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: processing-instruction() I added the priority, but I still get the PIs in output. Does this have anything to do with the processor I'm using (xalan)? Peiyun <xsl:template match="/"> <equations> <xsl:for-each select="//equation|//inlineequation" > <xsl:copy> <xsl:copy-of select="@*" /> <xsl:apply-templates select="node()" /> </xsl:copy> </xsl:for-each> </equations> </xsl:template> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*" /> <xsl:apply-templates select="node()" /> </xsl:copy> </xsl:template> <xsl:template match="processing-instruction('Eqn')" priority="10"> <!-- do nothing now --> </xsl:template> <xsl:template match="processing-instruction('Pub')" priority="10"> <!-- do nothing now, but want to keep --> </xsl:template> -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Wednesday, July 31, 2002 10:28 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: processing-instruction() <xsl:apply-templates select="node()" /> <xsl:apply-templates select="processing-instruction('Eqn')" /> <xsl:apply-templates select="processing-instruction('Pub')" /> you don't need (or want) the second and thord lines. processing instruction nodes are nodes so will be selected by node(). Other than that it looks OK except <xsl:template match="node()"> and <xsl:template match="processing-instruction('Eqn')"> have the same default priority so you want to add priority="10" to the processing-instruction ones. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|