question about "jpub3-printfilter.xsl"

5 views
Skip to first unread message

Xiaorong Lv

unread,
May 21, 2012, 11:35:25 AM5/21/12
to jats-to-...@googlegroups.com
Hi,guys,

I am confused when I read the xslt supplied by NLM. I would appreciate if anyone can help me.

The following code is from jpub3-printfilter.xsl . why there are a slash in the end? 
should it be coded like this?

<xsl:template match="*[@specific-use='web-only']">
</xsl:template>



-----------------------------------------------------------------------------------------------
<xsl:transform version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" indent="no"/>


<xsl:template match="*[@specific-use='web-only']"/>
<!-- match and drop these elements -->


<xsl:template match="@*|node()">
  <!-- match and copy these nodes -->
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>


</xsl:transform>
-----------------------------------------------------------------------------------------------
jpub3-printfilter.xsl

Chris Maloney

unread,
May 21, 2012, 11:51:46 AM5/21/12
to jats-to-...@googlegroups.com
你好, Xiaorong,

This list is really the wrong place for this question.  This Google group is for a specific project that will use the JATS stylesheets.  You want to ask these kinds of questions on the JATS list, here:  http://www.mulberrytech.com/JATS/JATS-List/index.html

Having said that, I can tell you that the code you give and the code in the original are the same.  XSLT is written in the XML format, and in XML, these two are considered synonymous:  
  - <foo></foo>
  - <foo/>



--
You received this message because you are subscribed to the Google Groups "JATS-to-MediaWiki" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jats-to-mediawiki/-/dXLkUiSxfp8J.
To post to this group, send email to jats-to-...@googlegroups.com.
To unsubscribe from this group, send email to jats-to-mediaw...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jats-to-mediawiki?hl=en.

Reply all
Reply to author
Forward
0 new messages