• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Processing Instruction

 
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
 
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 ]
 
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 ?>
 
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
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic