xsl-list
[Top] [All Lists]

Re: [xsl] Namespace Problem

2008-07-16 05:25:34
  ...
  <xsl:template match="book">
  ...
    <body>
      <xsl:apply-templates/>
    </body>
  </xsl:template>

  <xsl:template match="book/title">
  ...
  </xsl:template>
</xsl:stylesheet>

When i see view in IE8 (beta) its showing all are one line is mixing
in one paragraph. I think i m missing some namespace. Thats why i
could not get it.

Anyone please advice me.

It looks as though you only have two templates defined in your stylesheet.
When you run xsl:apply-templates at the end of your match on "book",
the processor will be applying either (a) templates you define or (b)
the default template processing rules.

If you only have the the two templates you showed defined, then
'subtitle' and any other element after it will be handled with the
default processing rules.  Those rules are to emit all text in the
elements, stripping away any markup information.  This would, I think,
match what you say you are seeing.

Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       
jim(_dot_)robinson(_at_)stanford(_dot_)edu
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>