Re: [xsl] Namespace Problem

Subject: Re: [xsl] Namespace Problem
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Wed, 16 Jul 2008 05:25:08 -0700
>   ...
>   <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.robinson@xxxxxxxxxxxx
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

Current Thread