• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Processing Instruction

 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I find a processing instruction in a xml document?
<xsl:stylesheet/> is a processing instruction, i believe that <xsl:template/> is also a PI.
How many processing Instructions are there, where could I find more information on this?
Thanks
Shoba
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article talks about how to find a PI in an XML doc using XSLT. Look towards the bottom of the article. The definition of a PI is provided here. (Click on the red T and the red U for more info.)
I'm not sure how many PI's there are. You may want to do a Google search on XML Processing Instruction or something like that.
A final note - xsl:stylesheet is a PI but xsl:template is not.
Hope this helps.
[ May 02, 2002: Message edited by: John Wetherbie ]
 
Ingo Schildmann
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you think that <xsl:stylesheet/> is a processing instruction?
The XML recommendation and the article you're referring to clearly say, that a processing instruction is something like:
<? pi this is a processing instruction ?>
 
Neetha Kasuganti
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<xsl:stylesheet> is not a PI, it's the root element of the xsl stylesheet.
<?xml-stylesheet type="text/xsl" href=""?>
is a PI.
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, I was thinking of the xml-stylesheet PI you find in XML docs. You guys are correct that xsl-stylesheet is not a PI.
Thanks!
[ May 03, 2002: Message edited by: John Wetherbie ]
 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everybody for the info
Thanks
Shoba
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic