This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
FW: processing-instruction()
- From: "Jiang, Peiyun" <Peiyun dot Jiang at nrc dot ca>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Cc: "'adepters at arbortext dot com'" <adepters at arbortext dot com>
- Date: Wed, 31 Jul 2002 11:45:02 -0400
- Subject: FW: [xsl] processing-instruction()
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com'
Subject: RE: [xsl] 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@nag.co.uk]
Sent: Wednesday, July 31, 2002 10:28 AM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] 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