|
Subject: FW: [xsl] processing-instruction() From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxx> Date: Wed, 31 Jul 2002 11:45:02 -0400 |
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: [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@xxxxxxxxx]
Sent: Wednesday, July 31, 2002 10:28 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] processing-instruction(), Joseph Kesselman | Thread | [xsl] Re: processing-instruction(), Dimitre Novatchev |
| Re: Re: [xsl] Some basic things, ashu t | Date | Re: [xsl] XSchema validation, Vishal Bhasin |
| Month |